Searched defs:devfn (Results 1 - 10 of 10) sorted by relevance

/external/grub/netboot/
H A Dpci.c401 unsigned int devfn, l, bus, buses; local
416 for (devfn = 0; devfn < 0xff; ++devfn) {
417 if (PCI_FUNC (devfn) == 0)
418 pcibios_read_config_byte(bus, devfn, PCI_HEADER_TYPE, &hdr_type);
421 pcibios_read_config_dword(bus, devfn, PCI_VENDOR_ID, &l);
432 bus, devfn, vendor, device);
438 pcidev[i].devfn = devfn;
[all...]
H A Dpci.h66 #define PCI_FUNC(devfn) ((devfn) & 0x07)
179 unsigned char devfn; member in struct:pci_device
/external/qemu/hw/
H A Dpiix_pci.c54 slot_addend = (pci_dev->devfn >> 3) - 1;
329 int piix3_init(PCIBus *bus, int devfn) argument
335 devfn, NULL, NULL);
349 return d->devfn;
352 int piix4_init(PCIBus *bus, int devfn) argument
358 devfn, NULL, NULL);
373 return d->devfn;
H A Dpci.h16 #define PCI_SLOT(devfn) (((devfn) >> 3) & 0x1f)
17 #define PCI_FUNC(devfn) ((devfn) & 0x07)
147 int devfn; member in struct:PCIDevice
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);
[all...]
H A Dpci.c241 /* -1 for devfn means auto assign */
243 const char *name, int devfn,
247 if (devfn < 0) {
248 for(devfn = bus->devfn_min ; devfn < 256; devfn += 8) {
249 if (!bus->devices[devfn])
256 pci_dev->devfn = devfn;
267 bus->devices[devfn]
242 do_pci_register_device(PCIDevice *pci_dev, PCIBus *bus, const char *name, int devfn, PCIConfigReadFunc *config_read, PCIConfigWriteFunc *config_write) argument
272 pci_register_device(PCIBus *bus, const char *name, int instance_size, int devfn, PCIConfigReadFunc *config_read, PCIConfigWriteFunc *config_write) argument
769 int devfn; local
812 pci_nic_init(PCIBus *bus, NICInfo *nd, int devfn, const char *default_model) argument
876 pci_bridge_init(PCIBus *bus, int devfn, uint16_t vid, uint16_t did, pci_map_irq_fn map_irq, const char *name) argument
912 int devfn; local
936 pci_create_simple(PCIBus *bus, int devfn, const char *name) argument
[all...]
H A Dusb-ohci.c1662 static void usb_ohci_init(OHCIState *ohci, int num_ports, int devfn, argument
1713 void usb_ohci_init_pci(struct PCIBus *bus, int num_ports, int devfn) argument
1718 devfn, NULL, NULL);
1731 usb_ohci_init(&ohci->state, num_ports, devfn, ohci->pci_dev.irq[0],
1738 void usb_ohci_init_pxa(target_phys_addr_t base, int num_ports, int devfn, argument
1743 usb_ohci_init(ohci, num_ports, devfn, irq,
1750 int num_ports, int devfn, qemu_irq irq)
1754 usb_ohci_init(ohci, num_ports, devfn, irq,
1749 usb_ohci_init_sm501(uint32_t mmio_base, uint32_t localmem_base, int num_ports, int devfn, qemu_irq irq) argument
/external/kernel-headers/original/linux/
H A Dpci.h35 #define PCI_SLOT(devfn) (((devfn) >> 3) & 0x1f)
36 #define PCI_FUNC(devfn) ((devfn) & 0x07)
120 unsigned int devfn; /* encoded device & function index */ member in struct:pci_dev
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);
644 pci_find_slot(unsigned int bus, unsigned int devfn) argument
[all...]
/external/qemu/android/config/linux-x86/linux/
H A Dkvm.h664 __u32 devfn; member in struct:kvm_assigned_pci_dev
/external/qemu/android/config/linux-x86_64/linux/
H A Dkvm.h664 __u32 devfn; member in struct:kvm_assigned_pci_dev
/external/qemu-pc-bios/bochs/bios/
H A Drombios32.c708 int devfn; member in struct:PCIDevice
720 outl(0xcf8, 0x80000000 | (d->bus << 16) | (d->devfn << 8) | (addr & 0xfc));
726 outl(0xcf8, 0x80000000 | (d->bus << 16) | (d->devfn << 8) | (addr & 0xfc));
732 outl(0xcf8, 0x80000000 | (d->bus << 16) | (d->devfn << 8) | (addr & 0xfc));
738 outl(0xcf8, 0x80000000 | (d->bus << 16) | (d->devfn << 8) | (addr & 0xfc));
744 outl(0xcf8, 0x80000000 | (d->bus << 16) | (d->devfn << 8) | (addr & 0xfc));
750 outl(0xcf8, 0x80000000 | (d->bus << 16) | (d->devfn << 8) | (addr & 0xfc));
787 slot_addend = (pci_dev->devfn >> 3) - 1;
940 BX_INFO("PCI: bus=%d devfn=0x%02x: vendor_id=0x%04x device_id=0x%04x class=0x%04x\n",
941 d->bus, d->devfn, vendor_i
1035 int bus, devfn; local
[all...]

Completed in 308 milliseconds