summaryrefslogtreecommitdiff
path: root/sys/arch/macppc/include
diff options
context:
space:
mode:
authorTobias Ulmer <tobiasu@cvs.openbsd.org>2014-07-02 15:34:44 +0000
committerTobias Ulmer <tobiasu@cvs.openbsd.org>2014-07-02 15:34:44 +0000
commitd89790d8dbbc4367c63b8fdd78a2702bf620d725 (patch)
tree1d1f119d60f637a53dba91f50a000f3f4c319341 /sys/arch/macppc/include
parent9a8ebd8643154526f86b835061ec46eca9d85e7f (diff)
Remove unused mainbus intr hook abstraction.
Theo approves, ok mpi@
Diffstat (limited to 'sys/arch/macppc/include')
-rw-r--r--sys/arch/macppc/include/autoconf.h33
1 files changed, 2 insertions, 31 deletions
diff --git a/sys/arch/macppc/include/autoconf.h b/sys/arch/macppc/include/autoconf.h
index 34809090127..222a50f11d2 100644
--- a/sys/arch/macppc/include/autoconf.h
+++ b/sys/arch/macppc/include/autoconf.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: autoconf.h,v 1.10 2014/07/02 15:11:39 tobiasu Exp $ */
+/* $OpenBSD: autoconf.h,v 1.11 2014/07/02 15:34:43 tobiasu Exp $ */
/*
* Copyright (c) 1997 Per Fogelstrom
@@ -34,38 +34,9 @@
#include <machine/bus.h>
-struct confargs;
-
-typedef int (*intr_handler_t)(void *);
-
-typedef struct bushook {
- struct device *bh_dv;
- int bh_type;
- void (*bh_intr_establish)(struct confargs *, intr_handler_t, void *);
- void (*bh_intr_disestablish)(struct confargs *);
- int (*bh_matchname)(struct confargs *, char *);
-} bushook_t;
-
-#define BUS_MAIN 1 /* mainbus */
-#define BUS_ISABR 2 /* ISA Bridge Bus */
-#define BUS_PCIBR 3 /* PCI bridge */
-#define BUS_VMEBR 4 /* VME bridge */
-
-#define BUS_INTR_ESTABLISH(ca, handler, val) \
- (*(ca)->ca_bus->bh_intr_establish)((ca), (handler), (val))
-#define BUS_INTR_DISESTABLISH(ca) \
- (*(ca)->ca_bus->bh_intr_establish)(ca)
-#define BUS_CVTADDR(ca) \
- (*(ca)->ca_bus->bh_cvtaddr)(ca)
-#define BUS_MATCHNAME(ca, name) \
- (*(ca)->ca_bus->bh_matchname)((ca), (name))
-
struct confargs {
- char *ca_name; /* Device name. */
- bushook_t *ca_bus; /* bus device resides on. */
- /* macobio hooks ?? */
+ char *ca_name;
bus_space_tag_t ca_iot;
- bus_space_tag_t ca_memt; /* XXX */
bus_dma_tag_t ca_dmat;
u_int32_t ca_node;
int ca_nreg;