diff options
author | Brad Smith <brad@cvs.openbsd.org> | 2005-11-07 02:57:47 +0000 |
---|---|---|
committer | Brad Smith <brad@cvs.openbsd.org> | 2005-11-07 02:57:47 +0000 |
commit | 122c6d25289aaf1ae44207930b4b0660a098558c (patch) | |
tree | 83e03d0a047ee9488d7bf6fb0891f3d61a4ad5d3 /sys/dev/pci/if_ste.c | |
parent | c8e59e19f57b8b7a6a10b4531c5600549429472e (diff) |
- splimp -> splnet
- remove spl's from attach
- removing redundant checks before pci_mapreg_map()
- fix dmesg printing
- de-allocate resources on failure to attach
- remove unused VLAN input code from vge(4)
Diffstat (limited to 'sys/dev/pci/if_ste.c')
-rw-r--r-- | sys/dev/pci/if_ste.c | 19 |
1 files changed, 8 insertions, 11 deletions
diff --git a/sys/dev/pci/if_ste.c b/sys/dev/pci/if_ste.c index 9ae281c5cbb..b339229cecc 100644 --- a/sys/dev/pci/if_ste.c +++ b/sys/dev/pci/if_ste.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_ste.c,v 1.33 2005/09/10 23:21:05 brad Exp $ */ +/* $OpenBSD: if_ste.c,v 1.34 2005/11/07 02:57:45 brad Exp $ */ /* * Copyright (c) 1997, 1998, 1999 * Bill Paul <wpaul@ctr.columbia.edu>. All rights reserved. @@ -197,7 +197,7 @@ int ste_mii_readreg(sc, frame) { int i, ack, s; - s = splimp(); + s = splnet(); /* * Set up frame for RX. @@ -289,7 +289,7 @@ int ste_mii_writereg(sc, frame) { int s; - s = splimp(); + s = splnet(); /* * Set up frame for TX. */ @@ -795,7 +795,7 @@ void ste_stats_update(xsc) struct mii_data *mii; int s; - s = splimp(); + s = splnet(); sc = xsc; ifp = &sc->arpcom.ac_if; @@ -945,8 +945,7 @@ void ste_attach(parent, self, aux) */ if (ste_read_eeprom(sc, (caddr_t)&sc->arpcom.ac_enaddr, STE_EEADDR_NODE0, 3, 0)) { - printf("%s: failed to read station address\n", - sc->sc_dev.dv_xname); + printf(": failed to read station address\n"); goto fail_2; } @@ -955,8 +954,7 @@ void ste_attach(parent, self, aux) sc->ste_ldata_ptr = malloc(sizeof(struct ste_list_data) + 8, M_DEVBUF, M_DONTWAIT); if (sc->ste_ldata_ptr == NULL) { - printf("%s: no memory for list buffers!\n", - sc->sc_dev.dv_xname); + printf(": no memory for list buffers!\n"); goto fail_2; } @@ -997,7 +995,6 @@ void ste_attach(parent, self, aux) ether_ifattach(ifp); shutdownhook_establish(ste_shutdown, sc); - return; fail_2: @@ -1110,7 +1107,7 @@ void ste_init(xsc) struct mii_data *mii; int i, s; - s = splimp(); + s = splnet(); ste_stop(sc); @@ -1295,7 +1292,7 @@ int ste_ioctl(ifp, command, data) struct mii_data *mii; int s, error = 0; - s = splimp(); + s = splnet(); if ((error = ether_ioctl(ifp, &sc->arpcom, command, data)) > 0) { splx(s); |