本文整理汇总了C++中pcmcia_register_driver函数的典型用法代码示例。如果您正苦于以下问题:C++ pcmcia_register_driver函数的具体用法?C++ pcmcia_register_driver怎么用?C++ pcmcia_register_driver使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了pcmcia_register_driver函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。
示例1: init_cif60_cs
static int __init init_cif60_cs(void)
{
int ret;
ret = pcmcia_register_driver(&cif60_cs_driver);
DEBUG(0, "cif_cs:init ret=%d\n", ret);
return ret;
}
开发者ID:376473984,项目名称:pvb,代码行数:7,代码来源:cif_cs_stub.c
示例2: init_spectrum_cs
static int __init
init_spectrum_cs(void)
{
printk(KERN_DEBUG "%s\n", version);
return pcmcia_register_driver(&orinoco_driver);
}
开发者ID:12rafael,项目名称:jellytimekernel,代码行数:7,代码来源:spectrum_cs.c
示例3: prism2cs_init
static int __init prism2cs_init(void)
{
#if (LINUX_VERSION_CODE < KERNEL_VERSION(2,5,68))
servinfo_t serv;
#endif
DBFENTER;
WLAN_LOG_NOTICE("%s Loaded\n", version);
WLAN_LOG_NOTICE("dev_info is: %s\n", dev_info);
#if (LINUX_VERSION_CODE < KERNEL_VERSION(2,5,68))
pcmcia_get_card_services_info(&serv);
if ( serv.Revision != CS_RELEASE_CODE )
{
printk(KERN_NOTICE"%s: CardServices release does not match!\n", dev_info);
return -1;
}
/* This call will result in a call to prism2sta_attach */
/* and eventually prism2sta_detach */
register_pccard_driver( &dev_info, &prism2sta_attach, &prism2sta_detach);
#else
pcmcia_register_driver(&prism2_cs_driver);
#endif
DBFEXIT;
return 0;
}
开发者ID:kizukukoto,项目名称:WDN900_GPL,代码行数:29,代码来源:prism2_cs.c
示例4: init_ipwireless
/*
* Module insertion : initialisation of the module.
* Register the card with cardmgr...
*/
static int __init init_ipwireless(void)
{
int ret;
ret = ipwireless_tty_init();
if (ret != 0)
return ret;
ret = pcmcia_register_driver(&me);
if (ret != 0)
ipwireless_tty_release();
return ret;
}
开发者ID:avagin,项目名称:linux,代码行数:18,代码来源:main.c
示例5: wl_adapter_init_module
/*******************************************************************************
* wl_adapter_init_module()
*******************************************************************************
*
* DESCRIPTION:
*
* Called by init_module() to perform PCMCIA driver initialization.
*
* PARAMETERS:
*
* N/A
*
* RETURNS:
*
* 0 on success
* -1 on error
*
******************************************************************************/
int wl_adapter_init_module(void)
{
int ret;
/*--------------------------------------------------------------------*/
DBG_FUNC("wl_adapter_init_module");
DBG_ENTER(DbgInfo);
DBG_TRACE(DbgInfo, "wl_adapter_init_module() -- PCMCIA\n");
ret = pcmcia_register_driver(&wlags49_driver);
DBG_LEAVE(DbgInfo);
return ret;
} /* wl_adapter_init_module */
开发者ID:0xroot,项目名称:Blackphone-BP1-Kernel,代码行数:32,代码来源:wl_cs.c
示例6: init_ipwireless
/*
* Module insertion : initialisation of the module.
* Register the card with cardmgr...
*/
static int __init init_ipwireless(void)
{
int ret;
printk(KERN_INFO IPWIRELESS_PCCARD_NAME " "
IPWIRELESS_PCMCIA_VERSION " by " IPWIRELESS_PCMCIA_AUTHOR "\n");
ret = ipwireless_tty_init();
if (ret != 0)
return ret;
ret = pcmcia_register_driver(&me);
if (ret != 0)
ipwireless_tty_release();
return ret;
}
开发者ID:10x-Amin,项目名称:x10_Th_kernel,代码行数:21,代码来源:main.c
示例7: comedi_pcmcia_driver_register
/**
* comedi_pcmcia_driver_register() - Register a comedi PCMCIA driver.
* @comedi_driver: comedi_driver struct
* @pcmcia_driver: pcmcia_driver struct
*
* This function is used for the module_init() of comedi USB drivers.
* Do not call it directly, use the module_comedi_pcmcia_driver() helper
* macro instead.
*/
int comedi_pcmcia_driver_register(struct comedi_driver *comedi_driver,
struct pcmcia_driver *pcmcia_driver)
{
int ret;
ret = comedi_driver_register(comedi_driver);
if (ret < 0)
return ret;
ret = pcmcia_register_driver(pcmcia_driver);
if (ret < 0) {
comedi_driver_unregister(comedi_driver);
return ret;
}
return 0;
}
开发者ID:AD5GB,项目名称:kernel_n5_3.10-experimental,代码行数:26,代码来源:comedi_pcmcia.c
示例8: pccard_init
//****************************************************************************
// fill struct pcmcia_driver and register it
static int pccard_init(void)
{
DPRINTK(KERN_DEBUG "%s: pccard_init()\n", DEVICE_NAME);
#ifdef LINUX_24
register_pccard_driver(&pccard_info, &pccard_attach, &pccard_detach);
return 0;
#else
memset (&pcan_drv.pccarddrv, 0, sizeof(pcan_drv.pccarddrv));
pcan_drv.pccarddrv.owner = THIS_MODULE;
pcan_drv.pccarddrv.drv.name = DEVICE_NAME;
#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,13)
pcan_drv.pccarddrv.attach = pccard_attach;
pcan_drv.pccarddrv.detach = pccard_detach;
#endif
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,13) && LINUX_VERSION_CODE < KERNEL_VERSION(2,6,16)
pcan_drv.pccarddrv.id_table = pccard_id_table;
pcan_drv.pccarddrv.event = pccard_event;
pcan_drv.pccarddrv.attach = pccard_attach;
pcan_drv.pccarddrv.detach = pccard_detach;
#endif
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,16)
pcan_drv.pccarddrv.id_table = pccard_id_table;
pcan_drv.pccarddrv.probe = pccard_probe;
pcan_drv.pccarddrv.remove = pccard_detach;
pcan_drv.pccarddrv.suspend = pccard_suspend;
pcan_drv.pccarddrv.resume = pccard_resume;
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,37)
/* this version sets pccarddrv->drv.name with pccarddrv.name => */
/* it must be a valid pointer too */
pcan_drv.pccarddrv.name = DEVICE_NAME;
#endif
#endif
return pcmcia_register_driver(&pcan_drv.pccarddrv);
#endif
}
开发者ID:CURG,项目名称:robot_server_container,代码行数:44,代码来源:pcan_pccard.c
示例9: init_fdomain_cs
static int __init init_fdomain_cs(void)
{
return pcmcia_register_driver(&fdomain_cs_driver);
}
开发者ID:Antonio-Zhou,项目名称:Linux-2.6.11,代码行数:4,代码来源:fdomain_stub.c
示例10: init_orinoco_cs
static int __init
init_orinoco_cs(void)
{
return pcmcia_register_driver(&orinoco_driver);
}
开发者ID:romanbb,项目名称:android_kernel_lge_d851,代码行数:5,代码来源:orinoco_cs.c
示例11: init_btuart_cs
static int __init init_btuart_cs(void)
{
return pcmcia_register_driver(&btuart_driver);
}
开发者ID:3sOx,项目名称:asuswrt-merlin,代码行数:4,代码来源:btuart_cs.c
示例12: btuart_config
static int btuart_config(struct pcmcia_device *link)
{
btuart_info_t *info = link->priv;
int i;
int try;
/* First pass: look for a config entry that looks normal.
Two tries: without IO aliases, then with aliases */
for (try = 0; try < 2; try++)
if (!pcmcia_loop_config(link, btuart_check_config, &try))
goto found_port;
/* Second pass: try to find an entry that isn't picky about
its base address, then try to grab any standard serial port
address, and finally try to get any free port. */
if (!pcmcia_loop_config(link, btuart_check_config_notpicky, NULL))
goto found_port;
BT_ERR("No usable port range found");
goto failed;
found_port:
i = pcmcia_request_irq(link, btuart_interrupt);
if (i != 0)
goto failed;
i = pcmcia_enable_device(link);
if (i != 0)
goto failed;
if (btuart_open(info) != 0)
goto failed;
return 0;
failed:
btuart_release(link);
return -ENODEV;
}
static void btuart_release(struct pcmcia_device *link)
{
btuart_info_t *info = link->priv;
btuart_close(info);
pcmcia_disable_device(link);
}
static const struct pcmcia_device_id btuart_ids[] = {
/* don't use this driver. Use serial_cs + hci_uart instead */
PCMCIA_DEVICE_NULL
};
MODULE_DEVICE_TABLE(pcmcia, btuart_ids);
static struct pcmcia_driver btuart_driver = {
.owner = THIS_MODULE,
.name = "btuart_cs",
.probe = btuart_probe,
.remove = btuart_detach,
.id_table = btuart_ids,
};
static int __init init_btuart_cs(void)
{
return pcmcia_register_driver(&btuart_driver);
}
static void __exit exit_btuart_cs(void)
{
pcmcia_unregister_driver(&btuart_driver);
}
module_init(init_btuart_cs);
module_exit(exit_btuart_cs);
开发者ID:1111saeid,项目名称:jb_kernel_3.0.16_htc_golfu,代码行数:77,代码来源:btuart_cs.c
示例13: init_ide_cs
static int __init init_ide_cs(void)
{
return pcmcia_register_driver(&ide_cs_driver);
}
开发者ID:cilynx,项目名称:dd-wrt,代码行数:4,代码来源:ide-cs.c
示例14: avmcs_init
static int __init avmcs_init(void)
{
return pcmcia_register_driver(&avmcs_driver);
}
开发者ID:Antonio-Zhou,项目名称:Linux-2.6.11,代码行数:4,代码来源:avm_cs.c
示例15: init_bluecard_cs
static int __init init_bluecard_cs(void)
{
return pcmcia_register_driver(&bluecard_driver);
}
开发者ID:karelh,项目名称:liquidware_beagleboard_linux,代码行数:4,代码来源:bluecard_cs.c
示例16: airo_cs_init
static int airo_cs_init(void)
{
return pcmcia_register_driver(&airo_driver);
}
开发者ID:3sOx,项目名称:asuswrt-merlin,代码行数:4,代码来源:airo_cs.c
示例17: ixj_pcmcia_init
static int __init ixj_pcmcia_init(void)
{
return pcmcia_register_driver(&ixj_driver);
}
开发者ID:3sOx,项目名称:asuswrt-merlin,代码行数:4,代码来源:ixj_pcmcia.c
示例18: ines_pcmcia_init_module
int ines_pcmcia_init_module(void)
{
pcmcia_register_driver(&ines_gpib_cs_driver);
return 0;
}
开发者ID:9072997,项目名称:wikireader,代码行数:5,代码来源:ines_cs.c
示例19: init_aha152x_cs
static int __init init_aha152x_cs(void)
{
return pcmcia_register_driver(&aha152x_cs_driver);
}
开发者ID:Antonio-Zhou,项目名称:Linux-2.6.11,代码行数:4,代码来源:aha152x_stub.c
示例20: init_vxpocket
static int __init init_vxpocket(void)
{
return pcmcia_register_driver(&vxp_cs_driver);
}
开发者ID:1yankeedt,项目名称:D710BST_FL24_Kernel,代码行数:4,代码来源:vxpocket.c
注:本文中的pcmcia_register_driver函数示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论