Subject: kern/20889: pci(9) lacks VPD access routines
To: None <gnats-bugs@gnats.netbsd.org>
From: None <freza@psi.cz>
List: netbsd-bugs
Date: 03/25/2003 19:50:16
>Number:         20889
>Category:       kern
>Synopsis:       pci(9) lacks VPD access routines
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Mar 25 10:51:04 PST 2003
>Closed-Date:
>Last-Modified:
>Originator:     
>Release:        NetBSD 1.6
>Organization:
www.liberouter.org
>Environment:
System: NetBSD chablis 1.6 NetBSD 1.6 (COMBO6) #22: Mon Mar 24 15:20:48 CET 2003 freza@chablis:/usr/home/freza/src/sys/arch/i386/compile/COMBO6 i386
Architecture: i386
Machine: i386
>Description:
	PCI 2.2 (maybe earlier too) defines VPD (Vital Product Data)
	Capability. It is an interface to a small permanent memory used
	to store 'vital product data', such as PCI Config space initial
	settings. Simple protocol (using two registers) is used to read
	and write it.

	Support for this feature has been missing, and I needed it to
	access PLX 9054's serial eeprom, so I wrote it.
>How-To-Repeat:
>Fix:
	Unified diffs relative to 1.6 are available:

	ftp://erebor.psi.cz:/pub/freza/pci.c.diff    (dev/pci/pci.c)
	ftp://erebor.psi.cz:/pub/freza/pcireg.h.diff (dev/pci/pcireg.h)
	ftp://erebor.psi.cz:/pub/freza/pcivar.h.diff (dev/pci/pcivar.h)
>Release-Note:
>Audit-Trail:
>Unformatted: