本文整理汇总了C++中pci_module_init函数的典型用法代码示例。如果您正苦于以下问题:C++ pci_module_init函数的具体用法?C++ pci_module_init怎么用?C++ pci_module_init使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了pci_module_init函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: chips_init
int __init chips_init(void)
{
if (fb_get_options("chipsfb", NULL))
return -ENODEV;
return pci_module_init(&chipsfb_driver);
}
示例2: cp_init
static int __init cp_init (void)
{
#ifdef MODULE
printk("%s", version);
#endif
return pci_module_init (&cp_driver);
}
示例3: b1pci_init
static int __init b1pci_init(void)
{
char *p;
char rev[32];
int err;
if ((p = strchr(revision, ':')) != 0 && p[1]) {
strlcpy(rev, p + 2, 32);
if ((p = strchr(rev, '$')) != 0 && p > rev)
*(p-1) = 0;
} else
strcpy(rev, "1.0");
err = pci_module_init(&b1pci_pci_driver);
if (!err) {
strlcpy(capi_driver_b1pci.revision, rev, 32);
register_capi_driver(&capi_driver_b1pci);
#ifdef CONFIG_ISDN_DRV_AVMB1_B1PCIV4
strlcpy(capi_driver_b1pciv4.revision, rev, 32);
register_capi_driver(&capi_driver_b1pciv4);
#endif
printk(KERN_INFO "b1pci: revision %s\n", rev);
}
return err;
}
示例4: rt2860_init_module
static INT __init rt2860_init_module(VOID)
{
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,5,0)
return pci_register_driver(&rt2860_driver);
#else
return pci_module_init(&rt2860_driver);
#endif
}
示例5: com20020pci_init
static int __init com20020pci_init(void)
{
BUGLVL(D_NORMAL) printk(VERSION);
#ifndef MODULE
arcnet_init();
#endif
return pci_module_init(&com20020pci_driver);
}
示例6: ohci_hcd_pci_init
static int __init ohci_hcd_pci_init (void)
{
printk (KERN_DEBUG "%s: " DRIVER_INFO " (PCI)\n", hcd_name);
if (usb_disabled())
return -ENODEV;
printk (KERN_DEBUG "%s: block sizes: ed %Zd td %Zd\n", hcd_name,
sizeof (struct ed), sizeof (struct td));
return pci_module_init (&ohci_pci_driver);
}
示例7: rt_pci_init_module
/*
Driver module load/unload function
*/
int __init rt_pci_init_module(void)
{
DBGPRINT(RT_DEBUG_ERROR, ("register %s\n", RTMP_DRV_NAME));
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,5,0)
return pci_register_driver(&rt_pci_driver);
#else
return pci_module_init(&rt_pci_driver);
#endif
}
示例8: prism54_module_init
static int __init
prism54_module_init(void)
{
printk(KERN_INFO "Loaded %s driver, version %s\n",
DRV_NAME, DRV_VERSION);
__bug_on_wrong_struct_sizes ();
return pci_module_init(&prism54_driver);
}
示例9: tpam_init
static int __init tpam_init(void) {
int ret;
ret = pci_module_init(&tpam_driver);
if (ret)
return ret;
printk(KERN_INFO "TurboPAM: %d card%s found, driver loaded.\n",
cards_num, (cards_num > 1) ? "s" : "");
return 0;
}
示例10: sil_init
static int __init sil_init(void)
{
int rc;
rc = pci_module_init(&sil_pci_driver);
if (rc)
return rc;
return 0;
}
示例11: pci200_init_module
static int __init pci200_init_module(void)
{
#ifdef MODULE
printk(KERN_INFO "%s\n", version);
#endif
if (pci_clock_freq < 1000000 || pci_clock_freq > 80000000) {
printk(KERN_ERR "pci200syn: Invalid PCI clock frequency\n");
return -EINVAL;
}
return pci_module_init(&pci200_pci_driver);
}
示例12: vrc4173_init
static int __devinit vrc4173_init(void)
{
int err;
if ((err = pci_module_init(&vrc4173_driver)) < 0)
return err;
vrc4173_initialized = 1;
return 0;
}
示例13: sis_init
static int __init sis_init(void)
{
int rc = pci_module_init(&sis_pci_driver);
if (rc)
return rc;
rc = scsi_register_module(MODULE_SCSI_HA, &sis_sht);
if (rc) {
pci_unregister_driver(&sis_pci_driver);
return -ENODEV;
}
return 0;
}
示例14: piix_init
static int __init piix_init(void)
{
int rc;
DPRINTK("pci_module_init\n");
rc = pci_module_init(&piix_pci_driver);
if (rc)
return rc;
in_module_init = 0;
DPRINTK("done\n");
return 0;
}
示例15: gcu_init_module
/**
* gcu_init_module - Driver Registration Routine
*
* gcu_init_module is the first routine called when the driver is
* loaded. All it does is register with the PCI subsystem.
**/
static int __init
gcu_init_module(void)
{
int ret;
printk(KERN_INFO "%s - version %s\n",
gcu_driver_string, gcu_driver_version);
printk(KERN_INFO "%s\n", gcu_copyright);
ret = pci_module_init(&gcu_driver);
if(ret >= 0) {
register_reboot_notifier(&gcu_notifier_reboot);
}
return ret;
}