diff options
author | Bjorn Helgaas <bjorn.helgaas@hp.com> | 2008-04-28 18:34:04 -0400 |
---|---|---|
committer | Len Brown <len.brown@intel.com> | 2008-04-29 03:22:20 -0400 |
commit | c1caf06ccfd3a4efd4b489f89bcdabd2362f31d0 (patch) | |
tree | 5571b9dc1b4b66c72ad64a406602d23112446f3e /include/linux/pnp.h | |
parent | cdef6254e17e98f1071ce1bfc8f2a87997c855d0 (diff) |
PNP: add debug output to option registration
Add debug output to resource option registration functions (enabled
by CONFIG_PNP_DEBUG). This uses dev_printk, so I had to add pnp_dev
arguments at the same time.
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 'include/linux/pnp.h')
-rw-r--r-- | include/linux/pnp.h | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/include/linux/pnp.h b/include/linux/pnp.h index 7639db83ce3f..a4c2bf361596 100644 --- a/include/linux/pnp.h +++ b/include/linux/pnp.h | |||
@@ -382,11 +382,14 @@ extern struct list_head pnp_cards; | |||
382 | struct pnp_option *pnp_register_independent_option(struct pnp_dev *dev); | 382 | struct pnp_option *pnp_register_independent_option(struct pnp_dev *dev); |
383 | struct pnp_option *pnp_register_dependent_option(struct pnp_dev *dev, | 383 | struct pnp_option *pnp_register_dependent_option(struct pnp_dev *dev, |
384 | int priority); | 384 | int priority); |
385 | int pnp_register_irq_resource(struct pnp_option *option, struct pnp_irq *data); | 385 | int pnp_register_irq_resource(struct pnp_dev *dev, struct pnp_option *option, |
386 | int pnp_register_dma_resource(struct pnp_option *option, struct pnp_dma *data); | 386 | struct pnp_irq *data); |
387 | int pnp_register_port_resource(struct pnp_option *option, | 387 | int pnp_register_dma_resource(struct pnp_dev *dev, struct pnp_option *option, |
388 | struct pnp_dma *data); | ||
389 | int pnp_register_port_resource(struct pnp_dev *dev, struct pnp_option *option, | ||
388 | struct pnp_port *data); | 390 | struct pnp_port *data); |
389 | int pnp_register_mem_resource(struct pnp_option *option, struct pnp_mem *data); | 391 | int pnp_register_mem_resource(struct pnp_dev *dev, struct pnp_option *option, |
392 | struct pnp_mem *data); | ||
390 | void pnp_init_resource_table(struct pnp_resource_table *table); | 393 | void pnp_init_resource_table(struct pnp_resource_table *table); |
391 | int pnp_manual_config_dev(struct pnp_dev *dev, struct pnp_resource_table *res, | 394 | int pnp_manual_config_dev(struct pnp_dev *dev, struct pnp_resource_table *res, |
392 | int mode); | 395 | int mode); |
@@ -430,10 +433,10 @@ static inline void pnp_unregister_card_driver(struct pnp_card_driver *drv) { } | |||
430 | /* resource management */ | 433 | /* resource management */ |
431 | static inline struct pnp_option *pnp_register_independent_option(struct pnp_dev *dev) { return NULL; } | 434 | static inline struct pnp_option *pnp_register_independent_option(struct pnp_dev *dev) { return NULL; } |
432 | static inline struct pnp_option *pnp_register_dependent_option(struct pnp_dev *dev, int priority) { return NULL; } | 435 | static inline struct pnp_option *pnp_register_dependent_option(struct pnp_dev *dev, int priority) { return NULL; } |
433 | static inline int pnp_register_irq_resource(struct pnp_option *option, struct pnp_irq *data) { return -ENODEV; } | 436 | static inline int pnp_register_irq_resource(struct pnp_dev *dev, struct pnp_option *option, struct pnp_irq *data) { return -ENODEV; } |
434 | static inline int pnp_register_dma_resource(struct pnp_option *option, struct pnp_dma *data) { return -ENODEV; } | 437 | static inline int pnp_register_dma_resource(struct pnp_dev *dev, struct pnp_option *option, struct pnp_dma *data) { return -ENODEV; } |
435 | static inline int pnp_register_port_resource(struct pnp_option *option, struct pnp_port *data) { return -ENODEV; } | 438 | static inline int pnp_register_port_resource(struct pnp_dev *dev, struct pnp_option *option, struct pnp_port *data) { return -ENODEV; } |
436 | static inline int pnp_register_mem_resource(struct pnp_option *option, struct pnp_mem *data) { return -ENODEV; } | 439 | static inline int pnp_register_mem_resource(struct pnp_dev *dev, struct pnp_option *option, struct pnp_mem *data) { return -ENODEV; } |
437 | static inline void pnp_init_resource_table(struct pnp_resource_table *table) { } | 440 | static inline void pnp_init_resource_table(struct pnp_resource_table *table) { } |
438 | static inline int pnp_manual_config_dev(struct pnp_dev *dev, struct pnp_resource_table *res, int mode) { return -ENODEV; } | 441 | static inline int pnp_manual_config_dev(struct pnp_dev *dev, struct pnp_resource_table *res, int mode) { return -ENODEV; } |
439 | static inline int pnp_auto_config_dev(struct pnp_dev *dev) { return -ENODEV; } | 442 | static inline int pnp_auto_config_dev(struct pnp_dev *dev) { return -ENODEV; } |