Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1 | extern spinlock_t pnp_lock; |
| 2 | void *pnp_alloc(long size); |
Bjorn Helgaas | 25eb846 | 2008-04-28 16:33:53 -0600 | [diff] [blame] | 3 | #define PNP_EISA_ID_MASK 0x7fffffff |
| 4 | void pnp_eisa_id_to_string(u32 id, char *str); |
Bjorn Helgaas | bda1e4e | 2008-04-28 16:33:54 -0600 | [diff] [blame] | 5 | struct pnp_dev *pnp_alloc_dev(struct pnp_protocol *, int id, char *pnpid); |
Bjorn Helgaas | 6bf2aab | 2008-04-28 16:33:58 -0600 | [diff] [blame] | 6 | struct pnp_card *pnp_alloc_card(struct pnp_protocol *, int id, char *pnpid); |
Bjorn Helgaas | 772defc | 2008-04-28 16:33:52 -0600 | [diff] [blame] | 7 | struct pnp_id *pnp_add_id(struct pnp_dev *dev, char *id); |
Bjorn Helgaas | e436675 | 2008-04-28 16:33:56 -0600 | [diff] [blame] | 8 | struct pnp_id *pnp_add_card_id(struct pnp_card *card, char *id); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 9 | int pnp_interface_attach_device(struct pnp_dev *dev); |
| 10 | void pnp_fixup_device(struct pnp_dev *dev); |
| 11 | void pnp_free_option(struct pnp_option *option); |
| 12 | int __pnp_add_device(struct pnp_dev *dev); |
| 13 | void __pnp_remove_device(struct pnp_dev *dev); |
| 14 | |
Bjorn Helgaas | f5d94ff | 2008-04-28 16:34:22 -0600 | [diff] [blame^] | 15 | int pnp_check_port(struct pnp_dev *dev, struct resource *res); |
| 16 | int pnp_check_mem(struct pnp_dev *dev, struct resource *res); |
| 17 | int pnp_check_irq(struct pnp_dev *dev, struct resource *res); |
| 18 | int pnp_check_dma(struct pnp_dev *dev, struct resource *res); |
Bjorn Helgaas | 81b5c75 | 2008-04-28 16:34:08 -0600 | [diff] [blame] | 19 | |
| 20 | void dbg_pnp_show_resources(struct pnp_dev *dev, char *desc); |
Bjorn Helgaas | d948a8d | 2008-04-28 16:34:13 -0600 | [diff] [blame] | 21 | |
| 22 | void pnp_init_resource(struct resource *res); |