Subject: kern/20889: pci(9) lacks VPD access routines
To: None <>
From: None <>
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
>Release:        NetBSD 1.6
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
	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.
	Unified diffs relative to 1.6 are available:    (dev/pci/pci.c) (dev/pci/pcireg.h) (dev/pci/pcivar.h)