You may remove
.enable = amd8111_enable,
It will be called twice. One in enable_dev.
-----Original Message-----
From: ebiederman(a)lnxi.com [mailto:ebiederman@lnxi.com]
Sent: Thursday, October 21, 2004 10:46 AM
To: YhLu; Li-Ta Lo
Cc: LinuxBIOS
Subject: Re: Freebios2 recovery progress...
Li-Ta Lo <ollie(a)lanl.gov> writes:
> How did you do that ? Where do you put those IDs ?
YhLu <YhLu(a)tyan.com> writes:
> You changes all mb config for AMD/Iwill/IBM....that took some time.
>
> If there is on board scsi, I want to set subsystem id, I need to put that
in
> Config.lb?
Or more likely src/mainboarod/???/???/Options.lb
src/devices/pci_device.c:pci_dev_enable_resources()
calls dev->ops->pci_ops->set_subsystem() when the device
dev->on_mainboard is true. In turn config.g sets that
in static.c for all devices in the static tree.
I believe those are the correct semantics. That the subsystem is
essentially an identifier for the board the chips are sitting on.
The values are come from:
Look at MAINBOARD_PCI_SUBSYSTEM_VENDOR_ID and MAINBOARD_SUBSYSTEM_DEVICE_ID.
So for the onboard scsi case you likely need to have a driver for
the onboard scsi device that implements the set_subsystem method
because there is not a generic way of doing that.
Eric