From 4086d16ba216955d6124d99c9aae7ceeb2457a71 Mon Sep 17 00:00:00 2001 From: Eric Biederman Date: Thu, 17 Jul 2003 03:26:03 +0000 Subject: - Implement an enable method for pci devices. - Add initial support for the amd8131 - Update the mptable to something possible - hdama/Config add the amd8131 southbridge git-svn-id: svn://svn.coreboot.org/coreboot/trunk@968 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1 --- src/include/device/device.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/include/device') diff --git a/src/include/device/device.h b/src/include/device/device.h index def9f539ab..4ad776ffc9 100644 --- a/src/include/device/device.h +++ b/src/include/device/device.h @@ -11,6 +11,7 @@ struct device_operations { void (*set_resources)(device_t dev); void (*init)(device_t dev); unsigned int (*scan_bus)(device_t bus, unsigned int max); + void (*enable)(device_t dev); }; @@ -31,7 +32,7 @@ struct device { unsigned short device; unsigned int class; /* 3 bytes: (base,sub,prog-if) */ unsigned int hdr_type; /* PCI header type */ - unsigned int master : 1; /* set if device is master capable */ + unsigned int enable : 1; /* set if we should enable the device */ unsigned char secondary; /* secondary bus number */ unsigned char subordinate; /* max subordinate bus number */ @@ -56,7 +57,6 @@ struct device { unsigned int resources; unsigned long rom_address; struct device_operations *ops; - }; extern struct device dev_root; /* root bus */ -- cgit v1.2.3