|
@@ -414,19 +414,12 @@ extern struct bus_type pnp_bus_type;
|
|
#if defined(CONFIG_PNP)
|
|
#if defined(CONFIG_PNP)
|
|
|
|
|
|
/* device management */
|
|
/* device management */
|
|
-int pnp_register_protocol(struct pnp_protocol *protocol);
|
|
|
|
-void pnp_unregister_protocol(struct pnp_protocol *protocol);
|
|
|
|
-int pnp_add_device(struct pnp_dev *dev);
|
|
|
|
int pnp_device_attach(struct pnp_dev *pnp_dev);
|
|
int pnp_device_attach(struct pnp_dev *pnp_dev);
|
|
void pnp_device_detach(struct pnp_dev *pnp_dev);
|
|
void pnp_device_detach(struct pnp_dev *pnp_dev);
|
|
extern struct list_head pnp_global;
|
|
extern struct list_head pnp_global;
|
|
extern int pnp_platform_devices;
|
|
extern int pnp_platform_devices;
|
|
|
|
|
|
/* multidevice card support */
|
|
/* multidevice card support */
|
|
-int pnp_add_card(struct pnp_card *card);
|
|
|
|
-void pnp_remove_card(struct pnp_card *card);
|
|
|
|
-int pnp_add_card_device(struct pnp_card *card, struct pnp_dev *dev);
|
|
|
|
-void pnp_remove_card_device(struct pnp_dev *dev);
|
|
|
|
struct pnp_dev *pnp_request_card_device(struct pnp_card_link *clink,
|
|
struct pnp_dev *pnp_request_card_device(struct pnp_card_link *clink,
|
|
const char *id, struct pnp_dev *from);
|
|
const char *id, struct pnp_dev *from);
|
|
void pnp_release_card_device(struct pnp_dev *dev);
|
|
void pnp_release_card_device(struct pnp_dev *dev);
|
|
@@ -435,20 +428,7 @@ void pnp_unregister_card_driver(struct pnp_card_driver *drv);
|
|
extern struct list_head pnp_cards;
|
|
extern struct list_head pnp_cards;
|
|
|
|
|
|
/* resource management */
|
|
/* resource management */
|
|
-struct pnp_option *pnp_register_independent_option(struct pnp_dev *dev);
|
|
|
|
-struct pnp_option *pnp_register_dependent_option(struct pnp_dev *dev,
|
|
|
|
- int priority);
|
|
|
|
-int pnp_register_irq_resource(struct pnp_dev *dev, struct pnp_option *option,
|
|
|
|
- struct pnp_irq *data);
|
|
|
|
-int pnp_register_dma_resource(struct pnp_dev *dev, struct pnp_option *option,
|
|
|
|
- struct pnp_dma *data);
|
|
|
|
-int pnp_register_port_resource(struct pnp_dev *dev, struct pnp_option *option,
|
|
|
|
- struct pnp_port *data);
|
|
|
|
-int pnp_register_mem_resource(struct pnp_dev *dev, struct pnp_option *option,
|
|
|
|
- struct pnp_mem *data);
|
|
|
|
-void pnp_init_resources(struct pnp_dev *dev);
|
|
|
|
int pnp_auto_config_dev(struct pnp_dev *dev);
|
|
int pnp_auto_config_dev(struct pnp_dev *dev);
|
|
-int pnp_validate_config(struct pnp_dev *dev);
|
|
|
|
int pnp_start_dev(struct pnp_dev *dev);
|
|
int pnp_start_dev(struct pnp_dev *dev);
|
|
int pnp_stop_dev(struct pnp_dev *dev);
|
|
int pnp_stop_dev(struct pnp_dev *dev);
|
|
int pnp_activate_dev(struct pnp_dev *dev);
|
|
int pnp_activate_dev(struct pnp_dev *dev);
|
|
@@ -463,35 +443,19 @@ void pnp_unregister_driver(struct pnp_driver *drv);
|
|
#else
|
|
#else
|
|
|
|
|
|
/* device management */
|
|
/* device management */
|
|
-static inline int pnp_register_protocol(struct pnp_protocol *protocol) { return -ENODEV; }
|
|
|
|
-static inline void pnp_unregister_protocol(struct pnp_protocol *protocol) { }
|
|
|
|
-static inline int pnp_init_device(struct pnp_dev *dev) { return -ENODEV; }
|
|
|
|
-static inline int pnp_add_device(struct pnp_dev *dev) { return -ENODEV; }
|
|
|
|
static inline int pnp_device_attach(struct pnp_dev *pnp_dev) { return -ENODEV; }
|
|
static inline int pnp_device_attach(struct pnp_dev *pnp_dev) { return -ENODEV; }
|
|
static inline void pnp_device_detach(struct pnp_dev *pnp_dev) { }
|
|
static inline void pnp_device_detach(struct pnp_dev *pnp_dev) { }
|
|
|
|
|
|
#define pnp_platform_devices 0
|
|
#define pnp_platform_devices 0
|
|
|
|
|
|
/* multidevice card support */
|
|
/* multidevice card support */
|
|
-static inline int pnp_add_card(struct pnp_card *card) { return -ENODEV; }
|
|
|
|
-static inline void pnp_remove_card(struct pnp_card *card) { }
|
|
|
|
-static inline int pnp_add_card_device(struct pnp_card *card, struct pnp_dev *dev) { return -ENODEV; }
|
|
|
|
-static inline void pnp_remove_card_device(struct pnp_dev *dev) { }
|
|
|
|
static inline struct pnp_dev *pnp_request_card_device(struct pnp_card_link *clink, const char *id, struct pnp_dev *from) { return NULL; }
|
|
static inline struct pnp_dev *pnp_request_card_device(struct pnp_card_link *clink, const char *id, struct pnp_dev *from) { return NULL; }
|
|
static inline void pnp_release_card_device(struct pnp_dev *dev) { }
|
|
static inline void pnp_release_card_device(struct pnp_dev *dev) { }
|
|
static inline int pnp_register_card_driver(struct pnp_card_driver *drv) { return -ENODEV; }
|
|
static inline int pnp_register_card_driver(struct pnp_card_driver *drv) { return -ENODEV; }
|
|
static inline void pnp_unregister_card_driver(struct pnp_card_driver *drv) { }
|
|
static inline void pnp_unregister_card_driver(struct pnp_card_driver *drv) { }
|
|
|
|
|
|
/* resource management */
|
|
/* resource management */
|
|
-static inline struct pnp_option *pnp_register_independent_option(struct pnp_dev *dev) { return NULL; }
|
|
|
|
-static inline struct pnp_option *pnp_register_dependent_option(struct pnp_dev *dev, int priority) { return NULL; }
|
|
|
|
-static inline int pnp_register_irq_resource(struct pnp_dev *dev, struct pnp_option *option, struct pnp_irq *data) { return -ENODEV; }
|
|
|
|
-static inline int pnp_register_dma_resource(struct pnp_dev *dev, struct pnp_option *option, struct pnp_dma *data) { return -ENODEV; }
|
|
|
|
-static inline int pnp_register_port_resource(struct pnp_dev *dev, struct pnp_option *option, struct pnp_port *data) { return -ENODEV; }
|
|
|
|
-static inline int pnp_register_mem_resource(struct pnp_dev *dev, struct pnp_option *option, struct pnp_mem *data) { return -ENODEV; }
|
|
|
|
-static inline void pnp_init_resources(struct pnp_dev *dev) { }
|
|
|
|
static inline int pnp_auto_config_dev(struct pnp_dev *dev) { return -ENODEV; }
|
|
static inline int pnp_auto_config_dev(struct pnp_dev *dev) { return -ENODEV; }
|
|
-static inline int pnp_validate_config(struct pnp_dev *dev) { return -ENODEV; }
|
|
|
|
static inline int pnp_start_dev(struct pnp_dev *dev) { return -ENODEV; }
|
|
static inline int pnp_start_dev(struct pnp_dev *dev) { return -ENODEV; }
|
|
static inline int pnp_stop_dev(struct pnp_dev *dev) { return -ENODEV; }
|
|
static inline int pnp_stop_dev(struct pnp_dev *dev) { return -ENODEV; }
|
|
static inline int pnp_activate_dev(struct pnp_dev *dev) { return -ENODEV; }
|
|
static inline int pnp_activate_dev(struct pnp_dev *dev) { return -ENODEV; }
|