2005-04-17 06:20:36 +08:00
|
|
|
extern spinlock_t pnp_lock;
|
|
|
|
void *pnp_alloc(long size);
|
2008-04-29 06:33:53 +08:00
|
|
|
#define PNP_EISA_ID_MASK 0x7fffffff
|
|
|
|
void pnp_eisa_id_to_string(u32 id, char *str);
|
2008-04-29 06:33:54 +08:00
|
|
|
struct pnp_dev *pnp_alloc_dev(struct pnp_protocol *, int id, char *pnpid);
|
2008-04-29 06:33:58 +08:00
|
|
|
struct pnp_card *pnp_alloc_card(struct pnp_protocol *, int id, char *pnpid);
|
2008-04-29 06:33:52 +08:00
|
|
|
struct pnp_id *pnp_add_id(struct pnp_dev *dev, char *id);
|
2008-04-29 06:33:56 +08:00
|
|
|
struct pnp_id *pnp_add_card_id(struct pnp_card *card, char *id);
|
2005-04-17 06:20:36 +08:00
|
|
|
int pnp_interface_attach_device(struct pnp_dev *dev);
|
|
|
|
void pnp_fixup_device(struct pnp_dev *dev);
|
|
|
|
void pnp_free_option(struct pnp_option *option);
|
|
|
|
int __pnp_add_device(struct pnp_dev *dev);
|
|
|
|
void __pnp_remove_device(struct pnp_dev *dev);
|
|
|
|
|
2008-04-29 06:34:22 +08:00
|
|
|
int pnp_check_port(struct pnp_dev *dev, struct resource *res);
|
|
|
|
int pnp_check_mem(struct pnp_dev *dev, struct resource *res);
|
|
|
|
int pnp_check_irq(struct pnp_dev *dev, struct resource *res);
|
|
|
|
int pnp_check_dma(struct pnp_dev *dev, struct resource *res);
|
2008-04-29 06:34:08 +08:00
|
|
|
|
|
|
|
void dbg_pnp_show_resources(struct pnp_dev *dev, char *desc);
|
2008-04-29 06:34:13 +08:00
|
|
|
|
|
|
|
void pnp_init_resource(struct resource *res);
|