diff options
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; } |