On Wed, 2005-01-12 at 18:59, YhLu wrote: > The chip.h is already in /drivers/pci/onboard. > > So may need to > #include "../drivers/pci/onboard/chip.h" > > In pci_device.c >
How about we bring the device:rom_address back and in the driver_pci_onboard::enable_dev(dev) { dev->rom_address = conf->rom_address; } and in pci_get|set_resources() { if (dev->on_mainboard && dev->rom_address !=0) { /* do nothing */ else { allocate_rom_resource(); } } and in pci_dev_init() { if (dev->on_mainboard && dev->rom_address !=0) { rom = dev->rom_address; else { rom = pci_rom_probe(); } } Ollie > Also in get_pci_rom_resource begin > Add > > if(dev->on_mainboard) { > > struct drivers_pci_onboard_config *conf; > > conf = dev->chip_info; > > if(conf->rom_address!=0) { > > return; > > } > > } > > In Pci_set_resource end > Add > > if(dev->on_mainboard) { > > struct drivers_pci_onboard_config *conf; > > conf = dev->chip_info; > > if(conf->rom_address!=0) { > > pci_write_config32(dev, PCI_ROM_ADDRESS, > conf->rom_address | 1); > > } > > } > > Then We can remove that in pci_rom.c > > YH > _______________________________________________ Linuxbios mailing list Linuxbios@clustermatic.org http://www.clustermatic.org/mailman/listinfo/linuxbios