aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/pnp.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/pnp.h')
-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; }