- First stab at running linuxbios without the old static device tree.
[coreboot.git] / src / include / device / device.h
index c5a18c298e4e4687c17db87d26838d274e7a5a67..d5d2e8d946e3b002f4c7ef6e300d462f3825e102 100644 (file)
@@ -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;
 };