summaryrefslogtreecommitdiffstats
path: root/board_enable.c
diff options
context:
space:
mode:
authorCarl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>2010-02-04 11:12:04 +0000
committerCarl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>2010-02-04 11:12:04 +0000
commit7a788f567df9cf4abb28b82261c2aa7af800f630 (patch)
tree61f05aecbfc08b782c30f9ff0e73e93154cd5d7f /board_enable.c
parent2eab70da707db42270c72ceaab1bd08a3453118c (diff)
downloadast2050-flashrom-7a788f567df9cf4abb28b82261c2aa7af800f630.zip
ast2050-flashrom-7a788f567df9cf4abb28b82261c2aa7af800f630.tar.gz
Document the rules for DMI matching with PCI subsystem IDs
The rules may change in the future, but right now it is important that the comments match the code. Corresponding to flashrom svn r893. Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> Acked-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
Diffstat (limited to 'board_enable.c')
-rw-r--r--board_enable.c12
1 files changed, 9 insertions, 3 deletions
diff --git a/board_enable.c b/board_enable.c
index 1fe41f7..2de5fd7 100644
--- a/board_enable.c
+++ b/board_enable.c
@@ -1160,9 +1160,10 @@ static int board_asus_a7v600x(const char *name)
* subsystem/card IDs in a sane manner.
*
* Keep the second set NULLed if it should be ignored. Keep the subsystem IDs
- * NULLed if they don't identify the board fully. But please take care to
- * provide an as complete set of pci ids as possible; autodetection is the
- * preferred behaviour and we would like to make sure that matches are unique.
+ * NULLed if they don't identify the board fully and if you can't use DMI.
+ * But please take care to provide an as complete set of pci ids as possible;
+ * autodetection is the preferred behaviour and we would like to make sure that
+ * matches are unique.
*
* If PCI IDs are not sufficient for board matching, the match can be further
* constrained by a string that has to be present in the DMI database for
@@ -1171,6 +1172,11 @@ static int board_asus_a7v600x(const char *name)
* or the end (with a $ at the end). Both anchors may be specified at the
* same time to match the full field.
*
+ * When a board is matched through DMI, the first and second main PCI IDs
+ * and the first subsystem PCI ID have to match as well. If you specify the
+ * first subsystem ID as 0x0:0x0, the DMI matching code expects that the
+ * subsystem ID of that device is indeed zero.
+ *
* The coreboot ids are used two fold. When running with a coreboot firmware,
* the ids uniquely matches the coreboot board identification string. When a
* legacy bios is installed and when autodetection is not possible, these ids
OpenPOWER on IntegriCloud