Lines Matching refs:pci_controller

514 struct pci_controller;
523 void (*config_device)(struct pci_controller* hose, pci_dev_t dev,
528 extern void pci_cfgfunc_do_nothing(struct pci_controller* hose, pci_dev_t dev,
530 extern void pci_cfgfunc_config_device(struct pci_controller* hose, pci_dev_t dev,
542 struct pci_controller { struct
547 struct pci_controller *next; argument
573 void (*fixup_irq)(struct pci_controller *, pci_dev_t); argument
576 int (*read_byte)(struct pci_controller*, pci_dev_t, int where, u8 *); argument
577 int (*read_word)(struct pci_controller*, pci_dev_t, int where, u16 *); argument
578 int (*read_dword)(struct pci_controller*, pci_dev_t, int where, u32 *); argument
579 int (*write_byte)(struct pci_controller*, pci_dev_t, int where, u8); argument
580 int (*write_word)(struct pci_controller*, pci_dev_t, int where, u16); argument
581 int (*write_dword)(struct pci_controller*, pci_dev_t, int where, u32); argument
595 static inline void pci_set_ops(struct pci_controller *hose, in pci_set_ops() argument
596 int (*read_byte)(struct pci_controller*, in pci_set_ops() argument
598 int (*read_word)(struct pci_controller*, in pci_set_ops() argument
600 int (*read_dword)(struct pci_controller*, in pci_set_ops() argument
602 int (*write_byte)(struct pci_controller*, in pci_set_ops() argument
604 int (*write_word)(struct pci_controller*, in pci_set_ops() argument
606 int (*write_dword)(struct pci_controller*, in pci_set_ops() argument
618 extern void pci_setup_indirect(struct pci_controller* hose, u32 cfg_addr, u32 cfg_data);
622 extern phys_addr_t pci_hose_bus_to_phys(struct pci_controller* hose,
624 extern pci_addr_t pci_hose_phys_to_bus(struct pci_controller* hose,
657 extern int pci_hose_read_config_byte(struct pci_controller *hose,
659 extern int pci_hose_read_config_word(struct pci_controller *hose,
661 extern int pci_hose_read_config_dword(struct pci_controller *hose,
663 extern int pci_hose_write_config_byte(struct pci_controller *hose,
665 extern int pci_hose_write_config_word(struct pci_controller *hose,
667 extern int pci_hose_write_config_dword(struct pci_controller *hose,
682 void pciauto_config_init(struct pci_controller *hose);
700 extern int pci_hose_read_config_byte_via_dword(struct pci_controller *hose,
702 extern int pci_hose_read_config_word_via_dword(struct pci_controller *hose,
704 extern int pci_hose_write_config_byte_via_dword(struct pci_controller *hose,
706 extern int pci_hose_write_config_word_via_dword(struct pci_controller *hose,
710 extern void pci_register_hose(struct pci_controller* hose);
711 extern struct pci_controller* pci_bus_to_hose(int bus);
712 extern struct pci_controller *find_hose_by_cfg_addr(void *cfg_addr);
713 extern struct pci_controller *pci_get_hose_head(void);
715 extern int pci_skip_dev(struct pci_controller *hose, pci_dev_t dev);
716 extern int pci_hose_scan(struct pci_controller *hose);
717 extern int pci_hose_scan_bus(struct pci_controller *hose, int bus);
719 extern void pciauto_setup_device(struct pci_controller *hose,
724 extern void pciauto_prescan_setup_bridge(struct pci_controller *hose,
726 extern void pciauto_postscan_setup_bridge(struct pci_controller *hose,
728 extern int pciauto_config_device(struct pci_controller *hose, pci_dev_t dev);
734 extern int pci_hose_config_device(struct pci_controller *hose,
740 extern int pci_hose_find_capability(struct pci_controller *hose, pci_dev_t dev,
742 extern int pci_hose_find_cap_start(struct pci_controller *hose, pci_dev_t dev,
744 extern int pci_find_cap(struct pci_controller *hose, pci_dev_t dev, int pos,
747 int pci_find_next_ext_capability(struct pci_controller *hose,
749 int pci_hose_find_ext_capability(struct pci_controller *hose,
753 extern void board_pci_fixup_dev(struct pci_controller *hose, pci_dev_t dev,
764 extern void pci_mpc85xx_init (struct pci_controller *hose);
784 void pci_write_bar32(struct pci_controller *hose, pci_dev_t dev, int barnum,
795 u32 pci_read_bar32(struct pci_controller *hose, pci_dev_t dev, int barnum);
808 pci_dev_t pci_hose_find_devices(struct pci_controller *hose, int busnum,