Add subsystemid option to sconfig
authorSven Schnelle <svens@stackframe.org>
Tue, 1 Mar 2011 19:58:15 +0000 (19:58 +0000)
committerSven Schnelle <svens@stackframe.org>
Tue, 1 Mar 2011 19:58:15 +0000 (19:58 +0000)
commit270a908646273461b41e591739d778d3d675ff6f
tree10feb74c6b2a27c943b3fd4fd642daa51977abc7
parente38d0a6743aab8bde432e97c48c147fea5b30363
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
src/include/device/device.h
util/sconfig/main.c
util/sconfig/sconfig.h
util/sconfig/sconfig.l
util/sconfig/sconfig.tab.c_shipped
util/sconfig/sconfig.tab.h_shipped
util/sconfig/sconfig.y