aboutsummaryrefslogtreecommitdiff
path: root/src/include/device
diff options
context:
space:
mode:
authorLi-Ta Lo <ollie@lanl.gov>2004-11-25 17:37:19 +0000
committerLi-Ta Lo <ollie@lanl.gov>2004-11-25 17:37:19 +0000
commit0493069aa9f68756aafe14ebbf5cd9db40d12cd3 (patch)
tree5ea0e536cff920a0e4a7eeba80b4db33c27fa9f4 /src/include/device
parentf0ee1efcaf57c605bbd94f56a3d01dd379df33a8 (diff)
update comment according to the new DOM
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@1799 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'src/include/device')
-rw-r--r--src/include/device/device.h6
-rw-r--r--src/include/device/pci.h1
2 files changed, 6 insertions, 1 deletions
diff --git a/src/include/device/device.h b/src/include/device/device.h
index db91fcc1ef..167a518f2a 100644
--- a/src/include/device/device.h
+++ b/src/include/device/device.h
@@ -57,7 +57,8 @@ struct bus {
*/
struct device {
- struct bus * bus; /* bus this device is on */
+ struct bus * bus; /* bus this device is on, for bridge
+ * devices, it is the up stream bus */
device_t sibling; /* next device on this bus */
device_t next; /* chain of all devices */
@@ -79,7 +80,10 @@ struct device {
struct resource resource[MAX_RESOURCES];
unsigned int resources;
+ /* link are (down sream) buses attached to the device, usually a leaf
+ * device with no child have 0 bus attached and a bridge has 1 bus */
struct bus link[MAX_LINKS];
+ /* number of buses attached to the device */
unsigned int links;
unsigned long rom_address;
diff --git a/src/include/device/pci.h b/src/include/device/pci.h
index 2c9797fa6c..0ee31f1cb9 100644
--- a/src/include/device/pci.h
+++ b/src/include/device/pci.h
@@ -23,6 +23,7 @@
/* Common pci operations without a standard interface */
struct pci_operations {
+ /* set the Subsystem IDs for the PCI device */
void (*set_subsystem)(device_t dev, unsigned vendor, unsigned device);
};