aboutsummaryrefslogtreecommitdiff
path: root/src/include/device/device.h
diff options
context:
space:
mode:
authorEric Biederman <ebiederm@xmission.com>2004-10-16 06:20:29 +0000
committerEric Biederman <ebiederm@xmission.com>2004-10-16 06:20:29 +0000
commit7003ba4a88a847707c55d593e517eaa70fc8c63d (patch)
treead29fcd2fde474cb9bdd32835a76101edabe1ef9 /src/include/device/device.h
parent216525d1fd86c13e0f1ebe85ba518cdc1da06fcb (diff)
- First stab at running linuxbios without the old static device tree.
Things are close but not quite there yet. git-svn-id: svn://svn.coreboot.org/coreboot/trunk@1681 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'src/include/device/device.h')
-rw-r--r--src/include/device/device.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/include/device/device.h b/src/include/device/device.h
index c5a18c298e..d5d2e8d946 100644
--- a/src/include/device/device.h
+++ b/src/include/device/device.h
@@ -5,11 +5,18 @@
#include <device/resource.h>
#include <device/path.h>
+
struct device;
typedef struct device * device_t;
struct pci_operations;
struct smbus_bus_operations;
+/* Chip operations */
+struct chip_operations {
+ char *name; /* This is the print name for debugging */
+ void (*enable_dev)(struct device *dev);
+};
+
struct device_operations {
void (*read_resources)(device_t dev);
void (*set_resources)(device_t dev);
@@ -67,7 +74,7 @@ struct device {
unsigned long rom_address;
struct device_operations *ops;
- struct chip_control *chip_control;
+ struct chip_operations *chip_ops;
void *chip_info;
};