/external/grub/netboot/ |
D | pci.c | 401 unsigned int devfn, l, bus, buses; in scan_bus() local 416 for (devfn = 0; devfn < 0xff; ++devfn) { in scan_bus() 417 if (PCI_FUNC (devfn) == 0) in scan_bus() 418 pcibios_read_config_byte(bus, devfn, PCI_HEADER_TYPE, &hdr_type); in scan_bus() 421 pcibios_read_config_dword(bus, devfn, PCI_VENDOR_ID, &l); in scan_bus() 432 bus, devfn, vendor, device); in scan_bus() 438 pcidev[i].devfn = devfn; in scan_bus() 441 pcibios_read_config_dword(bus, devfn, reg, &ioaddr); in scan_bus() 448 pcibios_read_config_dword(bus, devfn, in scan_bus() 451 pcibios_read_config_dword(bus, devfn, PCI_ROM_ADDRESS, &romaddr); in scan_bus() [all …]
|
D | pci.h | 66 #define PCI_FUNC(devfn) ((devfn) & 0x07) argument 179 unsigned char devfn; member
|
D | sis900.c | 192 pcibios_read_config_byte(p->bus,p->devfn, 0x48, ®); in sis630e_get_mac_addr() 193 pcibios_write_config_byte(p->bus,p->devfn, 0x48, reg | 0x40); in sis630e_get_mac_addr() 200 pcibios_write_config_byte(p->bus,p->devfn, 0x48, reg & ~0x40); in sis630e_get_mac_addr() 236 pcibios_write_config_dword(pci->bus, pci->devfn, 0x40, 0x00000000); in sis900_probe() 242 pcibios_read_config_byte(pci->bus,pci->devfn, PCI_REVISION, &revision); in sis900_probe()
|
D | natsemi.c | 271 pcibios_read_config_dword(pci->bus, pci->devfn, PCIPM, &tmp); in natsemi_probe() 275 pcibios_write_config_dword(pci->bus, pci->devfn, PCIPM, newtmp); in natsemi_probe()
|
D | otulip.c | 353 pcibios_write_config_dword(pci->bus,pci->devfn,0x40,0x00000000); in otulip_probe()
|
D | davicom.c | 663 pcibios_write_config_dword(pci->bus, pci->devfn, 0x40, 0x00000000); in davicom_probe()
|
D | w89c840.c | 620 …printf("winbond-840: PCI bus %hhX device function %hhX: I/O address: %hX\n", p->bus, p->devfn, ioa… in w89c840_probe()
|
D | tulip.c | 1259 pcibios_write_config_dword(pci->bus, pci->devfn, 0x40, 0x00000000); in tulip_probe() 1267 pcibios_read_config_byte(pci->bus, pci->devfn, PCI_REVISION, &chip_rev); in tulip_probe()
|
/external/qemu/hw/ |
D | pci.h | 16 #define PCI_SLOT(devfn) (((devfn) >> 3) & 0x1f) argument 17 #define PCI_FUNC(devfn) ((devfn) & 0x07) argument 147 int devfn; member 164 int instance_size, int devfn, 186 PCIDevice *pci_nic_init(PCIBus *bus, NICInfo *nd, int devfn, 199 PCIBus *pci_bridge_init(PCIBus *bus, int devfn, uint16_t vid, uint16_t did, 223 PCIDevice *pci_create_simple(PCIBus *bus, int devfn, const char *name); 233 void usb_uhci_piix3_init(PCIBus *bus, int devfn); 234 void usb_uhci_piix4_init(PCIBus *bus, int devfn); 237 void usb_ohci_init_pci(struct PCIBus *bus, int num_ports, int devfn);
|
D | pci.c | 243 const char *name, int devfn, in do_pci_register_device() argument 247 if (devfn < 0) { in do_pci_register_device() 248 for(devfn = bus->devfn_min ; devfn < 256; devfn += 8) { in do_pci_register_device() 249 if (!bus->devices[devfn]) in do_pci_register_device() 256 pci_dev->devfn = devfn; in do_pci_register_device() 267 bus->devices[devfn] = pci_dev; in do_pci_register_device() 273 int instance_size, int devfn, in pci_register_device() argument 280 pci_dev = do_pci_register_device(pci_dev, bus, name, devfn, in pci_register_device() 320 pci_dev->bus->devices[pci_dev->devfn] = NULL; in pci_unregister_device() 725 d->bus->bus_num, d->devfn >> 3, d->devfn & 7); in pci_info_device() [all …]
|
D | pc.h | 111 i2c_bus *piix4_pm_init(PCIBus *bus, int devfn, uint32_t smb_io_base, 127 int piix3_init(PCIBus *bus, int devfn); 131 int piix4_init(PCIBus *bus, int devfn); 156 void pci_piix3_ide_init(PCIBus *bus, BlockDriverState **hd_table, int devfn, 158 void pci_piix4_ide_init(PCIBus *bus, BlockDriverState **hd_table, int devfn,
|
D | usb-ohci.c | 1662 static void usb_ohci_init(OHCIState *ohci, int num_ports, int devfn, in usb_ohci_init() argument 1713 void usb_ohci_init_pci(struct PCIBus *bus, int num_ports, int devfn) in usb_ohci_init_pci() argument 1718 devfn, NULL, NULL); in usb_ohci_init_pci() 1731 usb_ohci_init(&ohci->state, num_ports, devfn, ohci->pci_dev.irq[0], in usb_ohci_init_pci() 1738 void usb_ohci_init_pxa(target_phys_addr_t base, int num_ports, int devfn, in usb_ohci_init_pxa() argument 1743 usb_ohci_init(ohci, num_ports, devfn, irq, in usb_ohci_init_pxa() 1750 int num_ports, int devfn, qemu_irq irq) in usb_ohci_init_sm501() argument 1754 usb_ohci_init(ohci, num_ports, devfn, irq, in usb_ohci_init_sm501()
|
D | devices.h | 69 int num_ports, int devfn, qemu_irq irq);
|
D | pxa.h | 217 void usb_ohci_init_pxa(target_phys_addr_t base, int num_ports, int devfn,
|
/external/kernel-headers/original/linux/ |
D | pci.h | 35 #define PCI_SLOT(devfn) (((devfn) >> 3) & 0x1f) argument 36 #define PCI_FUNC(devfn) ((devfn) & 0x07) argument 120 unsigned int devfn; /* encoded device & function index */ member 269 int (*read)(struct pci_bus *bus, unsigned int devfn, int where, int size, u32 *val); 270 int (*write)(struct pci_bus *bus, unsigned int devfn, int where, int size, u32 val); 274 int (*read)(unsigned int domain, unsigned int bus, unsigned int devfn, 276 int (*write)(unsigned int domain, unsigned int bus, unsigned int devfn, 427 int pci_scan_slot(struct pci_bus *bus, int devfn); 428 struct pci_dev * pci_scan_single_device(struct pci_bus *bus, int devfn); 445 struct pci_dev *pci_find_slot (unsigned int bus, unsigned int devfn); [all …]
|
D | pm.h | 70 #define PM_PCI_ID(dev) ((dev)->bus->number << 16 | (dev)->devfn)
|