OpenBSD CVS

CVS log for src/sys/sys/pciio.h


[BACK] Up to [local] / src / sys / sys

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.8 / (download) - annotate - [select for diffs], Mon Jun 22 04:11:37 2020 UTC (3 years, 11 months ago) by dlg
Branch: MAIN
CVS Tags: OPENBSD_7_5_BASE, OPENBSD_7_5, OPENBSD_7_4_BASE, OPENBSD_7_4, OPENBSD_7_3_BASE, OPENBSD_7_3, OPENBSD_7_2_BASE, OPENBSD_7_2, OPENBSD_7_1_BASE, OPENBSD_7_1, OPENBSD_7_0_BASE, OPENBSD_7_0, OPENBSD_6_9_BASE, OPENBSD_6_9, OPENBSD_6_8_BASE, OPENBSD_6_8, HEAD
Changes since 1.7: +9 -1 lines
Diff to previous 1.7 (colored)

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@

Revision 1.7 / (download) - annotate - [select for diffs], Sun Sep 5 18:14:33 2010 UTC (13 years, 9 months ago) by kettenis
Branch: MAIN
CVS Tags: OPENBSD_6_7_BASE, OPENBSD_6_7, OPENBSD_6_6_BASE, OPENBSD_6_6, OPENBSD_6_5_BASE, OPENBSD_6_5, OPENBSD_6_4_BASE, OPENBSD_6_4, OPENBSD_6_3_BASE, OPENBSD_6_3, OPENBSD_6_2_BASE, OPENBSD_6_2, OPENBSD_6_1_BASE, OPENBSD_6_1, OPENBSD_6_0_BASE, OPENBSD_6_0, OPENBSD_5_9_BASE, OPENBSD_5_9, OPENBSD_5_8_BASE, OPENBSD_5_8, OPENBSD_5_7_BASE, OPENBSD_5_7, OPENBSD_5_6_BASE, OPENBSD_5_6, OPENBSD_5_5_BASE, OPENBSD_5_5, OPENBSD_5_4_BASE, OPENBSD_5_4, OPENBSD_5_3_BASE, OPENBSD_5_3, OPENBSD_5_2_BASE, OPENBSD_5_2, OPENBSD_5_1_BASE, OPENBSD_5_1, OPENBSD_5_0_BASE, OPENBSD_5_0, OPENBSD_4_9_BASE, OPENBSD_4_9
Changes since 1.6: +2 -1 lines
Diff to previous 1.6 (colored)

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@

Revision 1.6 / (download) - annotate - [select for diffs], Wed Apr 21 18:55:40 2010 UTC (14 years, 1 month ago) by kettenis
Branch: MAIN
CVS Tags: OPENBSD_4_8_BASE, OPENBSD_4_8
Changes since 1.5: +15 -1 lines
Diff to previous 1.5 (colored)

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@

Revision 1.5 / (download) - annotate - [select for diffs], Thu Nov 5 20:30:47 2009 UTC (14 years, 7 months ago) by kettenis
Branch: MAIN
CVS Tags: OPENBSD_4_7_BASE, OPENBSD_4_7
Changes since 1.4: +2 -1 lines
Diff to previous 1.4 (colored)

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

ok oga@

Revision 1.4 / (download) - annotate - [select for diffs], Sun Jul 26 13:21:18 2009 UTC (14 years, 10 months ago) by kettenis
Branch: MAIN
Changes since 1.3: +9 -2 lines
Diff to previous 1.3 (colored)

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

ok miod@, marco@

Revision 1.3 / (download) - annotate - [select for diffs], Tue Jul 14 18:20:02 2009 UTC (14 years, 11 months ago) by kettenis
Branch: MAIN
Changes since 1.2: +1 -63 lines
Diff to previous 1.2 (colored)

Kill structs and ioctls that were never implemented.

ok oga@, miod@, deraadt@

Revision 1.2 / (download) - annotate - [select for diffs], Tue Jun 26 20:44:14 2001 UTC (22 years, 11 months ago) by jason
Branch: MAIN
CVS Tags: UBC_SYNC_B, UBC_SYNC_A, UBC_BASE, UBC, SMP_SYNC_B, SMP_SYNC_A, SMP, OPENBSD_4_6_BASE, OPENBSD_4_6, OPENBSD_4_5_BASE, OPENBSD_4_5, OPENBSD_4_4_BASE, OPENBSD_4_4, OPENBSD_4_3_BASE, OPENBSD_4_3, OPENBSD_4_2_BASE, OPENBSD_4_2, OPENBSD_4_1_BASE, OPENBSD_4_1, OPENBSD_4_0_BASE, OPENBSD_4_0, OPENBSD_3_9_BASE, OPENBSD_3_9, OPENBSD_3_8_BASE, OPENBSD_3_8, OPENBSD_3_7_BASE, OPENBSD_3_7, OPENBSD_3_6_BASE, OPENBSD_3_6, OPENBSD_3_5_BASE, OPENBSD_3_5, OPENBSD_3_4_BASE, OPENBSD_3_4, OPENBSD_3_3_BASE, OPENBSD_3_3, OPENBSD_3_2_BASE, OPENBSD_3_2, OPENBSD_3_1_BASE, OPENBSD_3_1, OPENBSD_3_0_BASE, OPENBSD_3_0
Changes since 1.1: +2 -0 lines
Diff to previous 1.1 (colored)

openbsd tag

Revision 1.1 / (download) - annotate - [select for diffs], Sat Jun 23 03:30:37 2001 UTC (22 years, 11 months ago) by matthieu
Branch: MAIN

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

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.