History log of /openbsd/sys/sys/pciio.h (Results 1 – 8 of 8)
Revision Date Author Comments
# 530b71a3 22-Jun-2020 dlg <dlg@openbsd.org>

let userland read vpd info from a pci device.

reading vpd stuff is useful when you're trying to get support
information about a pci device, eg, if you want a serial number,
or firmware versions, or

let userland read vpd info from a pci device.

reading vpd stuff is useful when you're trying to get support
information about a pci device, eg, if you want a serial number,
or firmware versions, or specific part name or number, it's likely
available via vpd. also, im sick of having the diff in my tree.

the vpd info is not accessed as bytes read from a capability, but
is read via a register in the capability. the same register also
supports updating or writing vpd info, which sounds like a bad idea
to let userland have raw access to.

this adds an ioctl so that userland can ask the kernel to read via
the vpd register on its behalf. this ensures that the only access
is read access, and it's sanity checked.

tested by hrvoje popovski on many devices.
ok jmatthew@

show more ...


# d01993f3 05-Sep-2010 kettenis <kettenis@openbsd.org>

Add an ioctl to figure out the non-sticky bits in PCI BARs used for determining
the size of those BARs. Make pcidump use this new ioctl to print the size
of PCI BARs.

ok deraadt@, miod@


# d5ac65fc 21-Apr-2010 kettenis <kettenis@openbsd.org>

First stab at a VGA arbiter. The VGA arbiter makes sure that only a single
VGA device can be active, and is responsible for routing IO to the active VGA
device. Processes can use the new PCIOC_GETV

First stab at a VGA arbiter. The VGA arbiter makes sure that only a single
VGA device can be active, and is responsible for routing IO to the active VGA
device. Processes can use the new PCIOC_GETVGA and PCIOC_SETVGA ioctls
to manipulate the VGA arbiter.

ok deraadt@, oga@

show more ...


# 11d87e37 05-Nov-2009 kettenis <kettenis@openbsd.org>

Add a new PCIOCGETROMLEN ioctl, to give users of PCIOGETROM a chance to
allocate a buffer of the right size.

ok oga@


# da18e9e3 26-Jul-2009 kettenis <kettenis@openbsd.org>

Add PCIOCGETROM, and ioctl(2) to read PCI ROMs.

ok miod@, marco@


# 5f73db80 14-Jul-2009 kettenis <kettenis@openbsd.org>

Kill structs and ioctls that were never implemented.

ok oga@, miod@, deraadt@


# cbb95864 26-Jun-2001 jason <jason@openbsd.org>

openbsd tag


# 27fa7252 23-Jun-2001 matthieu <matthieu@openbsd.org>

PCI bus configuration userland access from FreeBSD.
Will be used by XFree86 on powerpc (works on i386 too, but its not currently
used).