当前位置: 首页>>代码示例>>C++>>正文


C++ pcmcia_unregister_driver函数代码示例

本文整理汇总了C++中pcmcia_unregister_driver函数的典型用法代码示例。如果您正苦于以下问题:C++ pcmcia_unregister_driver函数的具体用法?C++ pcmcia_unregister_driver怎么用?C++ pcmcia_unregister_driver使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了pcmcia_unregister_driver函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。

示例1: exit_parport_cs

static void __exit exit_parport_cs(void)
{
    pcmcia_unregister_driver(&parport_cs_driver);

    /* XXX: this really needs to move into generic code.. */
    while (dev_list != NULL)
        parport_detach(dev_list);
}
开发者ID:xricson,项目名称:knoppix,代码行数:8,代码来源:parport_cs.c

示例2: ixj_pcmcia_exit

static void ixj_pcmcia_exit(void)
{
	pcmcia_unregister_driver(&ixj_driver);

	/* XXX: this really needs to move into generic code.. */
	while (dev_list != NULL)
		ixj_detach(dev_list);
}
开发者ID:FelipeFernandes1988,项目名称:Alice-1121-Modem,代码行数:8,代码来源:ixj_pcmcia.c

示例3: cleanup_module

void cleanup_module(void)
{
	pcmcia_unregister_driver(&ni_mio_cs_driver);
#if 0
	while (cur_dev != NULL)
		cs_detach(cur_dev->handle);
#endif
	comedi_driver_unregister(&driver_ni_mio_cs);
}
开发者ID:Medvedroid,项目名称:OT_903D-kernel-2.6.35.7,代码行数:9,代码来源:ni_mio_cs.c

示例4: avmcs_exit

static void __exit avmcs_exit(void)
{
	pcmcia_unregister_driver(&avmcs_driver);

	/* XXX: this really needs to move into generic code.. */
	while (dev_list != NULL) {
		if (dev_list->state & DEV_CONFIG)
			avmcs_release(dev_list);
		avmcs_detach(dev_list);
	}
}
开发者ID:sarnobat,项目名称:knoppix,代码行数:11,代码来源:avm_cs.c

示例5: atmel_cs_cleanup

static void atmel_cs_cleanup(void)
{
        pcmcia_unregister_driver(&atmel_driver);

        /* XXX: this really needs to move into generic code.. */
        while (dev_list != NULL) {
                if (dev_list->state & DEV_CONFIG)
                        atmel_release(dev_list);
                atmel_detach(dev_list);
        }
}
开发者ID:xricson,项目名称:knoppix,代码行数:11,代码来源:atmel_cs.c

示例6: wl_adapter_cleanup_module

/*******************************************************************************
 *	wl_adapter_cleanup_module()
 *******************************************************************************
 *
 *  DESCRIPTION:
 *
 *      Called by cleanup_module() to perform driver uninitialization.
 *
 *  PARAMETERS:
 *
 *      N/A
 *
 *  RETURNS:
 *
 *      N/A
 *
 ******************************************************************************/
void wl_adapter_cleanup_module(void)
{
	DBG_FUNC("wl_adapter_cleanup_module");
	DBG_ENTER(DbgInfo);
	DBG_TRACE(DbgInfo, "wl_adapter_cleanup_module() -- PCMCIA\n");


	pcmcia_unregister_driver(&wlags49_driver);

	DBG_LEAVE(DbgInfo);
	return;
} /* wl_adapter_cleanup_module */
开发者ID:0xroot,项目名称:Blackphone-BP1-Kernel,代码行数:29,代码来源:wl_cs.c

示例7: pcan_pccard_deinit

//****************************************************************************
// small interface to rest of driver, only register and deinit
void pcan_pccard_deinit(void)
{
  DPRINTK(KERN_DEBUG "%s: pcan_pccard_deinit()\n", DEVICE_NAME);

  #if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,16)
  pcan_unlink_pccard();
  #endif

	#ifdef LINUX_24
  unregister_pccard_driver(&pccard_info);
	#else
  if (pcan_drv.pccarddrv.drv.name)
  {
    // then it was registered
    // unregister pccard parts, makes a plugout of registered devices
    pcmcia_unregister_driver(&pcan_drv.pccarddrv);
  }
	#endif
}
开发者ID:CURG,项目名称:robot_server_container,代码行数:21,代码来源:pcan_pccard.c

示例8: avmcs_exit

static void __exit avmcs_exit(void)
{
	pcmcia_unregister_driver(&avmcs_driver);
	BUG_ON(dev_list != NULL);
}
开发者ID:Antonio-Zhou,项目名称:Linux-2.6.11,代码行数:5,代码来源:avm_cs.c

示例9: exit_ide_cs

static void __exit exit_ide_cs(void)
{
	pcmcia_unregister_driver(&ide_cs_driver);
}
开发者ID:cilynx,项目名称:dd-wrt,代码行数:4,代码来源:ide-cs.c

示例10: exit_bluecard_cs

static void __exit exit_bluecard_cs(void)
{
	pcmcia_unregister_driver(&bluecard_driver);
}
开发者ID:karelh,项目名称:liquidware_beagleboard_linux,代码行数:4,代码来源:bluecard_cs.c

示例11: exit_spectrum_cs

static void __exit
exit_spectrum_cs(void)
{
	pcmcia_unregister_driver(&orinoco_driver);
}
开发者ID:12rafael,项目名称:jellytimekernel,代码行数:5,代码来源:spectrum_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: exit_elsa_cs

static void __exit exit_elsa_cs(void)
{
	pcmcia_unregister_driver(&elsa_cs_driver);
}
开发者ID:jameshilliard,项目名称:actiontec_opensrc_mi424wr-rev-ef_fw-20-19-8,代码行数:4,代码来源:elsa_cs.c

示例14: avmcs_exit

static void __exit avmcs_exit(void)
{
	pcmcia_unregister_driver(&avmcs_driver);
}
开发者ID:A2109devs,项目名称:lenovo_a2109a_kernel,代码行数:4,代码来源:avm_cs.c

示例15: exit_labpc_cs

static void __exit exit_labpc_cs(void)
{
	DEBUG(0, "ni_labpc: unloading\n");
	pcmcia_unregister_driver(&labpc_cs_driver);
}
开发者ID:AppEngine,项目名称:linux-2.6,代码行数:5,代码来源:ni_labpc_cs.c


注:本文中的pcmcia_unregister_driver函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。