On Thu, Feb 25, 2010 at 10:53:45AM -0800, Stephen Hemminger wrote:
O.K. I'll make the change.
O.K.
The functions are designed to operate on a buffer of VPD data, not from
the hardware directly.
The VPD area is defined by the PCI specs, in the section noted in the
comment above. The definitions and functions introduced in this patchset
should be usable by any driver. I stopped short of modifying other
drivers, but I certainly could have.
However, there are two approaches taken as to how the VPD data is
extracted and used. Drivers like tg3 and bnx2 load the VPD data into
a buffer and operate on that. Other drivers like niu navigate the VPD
by loading a dword at a time. This API would cover the former
implementation which I've only found to be used by the tg3 and bnx2
drivers so far.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html