| /pciutils/lib/ |
| H A D | fbsd-device.c | 48 if (access(name, R_OK)) in fbsd_detect() 173 if (d->access->fd_rw >= 0) in fbsd_fill_info() 198 if (ioctl(d->access->fd, PCIOCGETCONF, &conf) < 0) in fbsd_fill_info() 226 if (ioctl(d->access->fd, PCIOCGETBAR, &bar) < 0) in fbsd_fill_info() 252 if (d->access->fd_rw < 0) in fbsd_read() 254 d->access->warning("fbsd_read: missing permissions"); in fbsd_read() 277 if (ioctl(d->access->fd_rw, PCIOCREAD, &pi) < 0) in fbsd_read() 281 d->access->error("fbsd_read: ioctl(PCIOCREAD) failed: %s", strerror(errno)); in fbsd_read() 304 if (d->access->fd_rw < 0) in fbsd_write() 306 d->access->warning("fbsd_write: missing permissions"); in fbsd_write() [all …]
|
| H A D | nbsd-libpci.c | 38 if (access(name, R_OK)) in nbsd_detect() 44 if (!access(name, W_OK)) in nbsd_detect() 82 if (pcibus_conf_read(d->access->fd, d->bus, d->dev, d->func, pos, &val) < 0) in nbsd_read() 83 d->access->error("nbsd_read: pci_bus_conf_read() failed"); in nbsd_read() 122 if (pcibus_conf_read(d->access->fd, d->bus, d->dev, d->func, pos, &val) < 0) in nbsd_write() 123 d->access->error("nbsd_write: pci_bus_conf_read() failed"); in nbsd_write() 139 if (pcibus_conf_write(d->access->fd, d->bus, d->dev, d->func, pos, val) < 0) in nbsd_write() 140 d->access->error("nbsd_write: pci_bus_conf_write() failed"); in nbsd_write()
|
| H A D | sysfs.c | 42 if (access(sysfs_name(a), R_OK)) in sysfs_detect() 85 sysfs_name(d->access), d->domain, d->bus, d->dev, d->func, object); in sysfs_obj_name() 87 d->access->error("File name too long"); in sysfs_obj_name() 95 struct pci_access *a = d->access; in sysfs_get_string() 157 struct pci_access *a = d->access; in sysfs_get_resources() 341 if (!d->access->buscentric) in sysfs_fill_info() 402 for (parent = d->access->devices; parent; parent = parent->next) in sysfs_fill_info() 431 sysfs_fill_slots(d->access); in sysfs_fill_info() 432 for (pd = d->access->devices; pd; pd = pd->next) in sysfs_fill_info() 512 struct pci_access *a = d->access; in sysfs_setup() [all …]
|
| H A D | rt-thread-smart-dm.c | 33 if (access(name, R_OK)) in rt_thread_smart_dm_detect() 140 struct pci_access *a = d->access; in rt_thread_smart_dm_setup() 173 d->access->warning("%s: read failed: %s", __func__, strerror(errno)); in rt_thread_smart_dm_read() 192 d->access->warning("%s: write failed: %s", __func__, strerror(errno)); in rt_thread_smart_dm_write() 197 …d->access->warning("%s: tried to write %d bytes at %d, but only %d succeeded", __func__, len, pos,… in rt_thread_smart_dm_write() 206 if (d->access->cached_dev == d) in rt_thread_smart_dm_cleanup_dev() 207 d->access->cached_dev = NULL; in rt_thread_smart_dm_cleanup_dev()
|
| H A D | proc.c | 34 if (access(name, R_OK)) in proc_detect() 137 struct pci_access *a = d->access; in proc_setup() 179 d->access->warning("proc_read: read failed: %s", strerror(errno)); in proc_read() 198 d->access->warning("proc_write: write failed: %s", strerror(errno)); in proc_write() 203 …d->access->warning("proc_write: tried to write %d bytes at %d, but only %d succeeded", len, pos, r… in proc_write() 212 if (d->access->cached_dev == d) in proc_cleanup_dev() 213 d->access->cached_dev = NULL; in proc_cleanup_dev()
|
| H A D | obsd-device.c | 32 if (access(name, R_OK)) in obsd_detect() 80 if (ioctl(d->access->fd, PCIOCREAD, &pi) < 0) { in obsd_read() 84 d->access->error("obsd_read: ioctl(PCIOCREAD) failed"); in obsd_read() 134 if (ioctl(d->access->fd, PCIOCWRITE, &pi) < 0) in obsd_write() 135 d->access->error("obsd_write: ioctl(PCIOCWRITE) failed"); in obsd_write()
|
| H A D | Makefile | 6 OBJS=init access generic dump names filter names-hash names-parse names-net names-cache names-hwdb … 147 access.o: access.c $(INCL) 149 i386-ports.o: i386-ports.c $(INCL) i386-io-access.h i386-io-beos.h i386-io-cygwin.h i386-io-djgpp.h… 150 mmio-ports.o: mmio-ports.c $(INCL) physmem.h physmem-access.h 151 ecam.o: ecam.c $(INCL) physmem.h physmem-access.h
|
| H A D | mmio-ports.c | 298 char *addrs_param_name = get_addrs_param_name(d->access); in conf1_ext_read() 299 char *addrs = pci_get_param(d->access, addrs_param_name); in conf1_ext_read() 312 if (!mmap_regs(d->access, addr_reg, data_reg, pos&3, &addr, &data)) in conf1_ext_read() 346 char *addrs_param_name = get_addrs_param_name(d->access); in conf1_ext_write() 347 char *addrs = pci_get_param(d->access, addrs_param_name); in conf1_ext_write() 360 if (!mmap_regs(d->access, addr_reg, data_reg, pos&3, &addr, &data)) in conf1_ext_write()
|
| H A D | darwin.c | 134 status = IOConnectCallStructMethod(d->access->fd, kACPIMethodAddressSpaceRead, in darwin_read() 138 …d->access->error("darwin_read: kACPIMethodAddressSpaceRead failed: %s", mach_error_string(status)); in darwin_read() 190 status = IOConnectCallStructMethod(d->access->fd, kACPIMethodAddressSpaceWrite, in darwin_write() 194 …d->access->error("darwin_read: kACPIMethodAddressSpaceWrite failed: %s", mach_error_string(status)… in darwin_write()
|
| H A D | win32-cfgmgr32.c | 773 struct pci_access *a = d->access; in get_device_driver_path() 799 service_name = get_device_service_name(d->access, devinst, devinst_id, &service_supported); in get_device_driver_path() 804 driver_path = get_driver_path_for_service(d->access, service_name, manager); in get_device_driver_path() 808 key = get_device_driver_devreg(d->access, devinst, devinst_id); in get_device_driver_path() 811 driver_path = get_driver_path_for_regkey(d->access, devinst_id, key); in get_device_driver_path() 879 struct pci_access *a = d->access; in fill_resources() 1419 struct pci_access *a = d->access; in fill_data_from_hardware_ids() 1511 if (!d->access->backend_data) in scan_devinst_id() 1663 if (!d->access->backend_data) in win32_cfgmgr32_fill_info() 1672 struct pci_access *a = d->access; in win32_cfgmgr32_read() [all …]
|
| H A D | access.c | 30 d->access = a; in pci_alloc_dev() 98 d->access->error("Unaligned read: pos=%02x, len=%d", pos, len); in pci_read_data() 145 d->access->error("Unaligned write: pos=%02x,len=%d", pos, len); in pci_write_data() 253 p = pci_malloc(d->access, sizeof(*p) + strlen(value)); in pci_set_property()
|
| H A D | dump.c | 39 struct dump_data *dd = pci_malloc(dev->access, sizeof(struct dump_data) + len - 1); in dump_alloc_data() 151 struct pci_dev *e = d->access->devices; in dump_read() 167 d->access->error("Writing to dump files is not supported."); in dump_write()
|
| H A D | aix-device.c | 67 struct pci_access *a = d->access; in aix_bus_open() 233 d->access->error("aix_read: ioctl(MIOPCFGET) failed"); in aix_read() 256 d->access->error("aix_write: ioctl(MIOPCFPUT) failed"); in aix_write()
|
| H A D | generic.c | 98 struct pci_access *a = d->access; in pci_generic_fill_info() 252 return pci_generic_block_op(d, pos, buf, len, d->access->methods->read); in pci_generic_block_read() 258 return pci_generic_block_op(d, pos, buf, len, d->access->methods->write); in pci_generic_block_write()
|
| H A D | hurd.c | 77 d->backend_data = pci_malloc(d->access, sizeof(mach_port_t)); in hurd_init_dev() 109 d->access->error("Cannot find the PCI arbiter"); in device_port_lookup() 341 if (!d->access->buscentric) in hurd_fill_info()
|
| H A D | caps.c | 18 struct pci_cap *cap = pci_malloc(d->access, sizeof(*cap)); in pci_add_cap() 29 d->access->debug("%04x:%02x:%02x.%d: Found capability %04x of type %d at %04x\n", in pci_add_cap()
|
| H A D | aos-expansion.c | 216 if (d->backend_data && d->access->backend_data) { in aos_expansion_cleanup_dev() 217 pci = d->access->backend_data; in aos_expansion_cleanup_dev()
|
| H A D | ecam.c | 910 if (access(mcfg_glob.gl_pathv[0], R_OK)) 928 if (!efisystab[0] || access(efisystab, R_OK)) 1146 if (!mmap_reg(d->access, 0, d->domain, d->bus, d->dev, d->func, pos, ®)) 1176 if (!mmap_reg(d->access, 1, d->domain, d->bus, d->dev, d->func, pos, ®))
|
| H A D | i386-io-access.h | 73 #error Do not know how to access I/O ports on this compiler
|
| H A D | physmem-posix.c | 47 return access(devmem, R_OK | (w ? W_OK : 0)); in physmem_access()
|
| H A D | sylixos-device.c | 44 if (access(name, R_OK)) in sylixos_detect()
|
| /pciutils/ |
| H A D | README.Windows | 7 For simple listing PCI devices in system via win32-cfgmgr32 access method 13 For config space access there are different windows specific access methods: 16 - intel-conf1 - Direct hardware access via Intel configuration mechanism 1 18 The default access method is win32-cfgmgr32 and by default it tries to use 19 one of the above config access access method to provide as much as possible 20 information to application. More details about particular access method and 23 The default access method for config space is win32-kldbg. It uses Microsoft's 36 To access config space via intel-conf1 access method on NT-based systems via 45 users to access config space even with SeTcbPrivilege.
|
| H A D | README | 15 The PCI Utilities package contains a library for portable access to PCI bus 25 Solaris/i386 (direct port access) 27 GNU Hurd (direct port access) 28 Windows (via cfgmgr32 or direct port access, see README.Windows for caveats) 29 CYGWIN (direct port access)
|
| H A D | ChangeLog | 91 * Added i386 port access on OpenBSD. 160 of iopl() to gain access to I/O ports. 239 trying to access devices outside domain 0. 1078 and always build all access methods. 1129 the port access state to generic code. 1316 due to insufficient access rights. 1335 access more than that. 1962 * lib/access.c: Corrected order of access methods -- it's wonderful how 2208 set it to the real access method afterwards. 2241 * lib/access.c: Added general caching mechanism. [all …]
|
| H A D | TODO | 16 - Power Budgeting (ext'd, needs write access to enumerate)
|