This patch makes all the SuperIOs build again, and reverts some breakage that

I introduced earlier.

It adds a placeholder in the fintek SuperIO so the array indexing works.
It moves the enable to make the struct more compatible with v2.

Signed-off-by: Myles Watson <mylesgw@gmail.com>
Acked-by: Ronald G. Minnich <rminnich@gmail.com>


git-svn-id: svn://coreboot.org/repository/coreboot-v3@1066 f3766cd6-281f-0410-b1cd-43a5c92072e9
This commit is contained in:
Myles Watson 2008-12-08 20:40:02 +00:00
commit 7c14a50c1c
8 changed files with 131 additions and 144 deletions

View file

@ -59,7 +59,6 @@ struct io_info {
struct pnp_info {
struct device_operations *ops;
unsigned function;
unsigned enable;
unsigned flags;
#define PNP_IO0 0x01
#define PNP_IO1 0x02
@ -69,11 +68,15 @@ struct pnp_info {
#define PNP_IRQ1 0x20
#define PNP_DRQ0 0x40
#define PNP_DRQ1 0x80
struct io_info io0, io1, io2, io3, irq0, irq1, drq0, drq1;
struct io_info io0, io1, io2, io3;
unsigned irq0, irq1, drq0, drq1;
unsigned enable;
};
struct resource *pnp_get_resource(struct device * dev, unsigned index);
void pnp_enable_devices(struct device *dev, struct device_operations *ops,
unsigned functions, struct pnp_info *info);
unsigned functions, struct pnp_info *info);
#define PNP_IDX_IO0 0x60
#define PNP_IDX_IO1 0x62