diff options
| author | Eivind Eklund <eivind@FreeBSD.org> | 1999-01-12 02:09:33 +0000 |
|---|---|---|
| committer | Eivind Eklund <eivind@FreeBSD.org> | 1999-01-12 02:09:33 +0000 |
| commit | 685df2085db1eb5ccd573964ecea5560c3f12314 (patch) | |
| tree | 1c686fd6f1226f7694e700f74e43c4b2d8b321af | |
| parent | 44b74eef5cb0b5348bb3a9cf3586b89d7a6e8252 (diff) | |
Notes
| -rw-r--r-- | sys/dev/vx/if_vx.c | 8 | ||||
| -rw-r--r-- | sys/dev/vx/if_vx_eisa.c | 4 | ||||
| -rw-r--r-- | sys/dev/vx/if_vx_pci.c | 2 | ||||
| -rw-r--r-- | sys/dev/vx/if_vxreg.h | 2 | ||||
| -rw-r--r-- | sys/i386/eisa/if_vx_eisa.c | 4 | ||||
| -rw-r--r-- | sys/pci/if_vx_pci.c | 2 |
6 files changed, 11 insertions, 11 deletions
diff --git a/sys/dev/vx/if_vx.c b/sys/dev/vx/if_vx.c index df8a606578ded..b1d056fc8ba58 100644 --- a/sys/dev/vx/if_vx.c +++ b/sys/dev/vx/if_vx.c @@ -27,7 +27,7 @@ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * - * $Id: if_vx.c,v 1.17 1998/06/07 17:09:51 dfr Exp $ + * $Id: if_vx.c,v 1.18 1998/07/13 09:52:53 bde Exp $ * */ @@ -131,7 +131,6 @@ static void vxsetfilter __P((struct vx_softc *)); static void vxgetlink __P((struct vx_softc *)); static void vxsetlink __P((struct vx_softc *)); /* int vxbusyeeprom __P((struct vx_softc *)); */ -/* void vxintr __P((void *)); */ struct vx_softc * vxalloc(unit) @@ -640,10 +639,11 @@ vxtxstat(sc) } void -vxintr(sc) - struct vx_softc *sc; +vxintr(voidsc) + void *voidsc; { register short status; + struct vx_softc *sc = voidsc; struct ifnet *ifp = &sc->arpcom.ac_if; for (;;) { diff --git a/sys/dev/vx/if_vx_eisa.c b/sys/dev/vx/if_vx_eisa.c index fcee846452a20..b46fc752b95ef 100644 --- a/sys/dev/vx/if_vx_eisa.c +++ b/sys/dev/vx/if_vx_eisa.c @@ -159,7 +159,7 @@ vx_eisa_attach(e_dev) level_intr = FALSE; - if (eisa_reg_intr(e_dev, irq, (void (*)(void *)) vxintr, (void *) sc, &net_imask, + if (eisa_reg_intr(e_dev, irq, vxintr, (void *) sc, &net_imask, /* shared == */ level_intr)) { vxfree(sc); return -1; @@ -172,7 +172,7 @@ vx_eisa_attach(e_dev) if (eisa_enable_intr(e_dev, irq)) { vxfree(sc); - eisa_release_intr(e_dev, irq, (void (*)(void *)) vxintr); + eisa_release_intr(e_dev, irq, vxintr); return -1; } return 0; diff --git a/sys/dev/vx/if_vx_pci.c b/sys/dev/vx/if_vx_pci.c index 2584646edcbd8..ab02693e270d4 100644 --- a/sys/dev/vx/if_vx_pci.c +++ b/sys/dev/vx/if_vx_pci.c @@ -126,7 +126,7 @@ vx_pci_attach( */ at_shutdown(vx_pci_shutdown, sc, SHUTDOWN_POST_SYNC); - pci_map_int(config_id, (void (*)(void *)) vxintr, (void *) sc, &net_imask); + pci_map_int(config_id, vxintr, (void *) sc, &net_imask); } static struct pci_device vxdevice = { diff --git a/sys/dev/vx/if_vxreg.h b/sys/dev/vx/if_vxreg.h index 99708af18509e..688da0374649d 100644 --- a/sys/dev/vx/if_vxreg.h +++ b/sys/dev/vx/if_vxreg.h @@ -452,5 +452,5 @@ extern struct vx_softc *vxalloc __P((int)); extern void vxfree __P((struct vx_softc *)); extern int vxattach __P((struct vx_softc *)); extern void vxstop __P((struct vx_softc *)); -extern void vxintr __P((struct vx_softc *)); +extern void vxintr __P((void *)); extern int vxbusyeeprom __P((struct vx_softc *)); diff --git a/sys/i386/eisa/if_vx_eisa.c b/sys/i386/eisa/if_vx_eisa.c index fcee846452a20..b46fc752b95ef 100644 --- a/sys/i386/eisa/if_vx_eisa.c +++ b/sys/i386/eisa/if_vx_eisa.c @@ -159,7 +159,7 @@ vx_eisa_attach(e_dev) level_intr = FALSE; - if (eisa_reg_intr(e_dev, irq, (void (*)(void *)) vxintr, (void *) sc, &net_imask, + if (eisa_reg_intr(e_dev, irq, vxintr, (void *) sc, &net_imask, /* shared == */ level_intr)) { vxfree(sc); return -1; @@ -172,7 +172,7 @@ vx_eisa_attach(e_dev) if (eisa_enable_intr(e_dev, irq)) { vxfree(sc); - eisa_release_intr(e_dev, irq, (void (*)(void *)) vxintr); + eisa_release_intr(e_dev, irq, vxintr); return -1; } return 0; diff --git a/sys/pci/if_vx_pci.c b/sys/pci/if_vx_pci.c index 2584646edcbd8..ab02693e270d4 100644 --- a/sys/pci/if_vx_pci.c +++ b/sys/pci/if_vx_pci.c @@ -126,7 +126,7 @@ vx_pci_attach( */ at_shutdown(vx_pci_shutdown, sc, SHUTDOWN_POST_SYNC); - pci_map_int(config_id, (void (*)(void *)) vxintr, (void *) sc, &net_imask); + pci_map_int(config_id, vxintr, (void *) sc, &net_imask); } static struct pci_device vxdevice = { |
