From 0ea963e8114e132b538c5808fc64dea3f0c63e4d Mon Sep 17 00:00:00 2001 From: mdodd Date: Sat, 9 Oct 1999 04:02:02 +0000 Subject: - Restore correct operation of bt_mca. - Work around a problem not yet solved in the tree (but solved in mine.) device_get_ivars() should never be cast to a struct resource_list * The solution, under review, involves the creation of a device_get_resource_list() function. More later. --- sys/dev/mca/mca_bus.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/dev/mca') diff --git a/sys/dev/mca/mca_bus.c b/sys/dev/mca/mca_bus.c index fb54731..2846656 100644 --- a/sys/dev/mca/mca_bus.c +++ b/sys/dev/mca/mca_bus.c @@ -56,12 +56,12 @@ static void mca_reg_print (device_t, char *, char *, int *); struct mca_device { + struct resource_list rl; /* Resources */ + mca_id_t id; u_int8_t slot; u_int8_t enabled; u_int8_t pos[8]; /* Programable Option Select Regs. */ - - struct resource_list rl; /* Resources */ }; /* Not supposed to use this function! */ -- cgit v1.1