/linux-2.4.37.9/drivers/hotplug/ |
D | pciehp_pci.c | 87 struct pci_bus* bus = wrapped_bus->bus; in configure_visit_pci_dev() 168 struct pci_bus* bus = wrapped_bus->bus; in unconfigure_visit_pci_bus_phase2() 228 struct pci_bus *child; in pciehp_configure_device() 272 child = (struct pci_bus*) pci_add_new_bus(func->pci_dev->bus, (func->pci_dev), bus); in pciehp_configure_device() 333 struct pci_bus fakebus; in pciehp_set_irq() 387 struct pci_bus lpci_bus, *pci_bus; in pciehp_save_config() local 393 pci_bus = &lpci_bus; in pciehp_save_config() 413 dbg("%s: pci_bus->number = %x\n", __FUNCTION__, pci_bus->number); in pciehp_save_config() 414 pci_bus->number = busnumber; in pciehp_save_config() 418 rc = pci_bus_read_config_dword(pci_bus, PCI_DEVFN(device, 0), PCI_VENDOR_ID, &ID); in pciehp_save_config() [all …]
|
D | shpchp_pci.c | 86 struct pci_bus* bus = wrapped_bus->bus; in configure_visit_pci_dev() 168 struct pci_bus* bus = wrapped_bus->bus; in unconfigure_visit_pci_bus_phase2() 228 struct pci_bus *child; in shpchp_configure_device() 275 child = (struct pci_bus*) pci_add_new_bus(func->pci_dev->bus, (func->pci_dev), bus); in shpchp_configure_device() 337 struct pci_bus fakebus; in shpchp_set_irq() 393 struct pci_bus lpci_bus, *pci_bus; in shpchp_save_config() local 398 pci_bus = &lpci_bus; in shpchp_save_config() 417 pci_bus->number = busnumber; in shpchp_save_config() 420 rc = pci_bus_read_config_dword(pci_bus, PCI_DEVFN(device, 0), PCI_VENDOR_ID, &ID); in shpchp_save_config() 423 rc = pci_bus_read_config_byte(pci_bus, PCI_DEVFN(device, 0), 0x0B, &class_code); in shpchp_save_config() [all …]
|
D | shpchprm_legacy.c | 123 struct pci_bus lpci_bus, *pci_bus; in shpchprm_find_available_resources() local 126 memcpy(&lpci_bus, ctrl->pci_bus, sizeof(lpci_bus)); in shpchprm_find_available_resources() 127 pci_bus = &lpci_bus; in shpchprm_find_available_resources() 211 pci_bus->number = primary_bus; in shpchprm_find_available_resources() 212 pci_bus_read_config_dword(pci_bus, dev_func, PCI_VENDOR_ID, &temp_dword); in shpchprm_find_available_resources() 353 struct pci_bus lpci_bus, *pci_bus; in shpchprm_set_hpp() local 355 memcpy(&lpci_bus, ctrl->pci_bus, sizeof(lpci_bus)); in shpchprm_set_hpp() 356 pci_bus = &lpci_bus; in shpchprm_set_hpp() 357 pci_bus->number = func->bus; in shpchprm_set_hpp() 363 rc = pci_bus_write_config_byte(pci_bus, devfn, PCI_SEC_LATENCY_TIMER, temp_byte); in shpchprm_set_hpp() [all …]
|
D | shpchprm_nonacpi.c | 344 struct pci_bus lpci_bus, *pci_bus; in shpchprm_set_hpp() local 346 memcpy(&lpci_bus, ctrl->pci_bus, sizeof(lpci_bus)); in shpchprm_set_hpp() 347 pci_bus = &lpci_bus; in shpchprm_set_hpp() 348 pci_bus->number = func->bus; in shpchprm_set_hpp() 354 rc = pci_bus_write_config_byte(pci_bus, devfn, PCI_SEC_LATENCY_TIMER, temp_byte); in shpchprm_set_hpp() 363 rc = pci_bus_write_config_byte(pci_bus, devfn, PCI_LATENCY_TIMER, temp_byte); in shpchprm_set_hpp() 373 rc = pci_bus_write_config_byte(pci_bus, devfn, PCI_CACHE_LINE_SIZE, temp_byte); in shpchprm_set_hpp() 391 struct pci_bus lpci_bus, *pci_bus; in shpchprm_enable_card() local 395 memcpy(&lpci_bus, ctrl->pci_bus, sizeof(lpci_bus)); in shpchprm_enable_card() 396 pci_bus = &lpci_bus; in shpchprm_enable_card() [all …]
|
D | pci_hotplug_util.c | 53 static int build_dev (struct pci_bus *bus, unsigned int devfn, struct pci_dev **pci_dev) in build_dev() 81 int pci_bus_read_config_byte (struct pci_bus *bus, unsigned int devfn, int where, u8 *value) in pci_bus_read_config_byte() 112 int pci_bus_read_config_word (struct pci_bus *bus, unsigned int devfn, int where, u16 *value) in pci_bus_read_config_word() 143 int pci_bus_read_config_dword (struct pci_bus *bus, unsigned int devfn, int where, u32 *value) in pci_bus_read_config_dword() 174 int pci_bus_write_config_byte (struct pci_bus *bus, unsigned int devfn, int where, u8 value) in pci_bus_write_config_byte() 205 int pci_bus_write_config_word (struct pci_bus *bus, unsigned int devfn, int where, u16 value) in pci_bus_write_config_word() 236 int pci_bus_write_config_dword (struct pci_bus *bus, unsigned int devfn, int where, u32 value) in pci_bus_write_config_dword() 299 struct pci_bus *bus = wrapped_dev->dev->subordinate; in pci_visit_bridge() 360 static struct pci_bus *alloc_bus(struct pci_ops *ops, u8 bus_nr) in alloc_bus() 362 struct pci_bus *bus = kmalloc(sizeof(struct pci_bus), GFP_KERNEL); in alloc_bus() [all …]
|
D | pciehprm_nonacpi.c | 409 struct pci_bus lpci_bus, *pci_bus; in pciehprm_set_hpp() local 411 memcpy(&lpci_bus, ctrl->pci_bus, sizeof(lpci_bus)); in pciehprm_set_hpp() 412 pci_bus = &lpci_bus; in pciehprm_set_hpp() 413 pci_bus->number = func->bus; in pciehprm_set_hpp() 419 rc = pci_bus_write_config_byte(pci_bus, devfn, PCI_SEC_LATENCY_TIMER, temp_byte); in pciehprm_set_hpp() 428 rc = pci_bus_write_config_byte(pci_bus, devfn, PCI_LATENCY_TIMER, temp_byte); in pciehprm_set_hpp() 439 rc = pci_bus_write_config_byte(pci_bus, devfn, PCI_CACHE_LINE_SIZE, temp_byte); in pciehprm_set_hpp() 458 struct pci_bus lpci_bus, *pci_bus; in pciehprm_enable_card() local 462 memcpy(&lpci_bus, ctrl->pci_bus, sizeof(lpci_bus)); in pciehprm_enable_card() 463 pci_bus = &lpci_bus; in pciehprm_enable_card() [all …]
|
D | pci_hotplug.h | 175 struct pci_bus *bus; 197 int pci_bus_read_config_byte (struct pci_bus *bus, unsigned int devfn, int where, u8 *val); 198 int pci_bus_read_config_word (struct pci_bus *bus, unsigned int devfn, int where, u16 *val); 199 int pci_bus_read_config_dword (struct pci_bus *bus, unsigned int devfn, int where, u32 *val); 200 int pci_bus_write_config_byte(struct pci_bus *bus, unsigned int devfn, int where, u8 val); 201 int pci_bus_write_config_word(struct pci_bus *bus, unsigned int devfn, int where, u16 val); 202 int pci_bus_write_config_dword(struct pci_bus *bus, unsigned int devfn, int where, u32 val);
|
D | pciehp_ctrl.c | 1733 struct pci_bus *pci_bus = p_slot->ctrl->pci_dev->subordinate; in pciehp_disable_slot() local 1770 pci_bus->number = func->bus; in pciehp_disable_slot() 1774 rc = pci_bus_read_config_byte (pci_bus, devfn, 0x0B, &class_code); in pciehp_disable_slot() 1783 rc = pci_bus_read_config_byte (pci_bus, devfn, PCI_HEADER_TYPE, &header_type); in pciehp_disable_slot() 1789 rc = pci_bus_read_config_byte (pci_bus, devfn, PCI_BRIDGE_CONTROL, &BCR); in pciehp_disable_slot() 1834 struct pci_bus lpci_bus, *pci_bus; in configure_new_device() local 1842 pci_bus = &lpci_bus; in configure_new_device() 1843 pci_bus->number = func->bus; in configure_new_device() 1846 rc = pci_bus_read_config_byte(pci_bus, PCI_DEVFN(func->device, func->function), 0x0E, &temp_byte); in configure_new_device() 1885 pci_bus_read_config_dword(pci_bus, PCI_DEVFN(func->device, function), 0x00, &ID); in configure_new_device() [all …]
|
D | shpchp_ctrl.c | 2181 struct pci_bus *pci_bus = p_slot->ctrl->pci_dev->subordinate; in shpchp_disable_slot() local 2216 pci_bus->number = func->bus; in shpchp_disable_slot() 2220 rc = pci_bus_read_config_byte (pci_bus, devfn, 0x0B, &class_code); in shpchp_disable_slot() 2229 rc = pci_bus_read_config_byte (pci_bus, devfn, PCI_HEADER_TYPE, &header_type); in shpchp_disable_slot() 2235 rc = pci_bus_read_config_byte (pci_bus, devfn, PCI_BRIDGE_CONTROL, &BCR); in shpchp_disable_slot() 2280 struct pci_bus lpci_bus, *pci_bus; in configure_new_device() local 2287 pci_bus = &lpci_bus; in configure_new_device() 2288 pci_bus->number = func->bus; in configure_new_device() 2291 rc = pci_bus_read_config_byte(pci_bus, PCI_DEVFN(func->device, func->function), 0x0E, &temp_byte); in configure_new_device() 2330 pci_bus_read_config_dword(pci_bus, PCI_DEVFN(func->device, function), 0x00, &ID); in configure_new_device() [all …]
|
D | acpiphp_pci.c | 61 struct pci_bus *bus; in init_config_space() 65 bus = bridge->pci_bus; in init_config_space() 291 struct pci_bus *bus = wrapped_bus->bus; in unconfigure_pci_bus() 400 static void detect_used_resource_bus(struct acpiphp_bridge *bridge, struct pci_bus *bus) in detect_used_resource_bus() 423 detect_used_resource_bus(bridge, bridge->pci_bus); in acpiphp_detect_pci_resource() 558 pci_bus_read_config_byte(slot->bridge->pci_bus, in acpiphp_configure_slot() 568 pci_bus_read_config_dword(slot->bridge->pci_bus, in acpiphp_configure_slot() 624 wrapped_bus.bus = bridge->pci_bus; in acpiphp_configure_function() 656 wrapped_bus.bus = func->slot->bridge->pci_bus; in acpiphp_unconfigure_function()
|
/linux-2.4.37.9/arch/sparc64/kernel/ |
D | pci_impl.h | 22 extern void pci_fixup_host_bridge_self(struct pci_bus *pbus); 23 extern void pci_fill_in_pbm_cookies(struct pci_bus *pbus, 27 struct pci_bus *pbus); 29 struct pci_bus *pbus); 31 struct pci_bus *pbus); 33 struct pci_bus *pbus); 35 struct pci_bus *pbus); 40 …d pci_scan_for_target_abort(struct pci_controller_info *, struct pci_pbm_info *, struct pci_bus *); 41 …d pci_scan_for_master_abort(struct pci_controller_info *, struct pci_pbm_info *, struct pci_bus *); 42 …d pci_scan_for_parity_error(struct pci_controller_info *, struct pci_pbm_info *, struct pci_bus *);
|
/linux-2.4.37.9/arch/ia64/sn/io/machvec/ |
D | pci_bus_cvlink.c | 97 vertex_hdl_t pci_bus = NULL; in pci_bus_to_vertex() local 103 pci_bus = busnum_to_pcibr_vhdl[busnum]; in pci_bus_to_vertex() 104 return(pci_bus); in pci_bus_to_vertex() 118 vertex_hdl_t pci_bus = NULL; in devfn_to_vertex() local 124 pci_bus = pci_bus_to_vertex(busnum); in devfn_to_vertex() 125 if (!pci_bus) { in devfn_to_vertex() 150 if (hwgraph_traverse(pci_bus, name, &device_vertex) == GRAPH_SUCCESS) { in devfn_to_vertex() 162 if (hwgraph_traverse(pci_bus, name, &device_vertex) != GRAPH_SUCCESS) { in devfn_to_vertex() 402 struct pci_bus *pci_bus = NULL; in sn_pci_fixup() local 437 pci_bus = pci_bus_b(ln); in sn_pci_fixup() [all …]
|
/linux-2.4.37.9/include/linux/ |
D | isapnp.h | 196 struct pci_bus *isapnp_find_card(unsigned short vendor, 198 struct pci_bus *from); 199 struct pci_dev *isapnp_find_dev(struct pci_bus *card, 204 int (*probe)(struct pci_bus *card, 245 static inline struct pci_bus *isapnp_find_card(unsigned short vendor, in isapnp_find_card() 247 struct pci_bus *from) { return NULL; } in isapnp_find_card() 248 static inline struct pci_dev *isapnp_find_dev(struct pci_bus *card, in isapnp_find_dev() 253 int (*probe)(struct pci_bus *card, in isapnp_probe_cards()
|
D | pci.h | 374 struct pci_bus *bus; /* bus this device is on */ 375 struct pci_bus *subordinate; /* bus this device bridges to */ 445 struct pci_bus { struct 447 struct pci_bus *parent; /* parent bus this bridge is on */ argument 472 #define pci_bus_b(n) list_entry(n, struct pci_bus, node) argument 560 void pcibios_fixup_bus(struct pci_bus *); 570 void pcibios_fixup_pbus_ranges(struct pci_bus *, struct pbus_set_ranges_data *); 596 struct pci_bus *pci_scan_bus(int bus, struct pci_ops *ops, void *sysdata); 597 struct pci_bus *pci_alloc_primary_bus(int bus); 602 int pci_proc_attach_bus(struct pci_bus *bus); [all …]
|
/linux-2.4.37.9/arch/parisc/kernel/ |
D | pci.c | 135 void pcibios_fixup_bus(struct pci_bus *bus) in pcibios_fixup_bus() 296 pcibios_init_bus(struct pci_bus *bus) in pcibios_init_bus() 347 struct pci_bus *bus, in pcibios_fixup_pbus_ranges() 474 pcibios_setup_host_bridge(struct pci_bus *bus) in pcibios_setup_host_bridge() 489 pcibios_enable_ppb(struct pci_bus *bus) in pcibios_enable_ppb() 506 pcibios_assign_unassigned_resources(struct pci_bus *bus) in pcibios_assign_unassigned_resources() 509 extern void pbus_size_bridges(struct pci_bus *bus); in pcibios_assign_unassigned_resources() 510 extern void pbus_assign_resources(struct pci_bus *bus); in pcibios_assign_unassigned_resources()
|
/linux-2.4.37.9/drivers/pci/ |
D | setup-bus.c | 39 pbus_assign_resources_sorted(struct pci_bus *bus) in pbus_assign_resources_sorted() 89 pci_setup_bridge(struct pci_bus *bus) in pci_setup_bridge() 172 pci_bridge_check_ranges(struct pci_bus *bus) in pci_bridge_check_ranges() 214 pbus_size_io(struct pci_bus *bus) in pbus_size_io() 263 pbus_size_mem(struct pci_bus *bus, unsigned long mask, unsigned long type) in pbus_size_mem() 335 pbus_size_bridges(struct pci_bus *bus) in pbus_size_bridges() 362 pbus_assign_resources(struct pci_bus *bus) in pbus_assign_resources() 368 struct pci_bus *b; in pbus_assign_resources() 376 struct pci_bus *b = pci_bus_b(ln); in pbus_assign_resources()
|
D | pci.c | 215 const struct pci_bus *bus = dev->bus; in pci_find_parent_resource() 777 pci_insert_device(struct pci_dev *dev, struct pci_bus *bus) in pci_insert_device() 1139 void __devinit pci_read_bridge_bases(struct pci_bus *child) in pci_read_bridge_bases() 1219 static struct pci_bus * __devinit pci_alloc_bus(void) in pci_alloc_bus() 1221 struct pci_bus *b; in pci_alloc_bus() 1232 struct pci_bus * __devinit pci_add_new_bus(struct pci_bus *parent, struct pci_dev *dev, int busnr) in pci_add_new_bus() 1234 struct pci_bus *child; in pci_add_new_bus() 1268 unsigned int __devinit pci_do_scan_bus(struct pci_bus *bus); 1280 static int __devinit pci_scan_bridge(struct pci_bus *bus, struct pci_dev * dev, int max, int pass) in pci_scan_bridge() 1284 struct pci_bus *child; in pci_scan_bridge() [all …]
|
/linux-2.4.37.9/drivers/isdn/hisax/ |
D | bkm_a8.c | 290 static u_char pci_bus __initdata = 0; 340 pci_bus = dev_a8->bus->number; in setup_sct_quadro() 354 pcibios_read_config_byte(pci_bus, pci_device_fn, in setup_sct_quadro() 361 pcibios_write_config_dword(pci_bus, pci_device_fn, in setup_sct_quadro() 366 pcibios_write_config_dword(pci_bus, pci_device_fn, in setup_sct_quadro() 378 pcibios_read_config_dword(pci_bus, pci_device_fn, PCI_BASE_ADDRESS_1, &pci_ioaddr1); in setup_sct_quadro() 379 pcibios_read_config_dword(pci_bus, pci_device_fn, PCI_BASE_ADDRESS_2, &pci_ioaddr2); in setup_sct_quadro() 380 pcibios_read_config_dword(pci_bus, pci_device_fn, PCI_BASE_ADDRESS_3, &pci_ioaddr3); in setup_sct_quadro() 381 pcibios_read_config_dword(pci_bus, pci_device_fn, PCI_BASE_ADDRESS_4, &pci_ioaddr4); in setup_sct_quadro() 382 pcibios_read_config_dword(pci_bus, pci_device_fn, PCI_BASE_ADDRESS_5, &pci_ioaddr5); in setup_sct_quadro()
|
/linux-2.4.37.9/include/asm-sparc/ |
D | pbm.h | 34 struct pci_bus *pci_bus; /* Was inline, MJ allocs now */ member
|
/linux-2.4.37.9/arch/mips/pmc-sierra/stretch/ |
D | pci-irq.c | 33 void __init pmc_stretch_pcibios_fixup_bus(struct pci_bus *bus) in pmc_stretch_pcibios_fixup_bus() 35 struct pci_bus *current_bus = bus; in pmc_stretch_pcibios_fixup_bus()
|
/linux-2.4.37.9/drivers/net/wan/ |
D | sdladrv.c | 590 pcibios_read_config_dword(hw->pci_bus, hw->pci_dev_func, in sdla_down() 593 pcibios_write_config_dword(hw->pci_bus, hw->pci_dev_func, in sdla_down() 599 pcibios_write_config_dword(hw->pci_bus,hw->pci_dev_func, in sdla_down() 602 …pcibios_write_config_dword(hw->pci_bus,hw->pci_dev_func, PCI_MAP1_DWORD, PCI_CPU_B_MEM_DISAB… in sdla_down() 860 pcibios_write_config_dword(hw->pci_bus, hw->pci_dev_func, in S514_intack() 879 pcibios_read_config_dword(hw->pci_bus, hw->pci_dev_func, PCI_INT_STATUS, in read_S514_int_stat() 2047 pcibios_read_config_dword(hw->pci_bus, hw->pci_dev_func, in detect_s514() 2071 pcibios_read_config_dword(hw->pci_bus, hw->pci_dev_func, in detect_s514() 2074 pcibios_write_config_dword(hw->pci_bus, hw->pci_dev_func, in detect_s514() 2105 pcibios_read_config_byte(hw->pci_bus, hw->pci_dev_func, in detect_s514() [all …]
|
/linux-2.4.37.9/arch/mips/gt64120/ev64120/ |
D | fixup-ev64120.c | 17 void __init gt64120_board_pcibios_fixup_bus(struct pci_bus *bus) in gt64120_board_pcibios_fixup_bus() 20 struct pci_bus *current_bus = bus; in gt64120_board_pcibios_fixup_bus()
|
/linux-2.4.37.9/arch/mips/pmc-sierra/yosemite/ |
D | pci-irq.c | 36 void __init titan_pcibios_fixup_bus(struct pci_bus *bus) in titan_pcibios_fixup_bus() 38 struct pci_bus *current_bus = bus; in titan_pcibios_fixup_bus()
|
/linux-2.4.37.9/arch/alpha/kernel/ |
D | pci.c | 254 pcibios_fixup_device_resources(struct pci_dev *dev, struct pci_bus *bus) in pcibios_fixup_device_resources() 273 pcibios_fixup_bus(struct pci_bus *bus) in pcibios_fixup_bus() 375 pcibios_fixup_pbus_ranges(struct pci_bus * bus, in pcibios_fixup_pbus_ranges() 414 pcibios_claim_one_bus(struct pci_bus *b) in pcibios_claim_one_bus() 417 struct pci_bus *child_bus; in pcibios_claim_one_bus() 442 struct pci_bus *b = pci_bus_b(lb); in pcibios_claim_console_setup() 451 struct pci_bus *bus; in common_init_pci()
|
/linux-2.4.37.9/arch/ppc/kernel/ |
D | pci.c | 39 static int pci_relocate_bridge_resource(struct pci_bus *bus, int i); 40 static int probe_resource(struct pci_bus *parent, struct resource *pr, 42 static void update_bridge_base(struct pci_bus *bus, int i); 306 struct pci_bus *bus; in pcibios_allocate_bus_resources() 393 pci_relocate_bridge_resource(struct pci_bus *bus, int i) in pci_relocate_bridge_resource() 398 struct pci_bus *parent = bus->parent; in pci_relocate_bridge_resource() 452 probe_resource(struct pci_bus *parent, struct resource *pr, in probe_resource() 455 struct pci_bus *bus; in probe_resource() 501 update_bridge_base(struct pci_bus *bus, int i) in update_bridge_base() 712 make_one_node_map(struct device_node* node, u8 pci_bus) in make_one_node_map() argument [all …]
|