Add subsystemid option to sconfig
Allow user to add 'subsystemid <vendor> <device> [inherit]' to devicetree.cb for PCI and PCI domain devices. Example: device pci 00.0 on subsystemid dead beef end If the user wants to have this ID inherited to all subdevices/functions, he can add 'inherit', like in the following example: device pci 00.0 on subsystemid dead beef inherit end If the user don't want to inherit a Subsystem for a single device, he can specify 'subsystemid 0 0' on this particular device. Signed-off-by: Sven Schnelle <svens@stackframe.org> Acked-by: Peter Stuge <peter@stuge.se> git-svn-id: svn://svn.coreboot.org/coreboot/trunk@6420 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
This commit is contained in:
@@ -52,6 +52,9 @@ struct device {
|
||||
int link;
|
||||
int rescnt;
|
||||
int chiph_exists;
|
||||
int subsystem_vendor;
|
||||
int subsystem_device;
|
||||
int inherit_subsystem;
|
||||
char *ops;
|
||||
char *name;
|
||||
char *name_underscore;
|
||||
@@ -90,3 +93,4 @@ struct device *new_device(struct device *parent, struct device *busdev, const in
|
||||
void alias_siblings(struct device *d);
|
||||
void add_resource(struct device *dev, int type, int index, int base);
|
||||
void add_register(struct device *dev, char *name, char *val);
|
||||
void add_pci_subsystem_ids(struct device *dev, int vendor, int device, int inherit);
|
||||
|
Reference in New Issue
Block a user