aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorBjorn Helgaas <bjorn.helgaas@hp.com>2008-04-28 18:34:40 -0400
committerLen Brown <len.brown@intel.com>2008-04-29 03:22:30 -0400
commit62cfb298b95d713825deb8faf2044c45a1e17a0a (patch)
treeb95c11c8334b5779db67393b3458b54d6dd9a787 /include
parentd152cf5d0c3325979e71ee53b425fdd51a1a285a (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 'include')
-rw-r--r--include/linux/pnp.h36
1 files changed, 0 insertions, 36 deletions
diff --git a/include/linux/pnp.h b/include/linux/pnp.h
index a5487b6a4e57..f5b985e912ae 100644
--- a/include/linux/pnp.h
+++ b/include/linux/pnp.h
@@ -414,19 +414,12 @@ extern struct bus_type pnp_bus_type;
414#if defined(CONFIG_PNP) 414#if defined(CONFIG_PNP)
415 415
416/* device management */ 416/* device management */
417int pnp_register_protocol(struct pnp_protocol *protocol);
418void pnp_unregister_protocol(struct pnp_protocol *protocol);
419int pnp_add_device(struct pnp_dev *dev);
420int pnp_device_attach(struct pnp_dev *pnp_dev); 417int pnp_device_attach(struct pnp_dev *pnp_dev);
421void pnp_device_detach(struct pnp_dev *pnp_dev); 418void pnp_device_detach(struct pnp_dev *pnp_dev);
422extern struct list_head pnp_global; 419extern struct list_head pnp_global;
423extern int pnp_platform_devices; 420extern int pnp_platform_devices;
424 421
425/* multidevice card support */ 422/* multidevice card support */
426int pnp_add_card(struct pnp_card *card);
427void pnp_remove_card(struct pnp_card *card);
428int pnp_add_card_device(struct pnp_card *card, struct pnp_dev *dev);
429void pnp_remove_card_device(struct pnp_dev *dev);
430struct pnp_dev *pnp_request_card_device(struct pnp_card_link *clink, 423struct pnp_dev *pnp_request_card_device(struct pnp_card_link *clink,
431 const char *id, struct pnp_dev *from); 424 const char *id, struct pnp_dev *from);
432void pnp_release_card_device(struct pnp_dev *dev); 425void pnp_release_card_device(struct pnp_dev *dev);
@@ -435,20 +428,7 @@ void pnp_unregister_card_driver(struct pnp_card_driver *drv);
435extern struct list_head pnp_cards; 428extern struct list_head pnp_cards;
436 429
437/* resource management */ 430/* resource management */
438struct pnp_option *pnp_register_independent_option(struct pnp_dev *dev);
439struct pnp_option *pnp_register_dependent_option(struct pnp_dev *dev,
440 int priority);
441int pnp_register_irq_resource(struct pnp_dev *dev, struct pnp_option *option,
442 struct pnp_irq *data);
443int pnp_register_dma_resource(struct pnp_dev *dev, struct pnp_option *option,
444 struct pnp_dma *data);
445int pnp_register_port_resource(struct pnp_dev *dev, struct pnp_option *option,
446 struct pnp_port *data);
447int pnp_register_mem_resource(struct pnp_dev *dev, struct pnp_option *option,
448 struct pnp_mem *data);
449void pnp_init_resources(struct pnp_dev *dev);
450int pnp_auto_config_dev(struct pnp_dev *dev); 431int pnp_auto_config_dev(struct pnp_dev *dev);
451int pnp_validate_config(struct pnp_dev *dev);
452int pnp_start_dev(struct pnp_dev *dev); 432int pnp_start_dev(struct pnp_dev *dev);
453int pnp_stop_dev(struct pnp_dev *dev); 433int pnp_stop_dev(struct pnp_dev *dev);
454int pnp_activate_dev(struct pnp_dev *dev); 434int pnp_activate_dev(struct pnp_dev *dev);
@@ -463,35 +443,19 @@ void pnp_unregister_driver(struct pnp_driver *drv);
463#else 443#else
464 444
465/* device management */ 445/* device management */
466static inline int pnp_register_protocol(struct pnp_protocol *protocol) { return -ENODEV; }
467static inline void pnp_unregister_protocol(struct pnp_protocol *protocol) { }
468static inline int pnp_init_device(struct pnp_dev *dev) { return -ENODEV; }
469static inline int pnp_add_device(struct pnp_dev *dev) { return -ENODEV; }
470static inline int pnp_device_attach(struct pnp_dev *pnp_dev) { return -ENODEV; } 446static inline int pnp_device_attach(struct pnp_dev *pnp_dev) { return -ENODEV; }
471static inline void pnp_device_detach(struct pnp_dev *pnp_dev) { } 447static inline void pnp_device_detach(struct pnp_dev *pnp_dev) { }
472 448
473#define pnp_platform_devices 0 449#define pnp_platform_devices 0
474 450
475/* multidevice card support */ 451/* multidevice card support */
476static inline int pnp_add_card(struct pnp_card *card) { return -ENODEV; }
477static inline void pnp_remove_card(struct pnp_card *card) { }
478static inline int pnp_add_card_device(struct pnp_card *card, struct pnp_dev *dev) { return -ENODEV; }
479static inline void pnp_remove_card_device(struct pnp_dev *dev) { }
480static inline struct pnp_dev *pnp_request_card_device(struct pnp_card_link *clink, const char *id, struct pnp_dev *from) { return NULL; } 452static inline struct pnp_dev *pnp_request_card_device(struct pnp_card_link *clink, const char *id, struct pnp_dev *from) { return NULL; }
481static inline void pnp_release_card_device(struct pnp_dev *dev) { } 453static inline void pnp_release_card_device(struct pnp_dev *dev) { }
482static inline int pnp_register_card_driver(struct pnp_card_driver *drv) { return -ENODEV; } 454static inline int pnp_register_card_driver(struct pnp_card_driver *drv) { return -ENODEV; }
483static inline void pnp_unregister_card_driver(struct pnp_card_driver *drv) { } 455static inline void pnp_unregister_card_driver(struct pnp_card_driver *drv) { }
484 456
485/* resource management */ 457/* resource management */
486static inline struct pnp_option *pnp_register_independent_option(struct pnp_dev *dev) { return NULL; }
487static inline struct pnp_option *pnp_register_dependent_option(struct pnp_dev *dev, int priority) { return NULL; }
488static inline int pnp_register_irq_resource(struct pnp_dev *dev, struct pnp_option *option, struct pnp_irq *data) { return -ENODEV; }
489static inline int pnp_register_dma_resource(struct pnp_dev *dev, struct pnp_option *option, struct pnp_dma *data) { return -ENODEV; }
490static inline int pnp_register_port_resource(struct pnp_dev *dev, struct pnp_option *option, struct pnp_port *data) { return -ENODEV; }
491static inline int pnp_register_mem_resource(struct pnp_dev *dev, struct pnp_option *option, struct pnp_mem *data) { return -ENODEV; }
492static inline void pnp_init_resources(struct pnp_dev *dev) { }
493static inline int pnp_auto_config_dev(struct pnp_dev *dev) { return -ENODEV; } 458static inline int pnp_auto_config_dev(struct pnp_dev *dev) { return -ENODEV; }
494static inline int pnp_validate_config(struct pnp_dev *dev) { return -ENODEV; }
495static inline int pnp_start_dev(struct pnp_dev *dev) { return -ENODEV; } 459static inline int pnp_start_dev(struct pnp_dev *dev) { return -ENODEV; }
496static inline int pnp_stop_dev(struct pnp_dev *dev) { return -ENODEV; } 460static inline int pnp_stop_dev(struct pnp_dev *dev) { return -ENODEV; }
497static inline int pnp_activate_dev(struct pnp_dev *dev) { return -ENODEV; } 461static inline int pnp_activate_dev(struct pnp_dev *dev) { return -ENODEV; }