summaryrefslogtreecommitdiffstats
path: root/sys/dev/mca
diff options
context:
space:
mode:
authormdodd <mdodd@FreeBSD.org>1999-10-09 04:02:02 +0000
committermdodd <mdodd@FreeBSD.org>1999-10-09 04:02:02 +0000
commit0ea963e8114e132b538c5808fc64dea3f0c63e4d (patch)
treeec08f96eeab5c00bc519b097fbb9f989a6e9b846 /sys/dev/mca
parentbf25d10421581ad8ef8d50e0352d59ea5f0470eb (diff)
downloadFreeBSD-src-0ea963e8114e132b538c5808fc64dea3f0c63e4d.zip
FreeBSD-src-0ea963e8114e132b538c5808fc64dea3f0c63e4d.tar.gz
- 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.
Diffstat (limited to 'sys/dev/mca')
-rw-r--r--sys/dev/mca/mca_bus.c4
1 files changed, 2 insertions, 2 deletions
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! */
OpenPOWER on IntegriCloud