diff options
| author | Bjorn Helgaas <bjorn.helgaas@hp.com> | 2008-04-28 18:34:40 -0400 |
|---|---|---|
| committer | Len Brown <len.brown@intel.com> | 2008-04-29 03:22:30 -0400 |
| commit | 62cfb298b95d713825deb8faf2044c45a1e17a0a (patch) | |
| tree | b95c11c8334b5779db67393b3458b54d6dd9a787 /drivers | |
| parent | d152cf5d0c3325979e71ee53b425fdd51a1a285a (diff) | |
PNP: make interfaces private to the PNP core
The interfaces for registering protocols, devices, cards,
and resource options should only be used inside the PNP core.
Signed-off-by: Bjorn Helgaas <bjorn.helgaas@hp.com>
Acked-By: Rene Herman <rene.herman@gmail.com>
Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'drivers')
| -rw-r--r-- | drivers/pnp/base.h | 27 |
1 files changed, 26 insertions, 1 deletions
diff --git a/drivers/pnp/base.h b/drivers/pnp/base.h index 9b7bb62c98b1..4fe7c58f57e9 100644 --- a/drivers/pnp/base.h +++ b/drivers/pnp/base.h | |||
| @@ -1,12 +1,37 @@ | |||
| 1 | extern spinlock_t pnp_lock; | 1 | extern spinlock_t pnp_lock; |
| 2 | void *pnp_alloc(long size); | 2 | void *pnp_alloc(long size); |
| 3 | |||
| 4 | int pnp_register_protocol(struct pnp_protocol *protocol); | ||
| 5 | void pnp_unregister_protocol(struct pnp_protocol *protocol); | ||
| 6 | |||
| 3 | #define PNP_EISA_ID_MASK 0x7fffffff | 7 | #define PNP_EISA_ID_MASK 0x7fffffff |
| 4 | void pnp_eisa_id_to_string(u32 id, char *str); | 8 | void pnp_eisa_id_to_string(u32 id, char *str); |
| 5 | struct pnp_dev *pnp_alloc_dev(struct pnp_protocol *, int id, char *pnpid); | 9 | struct pnp_dev *pnp_alloc_dev(struct pnp_protocol *, int id, char *pnpid); |
| 6 | struct pnp_card *pnp_alloc_card(struct pnp_protocol *, int id, char *pnpid); | 10 | struct pnp_card *pnp_alloc_card(struct pnp_protocol *, int id, char *pnpid); |
| 11 | |||
| 12 | int pnp_add_device(struct pnp_dev *dev); | ||
| 7 | struct pnp_id *pnp_add_id(struct pnp_dev *dev, char *id); | 13 | struct pnp_id *pnp_add_id(struct pnp_dev *dev, char *id); |
| 8 | struct pnp_id *pnp_add_card_id(struct pnp_card *card, char *id); | ||
| 9 | int pnp_interface_attach_device(struct pnp_dev *dev); | 14 | int pnp_interface_attach_device(struct pnp_dev *dev); |
| 15 | |||
| 16 | int pnp_add_card(struct pnp_card *card); | ||
| 17 | struct pnp_id *pnp_add_card_id(struct pnp_card *card, char *id); | ||
| 18 | void pnp_remove_card(struct pnp_card *card); | ||
| 19 | int pnp_add_card_device(struct pnp_card *card, struct pnp_dev *dev); | ||
| 20 | void pnp_remove_card_device(struct pnp_dev *dev); | ||
| 21 | |||
| 22 | struct pnp_option *pnp_register_independent_option(struct pnp_dev *dev); | ||
| 23 | struct pnp_option *pnp_register_dependent_option(struct pnp_dev *dev, | ||
| 24 | int priority); | ||
| 25 | int pnp_register_irq_resource(struct pnp_dev *dev, struct pnp_option *option, | ||
| 26 | struct pnp_irq *data); | ||
| 27 | int pnp_register_dma_resource(struct pnp_dev *dev, struct pnp_option *option, | ||
| 28 | struct pnp_dma *data); | ||
| 29 | int pnp_register_port_resource(struct pnp_dev *dev, struct pnp_option *option, | ||
| 30 | struct pnp_port *data); | ||
| 31 | int pnp_register_mem_resource(struct pnp_dev *dev, struct pnp_option *option, | ||
| 32 | struct pnp_mem *data); | ||
| 33 | void pnp_init_resources(struct pnp_dev *dev); | ||
| 34 | |||
| 10 | void pnp_fixup_device(struct pnp_dev *dev); | 35 | void pnp_fixup_device(struct pnp_dev *dev); |
| 11 | void pnp_free_option(struct pnp_option *option); | 36 | void pnp_free_option(struct pnp_option *option); |
| 12 | int __pnp_add_device(struct pnp_dev *dev); | 37 | int __pnp_add_device(struct pnp_dev *dev); |
