Prepare for per-device subsystem IDs.
Fix the bus location for Qemu IDE. This patch only provides the needed infrastructure for per-device subsystem IDs, it does not hook them up to the PCI core yet, so this patch is a no-op. By the way, the on_mainboard property is activating lots of completely untested code paths in v3, so someone might want to audit them. Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> Acked-by: Ronald G. Minnich <rminnich@gmail.com> Acked-by: Stefan Reinauer <stepan@coresystems.de> git-svn-id: svn://coreboot.org/repository/coreboot-v3@844 f3766cd6-281f-0410-b1cd-43a5c92072e9
This commit is contained in:
parent
f365719d09
commit
5e4770fc02
2 changed files with 10 additions and 1 deletions
|
|
@ -30,8 +30,11 @@
|
|||
bus@0 {
|
||||
pci@0,0 {
|
||||
};
|
||||
pci@1,0 {
|
||||
pci@1,1 {
|
||||
/config/("southbridge/intel/i82371eb/ide");
|
||||
subsystem_vendor = "0x15ad";
|
||||
subsystem_device = "0x1976";
|
||||
on_mainboard;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
|
|||
|
|
@ -622,6 +622,12 @@ static void coreboot_emit_special(FILE *e, struct node *tree)
|
|||
if (streq(prop->name, "on_mainboard")){
|
||||
fprintf(f, "\t.on_mainboard = 1,\n");
|
||||
}
|
||||
if (streq(prop->name, "subsystem_vendor")){
|
||||
fprintf(f, "\t.subsystem_vendor = %s,\n", prop->val.val);
|
||||
}
|
||||
if (streq(prop->name, "subsystem_device")){
|
||||
fprintf(f, "\t.subsystem_device = %s,\n", prop->val.val);
|
||||
}
|
||||
if (streq(prop->name, "enabled")){
|
||||
enabled = 1;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue