aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorBjorn Helgaas <bjorn.helgaas@hp.com>2008-04-28 18:34:04 -0400
committerLen Brown <len.brown@intel.com>2008-04-29 03:22:20 -0400
commitc1caf06ccfd3a4efd4b489f89bcdabd2362f31d0 (patch)
tree5571b9dc1b4b66c72ad64a406602d23112446f3e /include
parentcdef6254e17e98f1071ce1bfc8f2a87997c855d0 (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')
-rw-r--r--include/linux/pnp.h19
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;
382struct pnp_option *pnp_register_independent_option(struct pnp_dev *dev); 382struct pnp_option *pnp_register_independent_option(struct pnp_dev *dev);
383struct pnp_option *pnp_register_dependent_option(struct pnp_dev *dev, 383struct pnp_option *pnp_register_dependent_option(struct pnp_dev *dev,
384 int priority); 384 int priority);
385int pnp_register_irq_resource(struct pnp_option *option, struct pnp_irq *data); 385int pnp_register_irq_resource(struct pnp_dev *dev, struct pnp_option *option,
386int pnp_register_dma_resource(struct pnp_option *option, struct pnp_dma *data); 386 struct pnp_irq *data);
387int pnp_register_port_resource(struct pnp_option *option, 387int pnp_register_dma_resource(struct pnp_dev *dev, struct pnp_option *option,
388 struct pnp_dma *data);
389int pnp_register_port_resource(struct pnp_dev *dev, struct pnp_option *option,
388 struct pnp_port *data); 390 struct pnp_port *data);
389int pnp_register_mem_resource(struct pnp_option *option, struct pnp_mem *data); 391int pnp_register_mem_resource(struct pnp_dev *dev, struct pnp_option *option,
392 struct pnp_mem *data);
390void pnp_init_resource_table(struct pnp_resource_table *table); 393void pnp_init_resource_table(struct pnp_resource_table *table);
391int pnp_manual_config_dev(struct pnp_dev *dev, struct pnp_resource_table *res, 394int 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 */
431static inline struct pnp_option *pnp_register_independent_option(struct pnp_dev *dev) { return NULL; } 434static inline struct pnp_option *pnp_register_independent_option(struct pnp_dev *dev) { return NULL; }
432static inline struct pnp_option *pnp_register_dependent_option(struct pnp_dev *dev, int priority) { return NULL; } 435static inline struct pnp_option *pnp_register_dependent_option(struct pnp_dev *dev, int priority) { return NULL; }
433static inline int pnp_register_irq_resource(struct pnp_option *option, struct pnp_irq *data) { return -ENODEV; } 436static inline int pnp_register_irq_resource(struct pnp_dev *dev, struct pnp_option *option, struct pnp_irq *data) { return -ENODEV; }
434static inline int pnp_register_dma_resource(struct pnp_option *option, struct pnp_dma *data) { return -ENODEV; } 437static inline int pnp_register_dma_resource(struct pnp_dev *dev, struct pnp_option *option, struct pnp_dma *data) { return -ENODEV; }
435static inline int pnp_register_port_resource(struct pnp_option *option, struct pnp_port *data) { return -ENODEV; } 438static inline int pnp_register_port_resource(struct pnp_dev *dev, struct pnp_option *option, struct pnp_port *data) { return -ENODEV; }
436static inline int pnp_register_mem_resource(struct pnp_option *option, struct pnp_mem *data) { return -ENODEV; } 439static inline int pnp_register_mem_resource(struct pnp_dev *dev, struct pnp_option *option, struct pnp_mem *data) { return -ENODEV; }
437static inline void pnp_init_resource_table(struct pnp_resource_table *table) { } 440static inline void pnp_init_resource_table(struct pnp_resource_table *table) { }
438static inline int pnp_manual_config_dev(struct pnp_dev *dev, struct pnp_resource_table *res, int mode) { return -ENODEV; } 441static inline int pnp_manual_config_dev(struct pnp_dev *dev, struct pnp_resource_table *res, int mode) { return -ENODEV; }
439static inline int pnp_auto_config_dev(struct pnp_dev *dev) { return -ENODEV; } 442static inline int pnp_auto_config_dev(struct pnp_dev *dev) { return -ENODEV; }