| /libpciaccess/scanpci/ |
| H A D | scanpci.c | 85 if (dev->domain != 0) in print_pci_device() 89 dev->bus, in print_pci_device() 90 dev->dev, in print_pci_device() 91 dev->func, in print_pci_device() 92 dev->vendor_id, in print_pci_device() 93 dev->device_id ); in print_pci_device() 120 dev->subvendor_id, in print_pci_device() 121 dev->subdevice_id ); in print_pci_device() 138 dev->revision ); in print_pci_device() 170 if ( dev->rom_size ) { in print_pci_device() [all …]
|
| /libpciaccess/src/ |
| H A D | common_interface.c | 123 return pci_sys->methods->boot_vga( dev ); in pci_device_is_boot_vga() 155 pci_device_probe( struct pci_device * dev ) in pci_device_probe() argument 157 if ( dev == NULL ) { in pci_device_probe() 198 return pci_device_map_range(dev, dev->regions[region].base_addr, in pci_device_map_region() 256 (struct pci_device_private *) dev; in pci_device_map_range() 265 if (dev == NULL) { in pci_device_map_range() 350 if (dev == NULL) { in pci_device_unmap_region() 358 err = pci_device_unmap_range(dev, dev->regions[region].memory, in pci_device_unmap_region() 417 if (dev == NULL) { in pci_device_unmap_range() 650 if (dev == NULL) { in pci_device_enable() [all …]
|
| H A D | openbsd_pci.c | 103 dev = device->dev; in pci_device_openbsd_read_rom() 233 io.pi_sel.pc_dev = dev->dev; in pci_device_openbsd_read() 270 io.pi_sel.pc_dev = dev->dev; in pci_device_openbsd_write() 312 dev = device->dev; in pci_device_openbsd_probe() 444 for (dev = 0; dev < 32; dev++) { in pci_system_openbsd_create() 474 for (dev = 0; dev < 32; dev++) { in pci_system_openbsd_create() 486 device->base.dev = dev; in pci_system_openbsd_create() 577 pv.pv_sel.pc_dev = dev->dev; in pci_device_vgaarb_fini() 607 pv.pv_sel.pc_dev = dev->dev; in pci_device_vgaarb_lock() 631 pv.pv_sel.pc_dev = dev->dev; in pci_device_vgaarb_unlock() [all …]
|
| H A D | x86_pci.c | 285 int dev; in pci_system_x86_check() local 291 for (dev = 0; dev < 32; dev++) { in pci_system_x86_check() 413 dev->irq = irq; in pci_device_x86_probe() 436 dev->regions[i].is_IO = 1; in pci_device_x86_probe() 446 if (dev->regions[i].is_64) { in pci_device_x86_probe() 468 dev->rom_size = 64 * 1024; in pci_device_x86_probe() 508 err = pci_sys_x86->read(dev->bus, dev->dev, dev->func, offset, data, toread); in pci_device_x86_read() 535 err = pci_sys_x86->write(dev->bus, dev->dev, dev->func, offset, data, towrite); in pci_device_x86_write() 614 for (dev = 0; dev < 32; dev++) { in pci_system_x86_create() 638 for (dev = 0; dev < 32; dev++) { in pci_system_x86_create() [all …]
|
| H A D | linux_sysfs.c | 152 device->base.dev = dev; in populate_entries() 235 dev->dev, in pci_device_linux_sysfs_probe() 296 dev->dev, in pci_device_linux_sysfs_read_rom() 377 dev->dev, in pci_device_linux_sysfs_read() 437 dev->dev, in pci_device_linux_sysfs_write() 488 dev->dev, in pci_device_linux_sysfs_map_range_wc() 552 dev->dev, in pci_device_linux_sysfs_map_range() 676 dev->dev, in pci_device_linux_sysfs_enable() 698 dev->dev, in pci_device_linux_sysfs_boot_vga() 725 dev->dev, in pci_device_linux_sysfs_has_kernel_driver() [all …]
|
| H A D | freebsd_pci.c | 191 io.pi_sel.pc_bus = dev->bus; in pci_device_freebsd_read() 192 io.pi_sel.pc_dev = dev->dev; in pci_device_freebsd_read() 231 io.pi_sel.pc_bus = dev->bus; in pci_device_freebsd_write() 232 io.pi_sel.pc_dev = dev->dev; in pci_device_freebsd_write() 356 bar.pbi_sel.pc_dev = dev->dev; in pci_device_freebsd_probe() 367 dev->irq = irq; in pci_device_freebsd_probe() 375 dev->regions[i].is_IO = 1; in pci_device_freebsd_probe() 378 dev->regions[i].is_64 = 1; in pci_device_freebsd_probe() 517 dev->irq = irq; in pci_device_freebsd_probe() 522 if (dev->regions[i].is_64) { in pci_device_freebsd_probe() [all …]
|
| H A D | common_vgaarb.c | 234 if (!dev) in pci_device_vgaarb_set_target() 235 dev = pci_sys->vga_default_dev; in pci_device_vgaarb_set_target() 236 if (!dev) in pci_device_vgaarb_set_target() 240 dev->domain, dev->bus, dev->dev, dev->func); in pci_device_vgaarb_set_target() 253 pci_sys->vga_target = dev; in pci_device_vgaarb_set_target() 265 if (!dev) in pci_device_vgaarb_decodes() 293 if (!dev) in pci_device_vgaarb_lock() 311 if (!dev) in pci_device_vgaarb_trylock() 329 if (!dev) in pci_device_vgaarb_unlock() 343 if (!dev) in pci_device_vgaarb_get_info() [all …]
|
| H A D | netbsd_pci.c | 51 io.device = dev; in pci_read() 71 io.device = dev; in pci_write() 168 io.bus = dev->bus; in pci_device_netbsd_read() 169 io.device = dev->dev; in pci_device_netbsd_read() 170 io.function = dev->func; in pci_device_netbsd_read() 204 io.bus = dev->bus; in pci_device_netbsd_write() 205 io.device = dev->dev; in pci_device_netbsd_write() 243 dev = device->dev; in pci_device_netbsd_probe() 345 for (dev = 0; dev < 32; dev++) { in pci_system_netbsd_create() 370 for (dev = 0; dev < 32; dev++) { in pci_system_netbsd_create() [all …]
|
| H A D | pciaccess_private.h | 42 int pci_fill_capabilities_generic( struct pci_device * dev ); 43 int pci_device_generic_unmap_range(struct pci_device *dev, 48 void (*destroy_device)( struct pci_device * dev ); 50 int (*probe)( struct pci_device * dev ); 52 int (*unmap_range)(struct pci_device * dev, 61 int (*fill_capabilities)( struct pci_device * dev ); 62 void (*enable)( struct pci_device *dev ); 63 int (*boot_vga)( struct pci_device *dev ); 64 int (*has_kernel_driver)( struct pci_device *dev ); 66 struct pci_device *dev, int bar, [all …]
|
| H A D | common_device_name.c | 277 struct pci_device_leaf * dev; in populate_vendor() local 300 dev->id.device_class = 0; in populate_vendor() 301 dev->id.device_class_mask = 0; in populate_vendor() 302 dev->id.match_data = 0; in populate_vendor() 307 dev->id = last_dev->id; in populate_vendor() 442 m.vendor_id = dev->vendor_id; in pci_device_get_device_name() 443 m.device_id = dev->device_id; in pci_device_get_device_name() 463 if ( (dev->subvendor_id == 0) || (dev->subdevice_id == 0) ) { in pci_device_get_subdevice_name() 467 m.vendor_id = dev->vendor_id; in pci_device_get_subdevice_name() 468 m.device_id = dev->device_id; in pci_device_get_subdevice_name() [all …]
|
| H A D | solx_devfs.c | 56 uint8_t dev; member 744 uint8_t dev; in do_probe() local 772 for (dev = first_dev; ((dev <= last_dev) && (rval == 0)); dev++) { in do_probe() 773 prg.dev_no = dev; in do_probe() 868 if ( (nexus = find_nexus_for_bus(dev->domain, dev->bus)) == NULL ) in pci_device_solx_devfs_probe() 880 args.bus = dev->bus; in pci_device_solx_devfs_probe() 881 args.dev = dev->dev; in pci_device_solx_devfs_probe() 1045 nexus = find_nexus_for_bus(dev->domain, dev->bus); in pci_device_solx_devfs_read() 1057 cfg_prg.dev_no = dev->dev; in pci_device_solx_devfs_read() 1103 nexus = find_nexus_for_bus(dev->domain, dev->bus); in pci_device_solx_devfs_write() [all …]
|
| H A D | common_capability.c | 63 pci_fill_capabilities_generic( struct pci_device * dev ) in pci_fill_capabilities_generic() argument 66 (struct pci_device_private *) dev; in pci_fill_capabilities_generic() 72 err = pci_device_cfg_read_u16( dev, & status, 6 ); in pci_fill_capabilities_generic() 83 err = pci_device_cfg_read_u8( dev, & cap_offset, 52 ); in pci_fill_capabilities_generic() 95 err = pci_device_cfg_read_u8( dev, & cap_id, cap_offset ); in pci_fill_capabilities_generic() 100 err = pci_device_cfg_read_u8( dev, & next_cap, cap_offset + 1 ); in pci_fill_capabilities_generic() 112 err = pci_device_cfg_read_u8( dev, & agp_ver, cap_offset + 2 ); in pci_fill_capabilities_generic() 117 err = pci_device_cfg_read_u32( dev, & agp_status, cap_offset + 4 ); in pci_fill_capabilities_generic() 183 pci_device_get_agp_info( struct pci_device * dev ) in pci_device_get_agp_info() argument 187 if ( dev == NULL ) { in pci_device_get_agp_info() [all …]
|
| H A D | common_bridge.c | 211 pci_device_get_bridge_info( struct pci_device * dev ) in pci_device_get_bridge_info() argument 272 if (((dev->device_class >> 16) & 0x0ff) != 0x06) { in pci_device_get_bridge_buses() 276 switch ((dev->device_class >> 8) & 0x0ff) { in pci_device_get_bridge_buses() 280 *primary_bus = dev->bus; in pci_device_get_bridge_buses() 288 *primary_bus = dev->bus; in pci_device_get_bridge_buses() 301 *primary_bus = dev->bus; in pci_device_get_bridge_buses() 315 *primary_bus = dev->bus; in pci_device_get_bridge_buses() 329 pci_device_get_parent_bridge(struct pci_device *dev) in pci_device_get_parent_bridge() argument 340 if (dev == NULL) in pci_device_get_parent_bridge() 348 if (bridge->domain == dev->domain) { in pci_device_get_parent_bridge() [all …]
|
| H A D | common_io.c | 95 pci_device_open_io(struct pci_device *dev, pciaddr_t base, pciaddr_t size) in pci_device_open_io() argument 104 struct pci_mem_region *region = &(dev->regions[bar]); in pci_device_open_io() 118 if (!pci_sys->methods->open_device_io(ret, dev, bar, base, size)) { in pci_device_open_io() 137 pci_legacy_open_io(struct pci_device *dev, pciaddr_t base, pciaddr_t size) in pci_legacy_open_io() argument 148 if (!pci_sys->methods->open_legacy_io(ret, dev, base, size)) { in pci_legacy_open_io() 160 pci_device_close_io(struct pci_device *dev, struct pci_io_handle *handle) in pci_device_close_io() argument 162 if (dev && handle && pci_sys->methods->close_io) in pci_device_close_io() 163 pci_sys->methods->close_io(dev, handle); in pci_device_close_io()
|
| H A D | common_iterator.c | 181 && PCI_ID_COMPARE( iter->match.slot.dev, temp->base.dev ) in pci_device_next() 217 pci_device_find_by_slot( uint32_t domain, uint32_t bus, uint32_t dev, in pci_device_find_by_slot() argument 227 iter.match.slot.dev = dev; in pci_device_find_by_slot()
|
| H A D | common_vgaarb_stub.c | 46 pci_device_vgaarb_set_target(struct pci_device *dev) in pci_device_vgaarb_set_target() argument 75 int pci_device_vgaarb_get_info(struct pci_device *dev, int *vga_count, in pci_device_vgaarb_get_info() argument
|
| H A D | linux_devmem.c | 65 pci_device_linux_devmem_read_rom(struct pci_device *dev, void *buffer) in pci_device_linux_devmem_read_rom() argument 67 struct pci_device_private *priv = (struct pci_device_private *) dev; in pci_device_linux_devmem_read_rom()
|
| H A D | linux_devmem.h | 33 extern int pci_device_linux_devmem_read_rom(struct pci_device *dev,
|
| H A D | common_map.c | 51 pci_device_generic_unmap_range(struct pci_device *dev, in pci_device_generic_unmap_range() argument
|
| H A D | pci_tools.h | 157 pcitool_intr_dev_t dev[1]; /* start of variable device list */ member
|
| /libpciaccess/include/ |
| H A D | pciaccess.h | 79 int pci_device_has_kernel_driver(struct pci_device *dev); 81 int pci_device_is_boot_vga(struct pci_device *dev); 83 int pci_device_read_rom(struct pci_device *dev, void *buffer); 85 int __deprecated pci_device_map_region(struct pci_device *dev, 103 int pci_device_probe(struct pci_device *dev); 108 struct pci_device *dev); 111 struct pci_device *dev); 133 uint32_t dev, uint32_t func); 145 void pci_device_enable(struct pci_device *dev); 235 uint32_t dev; member [all …]
|
| /libpciaccess/ |
| H A D | configure.ac | 50 [Enable support for falling back to /dev/mem for roms (default: disabled)]),
|