On Thu, May 05, 2011 at 03:41:57PM +0300, Michael S. Tsirkin wrote: > On Fri, Apr 08, 2011 at 09:52:59PM +0900, Isaku Yamahata wrote: > > vender id/device id... in configuration space are read-only registers > > which are commonly defined for all pci devices. > > So initialize them in common code and it simplifies the initialization a > > bit. > > I converted some of them. > > > > If this is the right direction, I'll convert the remaining devices. > > So I agree about device vendor id and revision but not header type: > devices ideally should supply device type (bridge or not) > and we will fill it in correctly.
Okay, with the nextspin, I'll drop program interface and header type and add assert for subsystem id/vendor id. -- yamahata