summaryrefslogtreecommitdiff
path: root/sys/dev/pci/musycc.c
diff options
context:
space:
mode:
authorClaudio Jeker <claudio@cvs.openbsd.org>2005-08-14 21:50:50 +0000
committerClaudio Jeker <claudio@cvs.openbsd.org>2005-08-14 21:50:50 +0000
commit68a08cd3daa393fda25f32dfe2deba40e312691a (patch)
tree55fa28431fee7ffda402e87bc77367ea60565e52 /sys/dev/pci/musycc.c
parentb89c8a0d48c60ed6bf4440b7b3e217d8df068f42 (diff)
Kill the musyccbus/ebus device and use musycc for both functions of the
chip. Using two different devices for one card was a stupid idea. OK deraadt@
Diffstat (limited to 'sys/dev/pci/musycc.c')
-rw-r--r--sys/dev/pci/musycc.c24
1 files changed, 9 insertions, 15 deletions
diff --git a/sys/dev/pci/musycc.c b/sys/dev/pci/musycc.c
index 33d8a610bcc..253098e32a4 100644
--- a/sys/dev/pci/musycc.c
+++ b/sys/dev/pci/musycc.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: musycc.c,v 1.2 2005/08/13 23:52:49 claudio Exp $ */
+/* $OpenBSD: musycc.c,v 1.3 2005/08/14 21:50:49 claudio Exp $ */
/*
* Copyright (c) 2004,2005 Internet Business Solutions AG, Zurich, Switzerland
@@ -1520,15 +1520,9 @@ musycc_sreq(struct musycc_group *mg, int channel, u_int32_t req, int dir,
int
ebus_intr(void *arg)
{
- struct ebus_softc *ec = arg;
-#if 0
- struct framer_softc *fc;
+ struct musycc_softc *sc = arg;
- SLIST_FOREACH(fc, &sc->sc_hdlc->sc_framers, list) {
- f->sc_intr(f);
- }
-#endif
- printf("%s: interrupt\n", ec->ec_dev.dv_xname);
+ printf("%s: interrupt\n", sc->mc_dev.dv_xname);
return (1);
}
@@ -1536,12 +1530,12 @@ int
ebus_attach_device(struct ebus_dev *e, struct musycc_softc *mc,
bus_size_t offset, bus_size_t size)
{
- struct ebus_softc *ec = mc->mc_ebus;
+ struct musycc_softc *ec = mc->mc_other;
e->base = offset << 2;
e->size = size;
- e->st = ec->ec_st;
- return (bus_space_subregion(ec->ec_st, ec->ec_sh, offset << 2,
+ e->st = ec->mc_st;
+ return (bus_space_subregion(ec->mc_st, ec->mc_sh, offset << 2,
size, &e->sh));
}
@@ -1575,10 +1569,10 @@ ebus_read_buf(struct ebus_dev *rom, bus_size_t offset, void *buf, size_t size)
}
void
-ebus_set_led(struct ebus_softc *esc, u_int8_t value)
+ebus_set_led(struct musycc_softc *esc, u_int8_t value)
{
- bus_space_write_1(esc->ec_st, esc->ec_sh, esc->ec_ledbase << 2, value);
- bus_space_barrier(esc->ec_st, esc->ec_sh, esc->ec_ledbase << 2, 1,
+ bus_space_write_1(esc->mc_st, esc->mc_sh, esc->mc_ledbase << 2, value);
+ bus_space_barrier(esc->mc_st, esc->mc_sh, esc->mc_ledbase << 2, 1,
BUS_SPACE_BARRIER_READ|BUS_SPACE_BARRIER_WRITE);
}