/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/include/asm-x86_64/ |
H A D | topology.h | 25 #define pcibus_to_node(bus) ((long)(bus->sysdata)) 26 #define pcibus_to_cpumask(bus) node_to_cpumask(pcibus_to_node(bus));
|
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/arch/arm/mach-aaec2000/ |
H A D | core.h | 12 #include <linux/amba/bus.h>
|
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/arch/mips/pci/ |
H A D | ops-bonito64.c | 33 * PCI configuration cycle AD bus definition 46 struct pci_bus *bus, 50 unsigned char busnum = bus->number; 57 /* We number bus 0 devices from 0..21 */ 131 static int bonito64_pcibios_read(struct pci_bus *bus, unsigned int devfn, argument 141 if (bonito64_pcibios_config_access(PCI_ACCESS_READ, bus, devfn, where, 155 static int bonito64_pcibios_write(struct pci_bus *bus, unsigned int devfn, argument 168 if (bonito64_pcibios_config_access(PCI_ACCESS_READ, bus, devfn, 180 if (bonito64_pcibios_config_access(PCI_ACCESS_WRITE, bus, devfn, where, 45 bonito64_pcibios_config_access(unsigned char access_type, struct pci_bus *bus, unsigned int devfn, int where, u32 * data) argument
|
H A D | ops-emma2rh.c | 43 static int check_args(struct pci_bus *bus, u32 devfn, u32 * bus_num) argument 45 /* check if the bus is top-level */ 46 if (bus->parent != NULL) { 47 *bus_num = bus->number; 87 static int pci_config_read(struct pci_bus *bus, unsigned int devfn, int where, argument 97 if (check_args(bus, devfn, &bus_num) == PCIBIOS_DEVICE_NOT_FOUND) 132 static int pci_config_write(struct pci_bus *bus, unsigned int devfn, int where, argument 141 if (check_args(bus, devfn, &bus_num) == PCIBIOS_DEVICE_NOT_FOUND)
|
H A D | ops-nile4.c | 21 struct pci_bus *bus, unsigned int devfn, int where, u32 * val) 23 unsigned char busnum = bus->number; 78 static int nile4_pcibios_read(struct pci_bus *bus, unsigned int devfn, argument 91 err = nile4_pcibios_config_access(PCI_ACCESS_READ, bus, devfn, where, 108 static int nile4_pcibios_write(struct pci_bus *bus, unsigned int devfn, argument 121 err = nile4_pcibios_config_access(PCI_ACCESS_READ, bus, devfn, where, 138 (PCI_ACCESS_WRITE, bus, devfn, where, &data)) 20 nile4_pcibios_config_access(unsigned char access_type, struct pci_bus *bus, unsigned int devfn, int where, u32 * val) argument
|
H A D | fixup-vr4133.c | 54 if(dev->bus->number == 0) { 118 u16 bus; member in struct:irq_map_entry 140 struct pci_bus *bus; local 143 bus = dev->bus; 144 if (bus == NULL) 148 if (int_map[i].bus == bus->number && int_map[i].slot == slot) { 178 if( dev->bus->number == 1 && vr4133_rockhopper ) {
|
H A D | ops-bridge.c | 27 static int pci_conf0_read_config(struct pci_bus *bus, unsigned int devfn, argument 30 struct bridge_controller *bc = BRIDGE_CONTROLLER(bus); 87 static int pci_conf1_read_config(struct pci_bus *bus, unsigned int devfn, argument 90 struct bridge_controller *bc = BRIDGE_CONTROLLER(bus); 92 int busno = bus->number; 151 static int pci_read_config(struct pci_bus *bus, unsigned int devfn, argument 154 if (bus->number > 0) 155 return pci_conf1_read_config(bus, devfn, where, size, value); 157 return pci_conf0_read_config(bus, devfn, where, size, value); 160 static int pci_conf0_write_config(struct pci_bus *bus, unsigne argument 226 pci_conf1_write_config(struct pci_bus *bus, unsigned int devfn, int where, int size, u32 value) argument 294 pci_write_config(struct pci_bus *bus, unsigned int devfn, int where, int size, u32 value) argument [all...] |
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/drivers/usb/core/ |
H A D | usb.c | 208 usb_put_hcd(bus_to_hcd(udev->bus)); 249 * @bus: bus used to access the device 259 usb_alloc_dev(struct usb_device *parent, struct usb_bus *bus, unsigned port1) argument 267 if (!usb_get_hcd(bus_to_hcd(bus))) { 273 dev->dev.bus = &usb_bus_type; 275 dev->dev.dma_mask = bus->controller->dma_mask; 289 * as stable: bus->busnum changes easily from modprobe order, 295 dev->dev.parent = bus->controller; 296 sprintf(&dev->dev.bus_id[0], "usb%d", bus 515 struct usb_bus *bus; local 700 struct usb_bus *bus; local 727 struct usb_bus *bus; local [all...] |
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/drivers/mca/ |
H A D | mca-bus.c | 4 * MCA bus support functions for sysfs. 34 /* Very few machines have more than one MCA bus. However, there are 106 int __init mca_register_device(int bus, struct mca_device *mca_dev) argument 108 struct mca_bus *mca_bus = mca_root_busses[bus]; 112 mca_dev->dev.bus = &mca_bus_type; 113 sprintf (mca_dev->dev.bus_id, "%02d:%02X", bus, mca_dev->slot); 138 struct mca_bus * __devinit mca_attach_bus(int bus) argument 142 if (unlikely(mca_root_busses[bus] != NULL)) { 144 printk(KERN_EMERG "MCA tried to add already existing bus %d\n", 145 bus); [all...] |
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/drivers/pci/ |
H A D | access.c | 28 (struct pci_bus *bus, unsigned int devfn, int pos, type *value) \ 35 res = bus->ops->read(bus, devfn, pos, len, &data); \ 43 (struct pci_bus *bus, unsigned int devfn, int pos, type value) \ 49 res = bus->ops->write(bus, devfn, pos, len, value); \ 101 ret = dev->bus->ops->read(dev->bus, dev->devfn, \ 116 ret = dev->bus->ops->write(dev->bus, de [all...] |
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/include/asm-powerpc/ |
H A D | pci.h | 39 * bus numbers 48 /* No special bus mastering setup handling */ 110 extern int pci_domain_nr(struct pci_bus *bus); 113 extern int pci_proc_domain(struct pci_bus *bus); 134 #define pci_domain_nr(bus) ((struct pci_controller *)(bus)->sysdata)->index 136 /* Set the name of the bus as it appears in /proc/bus/pci */ 137 static inline int pci_proc_domain(struct pci_bus *bus) argument 223 extern int unmap_bus_range(struct pci_bus *bus); [all...] |
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/arch/ppc/kernel/ |
H A D | pci.c | 40 static int pci_relocate_bridge_resource(struct pci_bus *bus, int i); 43 static void update_bridge_base(struct pci_bus *bus, int i); 49 /* By default, we don't re-assign bus numbers. 199 struct pci_bus *bus; local 203 /* Depth-First Search on bus tree */ 204 list_for_each_entry(bus, bus_list, node) { 206 if ((res = bus->resource[i]) == NULL || !res->flags 209 if (bus->parent == NULL) 213 pr = pci_find_parent_resource(bus->self, res); 238 "%d of PCI bridge %d\n", i, bus 287 pci_relocate_bridge_resource(struct pci_bus *bus, int i) argument 348 struct pci_bus *bus; local 390 update_bridge_base(struct pci_bus *bus, int i) argument 607 struct pci_bus *bus; local 679 pcibios_fixup_bus(struct pci_bus *bus) argument 784 pci_bus_to_hose(int bus) argument 795 pci_bus_io_base(unsigned int bus) argument 806 pci_bus_io_base_phys(unsigned int bus) argument 817 pci_bus_mem_base_phys(unsigned int bus) argument 1051 sys_pciconfig_iobase(long which, unsigned long bus, unsigned long devfn) argument 1182 null_read_config(struct pci_bus *bus, unsigned int devfn, int offset, int len, u32 *val) argument 1189 null_write_config(struct pci_bus *bus, unsigned int devfn, int offset, int len, u32 val) argument 1208 static struct pci_bus bus; local [all...] |
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/arch/sparc64/kernel/ |
H A D | pci.c | 7 * OF tree based PCI bus probing taken from the PowerPC port 36 asmlinkage int sys_pciconfig_read(unsigned long bus, unsigned long dfn, argument 42 asmlinkage int sys_pciconfig_write(unsigned long bus, unsigned long dfn, argument 295 * that bus scanning can be done. 389 struct pci_bus *bus, int devfn, 417 dev->bus = bus; 419 dev->dev.parent = bus->bridge; 420 dev->dev.bus = &pci_bus_type; 431 sprintf(pci_name(dev), "%04x:%02x:%02x.%d", pci_domain_nr(bus), 387 of_create_pci_dev(struct pci_pbm_info *pbm, struct device_node *node, struct pci_bus *bus, int devfn, int host_controller) argument 529 pci_cfg_fake_ranges(struct pci_dev *dev, struct pci_bus *bus, struct pci_pbm_info *pbm) argument 611 apb_fake_ranges(struct pci_dev *dev, struct pci_bus *bus, struct pci_pbm_info *pbm) argument 646 struct pci_bus *bus; local 743 pci_of_scan_bus(struct pci_pbm_info *pbm, struct device_node *node, struct pci_bus *bus) argument 793 pci_bus_register_of_sysfs(struct pci_bus *bus) argument 855 struct pci_bus *bus; local [all...] |
H A D | pci_common.c | 20 unsigned long bus, 24 if (bus < pbm->pci_first_busno || 25 bus > pbm->pci_last_busno) 31 unsigned long bus, 37 if (config_out_of_range(pbm, bus, devfn, reg)) 42 bus <<= rbits + 8; 44 return (void *) (pbm->config_space | bus | devfn | reg); 51 unsigned char bus = bus_dev->number; local 72 addr = sun4u_config_mkaddr(pbm, bus, devfn, where); 108 unsigned char bus local 19 config_out_of_range(struct pci_pbm_info *pbm, unsigned long bus, unsigned long devfn, unsigned long reg) argument 30 sun4u_config_mkaddr(struct pci_pbm_info *pbm, unsigned long bus, unsigned long devfn, unsigned long reg) argument 153 unsigned int bus = bus_dev->number; local 189 unsigned int bus = bus_dev->number; local 369 struct pci_bus *bus; local 393 struct pci_bus *bus; local 416 struct pci_bus *bus; local [all...] |
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/arch/frv/mb93090-mb00/ |
H A D | pci-vdk.c | 37 #define CONFIG_CMD(bus, dev, where) \ 38 (0x80000000 | (bus->number << 16) | (devfn << 8) | (where & ~3)) 65 // return dev->bus->number==0 && (dev->devfn==PCI_DEVFN(0,0)); 66 // return dev->bus->number==1; 67 // return dev->bus->number==0 && 76 static int pci_frv_read_config(struct pci_bus *bus, unsigned int devfn, int where, int size, argument 81 if (bus->number == 0 && devfn == PCI_DEVFN(0, 0)) { 85 __set_PciCfgAddr(CONFIG_CMD(bus, devfn, where)); 109 static int pci_frv_write_config(struct pci_bus *bus, unsigned int devfn, int where, int size, argument 114 if (bus 167 struct pci_bus bus; /* Fake bus and device */ local 259 struct pci_bus bus; local 354 pcibios_fixup_bus(struct pci_bus *bus) argument [all...] |
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/arch/powerpc/platforms/powermac/ |
H A D | pci.c | 75 bus_range = of_get_property(node, "bus-range", &len); 85 /* This routine fixes the "bus-range" property of all bridges in the 88 * Note that the bus numbers manipulated here are OF bus numbers, they 89 * are not Linux bus numbers. 96 /* Lookup the "bus-range" property for the hose */ 97 prop = of_find_property(bridge, "bus-range", &len); 113 * for the separate display bus. It is accessed the same 122 * AGP bus which is dealt with the old UniNorth access routines 123 * and a HyperTransport bus whic 138 macrisc_cfg_access(struct pci_controller* hose, u8 bus, u8 dev_fn, u8 offset) argument 159 macrisc_read_config(struct pci_bus *bus, unsigned int devfn, int offset, int len, u32 *val) argument 191 macrisc_write_config(struct pci_bus *bus, unsigned int devfn, int offset, int len, u32 val) argument 236 chaos_validate_dev(struct pci_bus *bus, int devfn, int offset) argument 260 chaos_read_config(struct pci_bus *bus, unsigned int devfn, int offset, int len, u32 *val) argument 272 chaos_write_config(struct pci_bus *bus, unsigned int devfn, int offset, int len, u32 val) argument 312 u3_ht_skip_device(struct pci_controller *hose, struct pci_bus *bus, unsigned int devfn) argument 350 u3_ht_cfg_access(struct pci_controller* hose, u8 bus, u8 devfn, u8 offset) argument 362 u3_ht_read_config(struct pci_bus *bus, unsigned int devfn, int offset, int len, u32 *val) argument 412 u3_ht_write_config(struct pci_bus *bus, unsigned int devfn, int offset, int len, u32 val) argument 476 u4_pcie_cfg_access(struct pci_controller* hose, u8 bus, u8 dev_fn, int offset) argument 495 u4_pcie_read_config(struct pci_bus *bus, unsigned int devfn, int offset, int len, u32 *val) argument 527 u4_pcie_write_config(struct pci_bus *bus, unsigned int devfn, int offset, int len, u32 val) argument 618 u8 bus, devfn; local 653 unsigned char bus, devfn; local 691 u8 bus, devfn; local [all...] |
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/arch/ppc/platforms/ |
H A D | apus_pci.c | 54 void *pci_io_base(unsigned int bus) argument 61 apus_pcibios_read_config(struct pci_bus *bus, int devfn, int offset, argument 68 if (bus->number > 0 || devno != 1) { 87 bus->number, devfn>>3, devfn&7, offset, len, *val); 92 apus_pcibios_write_config(struct pci_bus *bus, int devfn, int offset, argument 99 if (bus->number > 0 || devno != 1) { 117 bus->number, devfn>>3, devfn&7, offset, len, val); 139 static void __init apus_pcibios_fixup_bus(struct pci_bus *bus) argument 141 bus->resource[1] = &pci_mem;
|
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/drivers/acpi/ |
H A D | pci_irq.c | 51 int bus, 63 * PCI device's segment, bus, device, and pin (don't care about func). 70 && (bus == entry->id.bus) 84 int segment, int bus, struct acpi_pci_routing_table *prt) 97 entry->id.bus = bus; 131 entry->id.segment, entry->id.bus, 144 acpi_pci_irq_del_entry(int segment, int bus, struct acpi_prt_entry *entry) argument 146 if (segment == entry->id.segment && bus 50 acpi_pci_irq_find_prt_entry(int segment, int bus, int device, int pin) argument 83 acpi_pci_irq_add_entry(acpi_handle handle, int segment, int bus, struct acpi_pci_routing_table *prt) argument 153 acpi_pci_irq_add_prt(acpi_handle handle, int segment, int bus) argument 226 acpi_pci_irq_del_prt(int segment, int bus) argument 298 acpi_pci_irq_lookup(struct pci_bus *bus, int device, int pin, int *triggering, int *polarity, char **link, irq_lookup_func func) argument [all...] |
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/drivers/pnp/isapnp/ |
H A D | proc.c | 96 struct pnp_card *bus = dev->card; local 100 if (!(de = bus->procdir)) { 101 sprintf(name, "%02x", bus->number); 102 de = bus->procdir = proc_mkdir(name, isapnp_proc_bus_dir); 120 struct pnp_card *bus = dev->card; local 124 if (!(de = bus->procdir)) 131 static int __exit isapnp_proc_detach_bus(struct pnp_card *bus) argument 136 if (!(de = bus->procdir)) 138 sprintf(name, "%02x", bus->number);
|
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/arch/sh/boards/mpc1211/ |
H A D | pci.c | 54 #define CONFIG_CMD(bus, devfn, where) (0x80000000 | (bus->number << 16) | (devfn << 8) | (where & ~3)) 59 static int pci_conf1_read(struct pci_bus *bus, unsigned int devfn, int where, int size, u32 *value) argument 69 writel(CONFIG_CMD(bus,devfn,where), PCIPAR); 95 writel(CONFIG_CMD(bus,devfn,(where+1)), PCIPAR); 115 PCIDBG(4,"pci_conf1_read@0x%08x=0x%x\n", CONFIG_CMD(bus,devfn,where),*value); 123 static int pci_conf1_write(struct pci_bus *bus, unsigned int devfn, int where, int size, u32 value) argument 137 writel(CONFIG_CMD(bus,devfn,where), PCIPAR); 141 PCIDBG(4,"pci_conf1_write@0x%08x=0x%x\n", CONFIG_CMD(bus,devfn,where),value); 149 PCIDBG(4,"pci_conf1_write@0x%08x=0x%x\n", CONFIG_CMD(bus,devf [all...] |
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/arch/arm/mach-ixp2000/ |
H A D | enp2611.c | 111 static inline int enp2611_pci_valid_device(struct pci_bus *bus, argument 117 if (bus->number == 0x01 && devfn == 0x10) 123 static int enp2611_pci_read_config(struct pci_bus *bus, unsigned int devfn, argument 126 if (enp2611_pci_valid_device(bus, devfn)) 127 return ixp2000_pci_read_config(bus, devfn, where, size, value); 132 static int enp2611_pci_write_config(struct pci_bus *bus, unsigned int devfn, argument 135 if (enp2611_pci_valid_device(bus, devfn)) 136 return ixp2000_pci_write_config(bus, devfn, where, size, value); 156 if (dev->bus->number == 0 && PCI_SLOT(dev->devfn) == 0) { 159 } else if (dev->bus [all...] |
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/arch/i386/pci/ |
H A D | direct.c | 14 #define PCI_CONF1_ADDRESS(bus, devfn, reg) \ 15 (0x80000000 | (bus << 16) | (devfn << 8) | (reg & ~3)) 17 int pci_conf1_read(unsigned int seg, unsigned int bus, argument 22 if ((bus > 255) || (devfn > 255) || (reg > 255)) { 29 outl(PCI_CONF1_ADDRESS(bus, devfn, reg), 0xCF8); 48 int pci_conf1_write(unsigned int seg, unsigned int bus, argument 53 if ((bus > 255) || (devfn > 255) || (reg > 255)) 58 outl(PCI_CONF1_ADDRESS(bus, devfn, reg), 0xCF8); 91 static int pci_conf2_read(unsigned int seg, unsigned int bus, argument 97 if ((bus > 25 132 pci_conf2_write(unsigned int seg, unsigned int bus, unsigned int devfn, int reg, int len, u32 value) argument [all...] |
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/drivers/net/ |
H A D | ucc_geth_mii.c | 63 int uec_mdio_write(struct mii_bus *bus, int mii_id, int regnum, u16 value) argument 65 struct ucc_mii_mng __iomem *regs = (void __iomem *)bus->priv; 84 int uec_mdio_read(struct mii_bus *bus, int mii_id, int regnum) argument 86 struct ucc_mii_mng __iomem *regs = (void __iomem *)bus->priv; 107 /* Reset the MIIM registers, and wait for the bus to free */ 108 int uec_mdio_reset(struct mii_bus *bus) argument 110 struct ucc_mii_mng __iomem *regs = (void __iomem *)bus->priv; 113 spin_lock_bh(&bus->mdio_lock); 121 /* Wait until the bus is free */ 125 spin_unlock_bh(&bus 242 struct mii_bus *bus = dev_get_drvdata(device); local [all...] |
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/include/asm-sparc64/ |
H A D | dma-mapping.h | 18 BUG_ON(dev->bus != &pci_bus_type); 26 BUG_ON(dev->bus != &pci_bus_type); 35 BUG_ON(dev->bus != &pci_bus_type); 44 BUG_ON(dev->bus != &pci_bus_type); 53 BUG_ON(dev->bus != &pci_bus_type); 62 BUG_ON(dev->bus != &pci_bus_type); 72 BUG_ON(dev->bus != &pci_bus_type); 81 BUG_ON(dev->bus != &pci_bus_type); 90 BUG_ON(dev->bus != &pci_bus_type); 99 BUG_ON(dev->bus ! [all...] |
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/include/asm-generic/ |
H A D | dma-mapping.h | 22 BUG_ON(dev->bus != &pci_bus_type); 30 BUG_ON(dev->bus != &pci_bus_type); 39 BUG_ON(dev->bus != &pci_bus_type); 48 BUG_ON(dev->bus != &pci_bus_type); 57 BUG_ON(dev->bus != &pci_bus_type); 66 BUG_ON(dev->bus != &pci_bus_type); 76 BUG_ON(dev->bus != &pci_bus_type); 85 BUG_ON(dev->bus != &pci_bus_type); 94 BUG_ON(dev->bus != &pci_bus_type); 103 BUG_ON(dev->bus ! [all...] |