2005-04-17 00:20:36 +02:00
|
|
|
/*
|
|
|
|
* card.c - contains functions for managing groups of PnP devices
|
|
|
|
*
|
|
|
|
* Copyright 2002 Adam Belay <ambx1@neo.rr.com>
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include <linux/module.h>
|
|
|
|
#include <linux/slab.h>
|
|
|
|
#include <linux/pnp.h>
|
|
|
|
#include "base.h"
|
|
|
|
|
|
|
|
LIST_HEAD(pnp_cards);
|
2005-11-07 10:01:48 +01:00
|
|
|
static LIST_HEAD(pnp_card_drivers);
|
2005-04-17 00:20:36 +02:00
|
|
|
|
2007-07-26 19:41:20 +02:00
|
|
|
static const struct pnp_card_device_id *match_card(struct pnp_card_driver *drv,
|
|
|
|
struct pnp_card *card)
|
2005-04-17 00:20:36 +02:00
|
|
|
{
|
2007-07-26 19:41:20 +02:00
|
|
|
const struct pnp_card_device_id *drv_id = drv->id_table;
|
|
|
|
while (*drv_id->id) {
|
|
|
|
if (compare_pnp_id(card->id, drv_id->id)) {
|
2005-04-17 00:20:36 +02:00
|
|
|
int i = 0;
|
|
|
|
for (;;) {
|
|
|
|
int found;
|
|
|
|
struct pnp_dev *dev;
|
2007-07-26 19:41:20 +02:00
|
|
|
if (i == PNP_MAX_DEVICES
|
|
|
|
|| !*drv_id->devs[i].id)
|
2005-04-17 00:20:36 +02:00
|
|
|
return drv_id;
|
|
|
|
found = 0;
|
|
|
|
card_for_each_dev(card, dev) {
|
2007-07-26 19:41:20 +02:00
|
|
|
if (compare_pnp_id
|
|
|
|
(dev->id, drv_id->devs[i].id)) {
|
2005-04-17 00:20:36 +02:00
|
|
|
found = 1;
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
2007-07-26 19:41:20 +02:00
|
|
|
if (!found)
|
2005-04-17 00:20:36 +02:00
|
|
|
break;
|
|
|
|
i++;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
drv_id++;
|
|
|
|
}
|
|
|
|
return NULL;
|
|
|
|
}
|
|
|
|
|
2007-07-26 19:41:20 +02:00
|
|
|
static void card_remove(struct pnp_dev *dev)
|
2005-04-17 00:20:36 +02:00
|
|
|
{
|
|
|
|
dev->card_link = NULL;
|
|
|
|
}
|
2006-03-27 11:17:08 +02:00
|
|
|
|
2007-07-26 19:41:20 +02:00
|
|
|
static void card_remove_first(struct pnp_dev *dev)
|
2005-04-17 00:20:36 +02:00
|
|
|
{
|
2007-07-26 19:41:20 +02:00
|
|
|
struct pnp_card_driver *drv = to_pnp_card_driver(dev->driver);
|
2005-04-17 00:20:36 +02:00
|
|
|
if (!dev->card || !drv)
|
|
|
|
return;
|
|
|
|
if (drv->remove)
|
|
|
|
drv->remove(dev->card_link);
|
|
|
|
drv->link.remove = &card_remove;
|
|
|
|
kfree(dev->card_link);
|
|
|
|
card_remove(dev);
|
|
|
|
}
|
|
|
|
|
2006-06-25 14:47:17 +02:00
|
|
|
static int card_probe(struct pnp_card *card, struct pnp_card_driver *drv)
|
2005-04-17 00:20:36 +02:00
|
|
|
{
|
2006-06-25 14:47:17 +02:00
|
|
|
const struct pnp_card_device_id *id;
|
|
|
|
struct pnp_card_link *clink;
|
|
|
|
struct pnp_dev *dev;
|
|
|
|
|
|
|
|
if (!drv->probe)
|
|
|
|
return 0;
|
2007-07-26 19:41:20 +02:00
|
|
|
id = match_card(drv, card);
|
2006-06-25 14:47:17 +02:00
|
|
|
if (!id)
|
|
|
|
return 0;
|
|
|
|
|
|
|
|
clink = pnp_alloc(sizeof(*clink));
|
|
|
|
if (!clink)
|
|
|
|
return 0;
|
|
|
|
clink->card = card;
|
|
|
|
clink->driver = drv;
|
|
|
|
clink->pm_state = PMSG_ON;
|
|
|
|
|
|
|
|
if (drv->probe(clink, id) >= 0)
|
|
|
|
return 1;
|
|
|
|
|
|
|
|
/* Recovery */
|
|
|
|
card_for_each_dev(card, dev) {
|
|
|
|
if (dev->card_link == clink)
|
|
|
|
pnp_release_card_device(dev);
|
2005-04-17 00:20:36 +02:00
|
|
|
}
|
2006-06-25 14:47:17 +02:00
|
|
|
kfree(clink);
|
2005-04-17 00:20:36 +02:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* pnp_add_card_id - adds an EISA id to the specified card
|
|
|
|
* @id: pointer to a pnp_id structure
|
|
|
|
* @card: pointer to the desired card
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
2007-07-26 19:41:20 +02:00
|
|
|
int pnp_add_card_id(struct pnp_id *id, struct pnp_card *card)
|
2005-04-17 00:20:36 +02:00
|
|
|
{
|
2007-07-26 19:41:20 +02:00
|
|
|
struct pnp_id *ptr;
|
2005-04-17 00:20:36 +02:00
|
|
|
if (!id)
|
|
|
|
return -EINVAL;
|
|
|
|
if (!card)
|
|
|
|
return -EINVAL;
|
|
|
|
id->next = NULL;
|
|
|
|
ptr = card->id;
|
|
|
|
while (ptr && ptr->next)
|
|
|
|
ptr = ptr->next;
|
|
|
|
if (ptr)
|
|
|
|
ptr->next = id;
|
|
|
|
else
|
|
|
|
card->id = id;
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2007-07-26 19:41:20 +02:00
|
|
|
static void pnp_free_card_ids(struct pnp_card *card)
|
2005-04-17 00:20:36 +02:00
|
|
|
{
|
2007-07-26 19:41:20 +02:00
|
|
|
struct pnp_id *id;
|
2005-04-17 00:20:36 +02:00
|
|
|
struct pnp_id *next;
|
|
|
|
if (!card)
|
|
|
|
return;
|
|
|
|
id = card->id;
|
|
|
|
while (id) {
|
|
|
|
next = id->next;
|
|
|
|
kfree(id);
|
|
|
|
id = next;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
static void pnp_release_card(struct device *dmdev)
|
|
|
|
{
|
2007-07-26 19:41:20 +02:00
|
|
|
struct pnp_card *card = to_pnp_card(dmdev);
|
2005-04-17 00:20:36 +02:00
|
|
|
pnp_free_card_ids(card);
|
|
|
|
kfree(card);
|
|
|
|
}
|
|
|
|
|
2007-07-26 19:41:20 +02:00
|
|
|
static ssize_t pnp_show_card_name(struct device *dmdev,
|
|
|
|
struct device_attribute *attr, char *buf)
|
2005-04-17 00:20:36 +02:00
|
|
|
{
|
|
|
|
char *str = buf;
|
|
|
|
struct pnp_card *card = to_pnp_card(dmdev);
|
2007-07-26 19:41:20 +02:00
|
|
|
str += sprintf(str, "%s\n", card->name);
|
2005-04-17 00:20:36 +02:00
|
|
|
return (str - buf);
|
|
|
|
}
|
|
|
|
|
2007-07-26 19:41:20 +02:00
|
|
|
static DEVICE_ATTR(name, S_IRUGO, pnp_show_card_name, NULL);
|
2005-04-17 00:20:36 +02:00
|
|
|
|
2007-07-26 19:41:20 +02:00
|
|
|
static ssize_t pnp_show_card_ids(struct device *dmdev,
|
|
|
|
struct device_attribute *attr, char *buf)
|
2005-04-17 00:20:36 +02:00
|
|
|
{
|
|
|
|
char *str = buf;
|
|
|
|
struct pnp_card *card = to_pnp_card(dmdev);
|
2007-07-26 19:41:20 +02:00
|
|
|
struct pnp_id *pos = card->id;
|
2005-04-17 00:20:36 +02:00
|
|
|
|
|
|
|
while (pos) {
|
2007-07-26 19:41:20 +02:00
|
|
|
str += sprintf(str, "%s\n", pos->id);
|
2005-04-17 00:20:36 +02:00
|
|
|
pos = pos->next;
|
|
|
|
}
|
|
|
|
return (str - buf);
|
|
|
|
}
|
|
|
|
|
2007-07-26 19:41:20 +02:00
|
|
|
static DEVICE_ATTR(card_id, S_IRUGO, pnp_show_card_ids, NULL);
|
2005-04-17 00:20:36 +02:00
|
|
|
|
|
|
|
static int pnp_interface_attach_card(struct pnp_card *card)
|
|
|
|
{
|
2007-07-26 19:41:20 +02:00
|
|
|
int rc = device_create_file(&card->dev, &dev_attr_name);
|
|
|
|
if (rc)
|
|
|
|
return rc;
|
2006-12-07 05:35:33 +01:00
|
|
|
|
2007-07-26 19:41:20 +02:00
|
|
|
rc = device_create_file(&card->dev, &dev_attr_card_id);
|
|
|
|
if (rc)
|
|
|
|
goto err_name;
|
2006-12-07 05:35:33 +01:00
|
|
|
|
2005-04-17 00:20:36 +02:00
|
|
|
return 0;
|
2006-12-07 05:35:33 +01:00
|
|
|
|
2007-07-26 19:41:20 +02:00
|
|
|
err_name:
|
|
|
|
device_remove_file(&card->dev, &dev_attr_name);
|
2006-12-07 05:35:33 +01:00
|
|
|
return rc;
|
2005-04-17 00:20:36 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* pnp_add_card - adds a PnP card to the PnP Layer
|
|
|
|
* @card: pointer to the card to add
|
|
|
|
*/
|
|
|
|
|
2007-07-26 19:41:20 +02:00
|
|
|
int pnp_add_card(struct pnp_card *card)
|
2005-04-17 00:20:36 +02:00
|
|
|
{
|
|
|
|
int error;
|
2007-07-26 19:41:20 +02:00
|
|
|
struct list_head *pos, *temp;
|
2005-04-17 00:20:36 +02:00
|
|
|
if (!card || !card->protocol)
|
|
|
|
return -EINVAL;
|
|
|
|
|
2007-07-26 19:41:20 +02:00
|
|
|
sprintf(card->dev.bus_id, "%02x:%02x", card->protocol->number,
|
|
|
|
card->number);
|
2005-04-17 00:20:36 +02:00
|
|
|
card->dev.parent = &card->protocol->dev;
|
|
|
|
card->dev.bus = NULL;
|
|
|
|
card->dev.release = &pnp_release_card;
|
|
|
|
error = device_register(&card->dev);
|
|
|
|
|
|
|
|
if (error == 0) {
|
|
|
|
pnp_interface_attach_card(card);
|
|
|
|
spin_lock(&pnp_lock);
|
|
|
|
list_add_tail(&card->global_list, &pnp_cards);
|
|
|
|
list_add_tail(&card->protocol_list, &card->protocol->cards);
|
|
|
|
spin_unlock(&pnp_lock);
|
|
|
|
|
|
|
|
/* we wait until now to add devices in order to ensure the drivers
|
|
|
|
* will be able to use all of the related devices on the card
|
|
|
|
* without waiting any unresonable length of time */
|
2007-07-26 19:41:20 +02:00
|
|
|
list_for_each(pos, &card->devices) {
|
2005-04-17 00:20:36 +02:00
|
|
|
struct pnp_dev *dev = card_to_pnp_dev(pos);
|
|
|
|
__pnp_add_device(dev);
|
|
|
|
}
|
|
|
|
|
|
|
|
/* match with card drivers */
|
2007-07-26 19:41:20 +02:00
|
|
|
list_for_each_safe(pos, temp, &pnp_card_drivers) {
|
|
|
|
struct pnp_card_driver *drv =
|
|
|
|
list_entry(pos, struct pnp_card_driver,
|
|
|
|
global_list);
|
|
|
|
card_probe(card, drv);
|
2005-04-17 00:20:36 +02:00
|
|
|
}
|
|
|
|
} else
|
2007-07-26 19:41:20 +02:00
|
|
|
pnp_err("sysfs failure, card '%s' will be unavailable",
|
|
|
|
card->dev.bus_id);
|
2005-04-17 00:20:36 +02:00
|
|
|
return error;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* pnp_remove_card - removes a PnP card from the PnP Layer
|
|
|
|
* @card: pointer to the card to remove
|
|
|
|
*/
|
|
|
|
|
2007-07-26 19:41:20 +02:00
|
|
|
void pnp_remove_card(struct pnp_card *card)
|
2005-04-17 00:20:36 +02:00
|
|
|
{
|
|
|
|
struct list_head *pos, *temp;
|
|
|
|
if (!card)
|
|
|
|
return;
|
|
|
|
device_unregister(&card->dev);
|
|
|
|
spin_lock(&pnp_lock);
|
|
|
|
list_del(&card->global_list);
|
|
|
|
list_del(&card->protocol_list);
|
|
|
|
spin_unlock(&pnp_lock);
|
2007-07-26 19:41:20 +02:00
|
|
|
list_for_each_safe(pos, temp, &card->devices) {
|
2005-04-17 00:20:36 +02:00
|
|
|
struct pnp_dev *dev = card_to_pnp_dev(pos);
|
|
|
|
pnp_remove_card_device(dev);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* pnp_add_card_device - adds a device to the specified card
|
|
|
|
* @card: pointer to the card to add to
|
|
|
|
* @dev: pointer to the device to add
|
|
|
|
*/
|
|
|
|
|
2007-07-26 19:41:20 +02:00
|
|
|
int pnp_add_card_device(struct pnp_card *card, struct pnp_dev *dev)
|
2005-04-17 00:20:36 +02:00
|
|
|
{
|
|
|
|
if (!card || !dev || !dev->protocol)
|
|
|
|
return -EINVAL;
|
|
|
|
dev->dev.parent = &card->dev;
|
|
|
|
dev->card_link = NULL;
|
2007-07-26 19:41:20 +02:00
|
|
|
snprintf(dev->dev.bus_id, BUS_ID_SIZE, "%02x:%02x.%02x",
|
|
|
|
dev->protocol->number, card->number, dev->number);
|
2005-04-17 00:20:36 +02:00
|
|
|
spin_lock(&pnp_lock);
|
|
|
|
dev->card = card;
|
|
|
|
list_add_tail(&dev->card_list, &card->devices);
|
|
|
|
spin_unlock(&pnp_lock);
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* pnp_remove_card_device- removes a device from the specified card
|
|
|
|
* @dev: pointer to the device to remove
|
|
|
|
*/
|
|
|
|
|
2007-07-26 19:41:20 +02:00
|
|
|
void pnp_remove_card_device(struct pnp_dev *dev)
|
2005-04-17 00:20:36 +02:00
|
|
|
{
|
|
|
|
spin_lock(&pnp_lock);
|
|
|
|
dev->card = NULL;
|
|
|
|
list_del(&dev->card_list);
|
|
|
|
spin_unlock(&pnp_lock);
|
|
|
|
__pnp_remove_device(dev);
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* pnp_request_card_device - Searches for a PnP device under the specified card
|
2005-06-24 07:05:21 +02:00
|
|
|
* @clink: pointer to the card link, cannot be NULL
|
2005-04-17 00:20:36 +02:00
|
|
|
* @id: pointer to a PnP ID structure that explains the rules for finding the device
|
|
|
|
* @from: Starting place to search from. If NULL it will start from the begining.
|
|
|
|
*/
|
|
|
|
|
2007-07-26 19:41:20 +02:00
|
|
|
struct pnp_dev *pnp_request_card_device(struct pnp_card_link *clink,
|
|
|
|
const char *id, struct pnp_dev *from)
|
2005-04-17 00:20:36 +02:00
|
|
|
{
|
2007-07-26 19:41:20 +02:00
|
|
|
struct list_head *pos;
|
|
|
|
struct pnp_dev *dev;
|
|
|
|
struct pnp_card_driver *drv;
|
|
|
|
struct pnp_card *card;
|
2005-04-17 00:20:36 +02:00
|
|
|
if (!clink || !id)
|
|
|
|
goto done;
|
|
|
|
card = clink->card;
|
|
|
|
drv = clink->driver;
|
|
|
|
if (!from) {
|
|
|
|
pos = card->devices.next;
|
|
|
|
} else {
|
|
|
|
if (from->card != card)
|
|
|
|
goto done;
|
|
|
|
pos = from->card_list.next;
|
|
|
|
}
|
|
|
|
while (pos != &card->devices) {
|
|
|
|
dev = card_to_pnp_dev(pos);
|
2007-07-26 19:41:20 +02:00
|
|
|
if ((!dev->card_link) && compare_pnp_id(dev->id, id))
|
2005-04-17 00:20:36 +02:00
|
|
|
goto found;
|
|
|
|
pos = pos->next;
|
|
|
|
}
|
|
|
|
|
2007-07-26 19:41:20 +02:00
|
|
|
done:
|
2005-04-17 00:20:36 +02:00
|
|
|
return NULL;
|
|
|
|
|
2007-07-26 19:41:20 +02:00
|
|
|
found:
|
2005-04-17 00:20:36 +02:00
|
|
|
dev->card_link = clink;
|
|
|
|
dev->dev.driver = &drv->link.driver;
|
2006-12-07 05:35:33 +01:00
|
|
|
if (pnp_bus_type.probe(&dev->dev))
|
|
|
|
goto err_out;
|
|
|
|
if (device_bind_driver(&dev->dev))
|
|
|
|
goto err_out;
|
|
|
|
|
2005-04-17 00:20:36 +02:00
|
|
|
return dev;
|
2006-12-07 05:35:33 +01:00
|
|
|
|
2007-07-26 19:41:20 +02:00
|
|
|
err_out:
|
2006-12-07 05:35:33 +01:00
|
|
|
dev->dev.driver = NULL;
|
|
|
|
dev->card_link = NULL;
|
|
|
|
return NULL;
|
2005-04-17 00:20:36 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* pnp_release_card_device - call this when the driver no longer needs the device
|
|
|
|
* @dev: pointer to the PnP device stucture
|
|
|
|
*/
|
|
|
|
|
2007-07-26 19:41:20 +02:00
|
|
|
void pnp_release_card_device(struct pnp_dev *dev)
|
2005-04-17 00:20:36 +02:00
|
|
|
{
|
2007-07-26 19:41:20 +02:00
|
|
|
struct pnp_card_driver *drv = dev->card_link->driver;
|
2005-04-17 00:20:36 +02:00
|
|
|
if (!drv)
|
|
|
|
return;
|
|
|
|
drv->link.remove = &card_remove;
|
|
|
|
device_release_driver(&dev->dev);
|
|
|
|
drv->link.remove = &card_remove_first;
|
|
|
|
}
|
|
|
|
|
2005-11-29 09:09:32 +01:00
|
|
|
/*
|
|
|
|
* suspend/resume callbacks
|
|
|
|
*/
|
|
|
|
static int card_suspend(struct pnp_dev *dev, pm_message_t state)
|
|
|
|
{
|
|
|
|
struct pnp_card_link *link = dev->card_link;
|
|
|
|
if (link->pm_state.event == state.event)
|
|
|
|
return 0;
|
|
|
|
link->pm_state = state;
|
|
|
|
return link->driver->suspend(link, state);
|
|
|
|
}
|
|
|
|
|
|
|
|
static int card_resume(struct pnp_dev *dev)
|
|
|
|
{
|
|
|
|
struct pnp_card_link *link = dev->card_link;
|
|
|
|
if (link->pm_state.event == PM_EVENT_ON)
|
|
|
|
return 0;
|
|
|
|
link->pm_state = PMSG_ON;
|
|
|
|
link->driver->resume(link);
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2005-04-17 00:20:36 +02:00
|
|
|
/**
|
|
|
|
* pnp_register_card_driver - registers a PnP card driver with the PnP Layer
|
|
|
|
* @drv: pointer to the driver to register
|
|
|
|
*/
|
|
|
|
|
2007-07-26 19:41:20 +02:00
|
|
|
int pnp_register_card_driver(struct pnp_card_driver *drv)
|
2005-04-17 00:20:36 +02:00
|
|
|
{
|
2006-03-27 11:17:08 +02:00
|
|
|
int error;
|
2005-04-17 00:20:36 +02:00
|
|
|
struct list_head *pos, *temp;
|
|
|
|
|
|
|
|
drv->link.name = drv->name;
|
|
|
|
drv->link.id_table = NULL; /* this will disable auto matching */
|
|
|
|
drv->link.flags = drv->flags;
|
|
|
|
drv->link.probe = NULL;
|
|
|
|
drv->link.remove = &card_remove_first;
|
2005-11-29 09:09:32 +01:00
|
|
|
drv->link.suspend = drv->suspend ? card_suspend : NULL;
|
|
|
|
drv->link.resume = drv->resume ? card_resume : NULL;
|
2005-04-17 00:20:36 +02:00
|
|
|
|
2006-03-27 11:17:08 +02:00
|
|
|
error = pnp_register_driver(&drv->link);
|
|
|
|
if (error < 0)
|
|
|
|
return error;
|
2006-01-20 09:29:27 +01:00
|
|
|
|
2005-04-17 00:20:36 +02:00
|
|
|
spin_lock(&pnp_lock);
|
|
|
|
list_add_tail(&drv->global_list, &pnp_card_drivers);
|
|
|
|
spin_unlock(&pnp_lock);
|
2006-01-20 09:29:27 +01:00
|
|
|
|
2007-07-26 19:41:20 +02:00
|
|
|
list_for_each_safe(pos, temp, &pnp_cards) {
|
|
|
|
struct pnp_card *card =
|
|
|
|
list_entry(pos, struct pnp_card, global_list);
|
|
|
|
card_probe(card, drv);
|
2005-04-17 00:20:36 +02:00
|
|
|
}
|
2006-03-27 11:17:08 +02:00
|
|
|
return 0;
|
2005-04-17 00:20:36 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* pnp_unregister_card_driver - unregisters a PnP card driver from the PnP Layer
|
|
|
|
* @drv: pointer to the driver to unregister
|
|
|
|
*/
|
|
|
|
|
2007-07-26 19:41:20 +02:00
|
|
|
void pnp_unregister_card_driver(struct pnp_card_driver *drv)
|
2005-04-17 00:20:36 +02:00
|
|
|
{
|
|
|
|
spin_lock(&pnp_lock);
|
|
|
|
list_del(&drv->global_list);
|
|
|
|
spin_unlock(&pnp_lock);
|
|
|
|
pnp_unregister_driver(&drv->link);
|
|
|
|
}
|
|
|
|
|
2005-11-07 10:01:48 +01:00
|
|
|
#if 0
|
2005-04-17 00:20:36 +02:00
|
|
|
EXPORT_SYMBOL(pnp_add_card);
|
|
|
|
EXPORT_SYMBOL(pnp_remove_card);
|
|
|
|
EXPORT_SYMBOL(pnp_add_card_device);
|
|
|
|
EXPORT_SYMBOL(pnp_remove_card_device);
|
|
|
|
EXPORT_SYMBOL(pnp_add_card_id);
|
2007-07-26 19:41:20 +02:00
|
|
|
#endif /* 0 */
|
2005-04-17 00:20:36 +02:00
|
|
|
EXPORT_SYMBOL(pnp_request_card_device);
|
|
|
|
EXPORT_SYMBOL(pnp_release_card_device);
|
|
|
|
EXPORT_SYMBOL(pnp_register_card_driver);
|
|
|
|
EXPORT_SYMBOL(pnp_unregister_card_driver);
|