/* function prototypes */
/* acpiphp_core.c */
- extern int acpiphp_register_attention(struct acpiphp_attention_info*info);
- extern int acpiphp_unregister_attention(struct acpiphp_attention_info *info);
- extern int acpiphp_register_hotplug_slot(struct acpiphp_slot *slot);
- extern void acpiphp_unregister_hotplug_slot(struct acpiphp_slot *slot);
+ int acpiphp_register_attention(struct acpiphp_attention_info*info);
+ int acpiphp_unregister_attention(struct acpiphp_attention_info *info);
+ int acpiphp_register_hotplug_slot(struct acpiphp_slot *slot);
+ void acpiphp_unregister_hotplug_slot(struct acpiphp_slot *slot);
/* acpiphp_glue.c */
-int acpiphp_glue_init(void);
-void acpiphp_glue_exit(void);
typedef int (*acpiphp_callback)(struct acpiphp_slot *slot, void *data);
- extern int acpiphp_enable_slot (struct acpiphp_slot *slot);
- extern int acpiphp_disable_slot (struct acpiphp_slot *slot);
- extern int acpiphp_eject_slot (struct acpiphp_slot *slot);
- extern u8 acpiphp_get_power_status (struct acpiphp_slot *slot);
- extern u8 acpiphp_get_attention_status (struct acpiphp_slot *slot);
- extern u8 acpiphp_get_latch_status (struct acpiphp_slot *slot);
- extern u8 acpiphp_get_adapter_status (struct acpiphp_slot *slot);
+ int acpiphp_enable_slot(struct acpiphp_slot *slot);
+ int acpiphp_disable_slot(struct acpiphp_slot *slot);
+ int acpiphp_eject_slot(struct acpiphp_slot *slot);
+ u8 acpiphp_get_power_status(struct acpiphp_slot *slot);
+ u8 acpiphp_get_attention_status(struct acpiphp_slot *slot);
+ u8 acpiphp_get_latch_status(struct acpiphp_slot *slot);
+ u8 acpiphp_get_adapter_status(struct acpiphp_slot *slot);
/* variables */
extern bool acpiphp_debug;
* code, or pci core code. */
extern struct list_head pci_root_buses; /* list of all known PCI buses */
/* Some device drivers need know if pci is initiated */
- extern int no_pci_devices(void);
+ int no_pci_devices(void);
void pcibios_resource_survey_bus(struct pci_bus *bus);
+void pcibios_add_bus(struct pci_bus *bus);
+void pcibios_remove_bus(struct pci_bus *bus);
void pcibios_fixup_bus(struct pci_bus *);
int __must_check pcibios_enable_device(struct pci_dev *, int mask);
/* Architecture specific versions may override this (weak) */
/* PCI <-> OF binding helpers */
#ifdef CONFIG_OF
struct device_node;
- extern void pci_set_of_node(struct pci_dev *dev);
- extern void pci_release_of_node(struct pci_dev *dev);
- extern void pci_set_bus_of_node(struct pci_bus *bus);
- extern void pci_release_bus_of_node(struct pci_bus *bus);
+ void pci_set_of_node(struct pci_dev *dev);
+ void pci_release_of_node(struct pci_dev *dev);
+ void pci_set_bus_of_node(struct pci_bus *bus);
+ void pci_release_bus_of_node(struct pci_bus *bus);
/* Arch may override this (weak) */
- extern struct device_node *pcibios_get_phb_of_node(struct pci_bus *bus);
-struct device_node * __weak pcibios_get_phb_of_node(struct pci_bus *bus);
++struct device_node *pcibios_get_phb_of_node(struct pci_bus *bus);
static inline struct device_node *
pci_device_to_OF_node(const struct pci_dev *pdev)