diff options
Diffstat (limited to 'sys/dev/snc/dp83932var.h')
-rw-r--r-- | sys/dev/snc/dp83932var.h | 33 |
1 files changed, 16 insertions, 17 deletions
diff --git a/sys/dev/snc/dp83932var.h b/sys/dev/snc/dp83932var.h index adcf9c8..2431bb7 100644 --- a/sys/dev/snc/dp83932var.h +++ b/sys/dev/snc/dp83932var.h @@ -182,9 +182,9 @@ typedef struct snc_softc { * NIC register access functions: */ u_int16_t (*sc_nic_get) - __P((struct snc_softc *, u_int8_t)); + (struct snc_softc *, u_int8_t); void (*sc_nic_put) - __P((struct snc_softc *, u_int8_t, u_int16_t)); + (struct snc_softc *, u_int8_t, u_int16_t); /* * Memory functions: @@ -194,15 +194,15 @@ typedef struct snc_softc { * zero bytes in buffer */ void (*sc_writetodesc) - __P((struct snc_softc *, u_int32_t, u_int32_t, u_int16_t)); + (struct snc_softc *, u_int32_t, u_int32_t, u_int16_t); u_int16_t (*sc_readfromdesc) - __P((struct snc_softc *, u_int32_t, u_int32_t)); + (struct snc_softc *, u_int32_t, u_int32_t); void (*sc_copytobuf) - __P((struct snc_softc *, void *, u_int32_t, size_t)); + (struct snc_softc *, void *, u_int32_t, size_t); void (*sc_copyfrombuf) - __P((struct snc_softc *, void *, u_int32_t, size_t)); + (struct snc_softc *, void *, u_int32_t, size_t); void (*sc_zerobuf) - __P((struct snc_softc *, u_int32_t, size_t)); + (struct snc_softc *, u_int32_t, size_t); /* * Machine-dependent functions: @@ -211,16 +211,15 @@ typedef struct snc_softc { * hardware init hook - may be NULL * media change hook - may be NULL */ - void (*sc_hwreset) __P((struct snc_softc *)); - void (*sc_hwinit) __P((struct snc_softc *)); - int (*sc_mediachange) __P((struct snc_softc *)); - void (*sc_mediastatus) __P((struct snc_softc *, - struct ifmediareq *)); + void (*sc_hwreset)(struct snc_softc *); + void (*sc_hwinit)(struct snc_softc *); + int (*sc_mediachange)(struct snc_softc *); + void (*sc_mediastatus)(struct snc_softc *, struct ifmediareq *); int sc_enabled; /* boolean; power enabled on interface */ - int (*sc_enable) __P((struct snc_softc *)); - void (*sc_disable) __P((struct snc_softc *)); + int (*sc_enable)(struct snc_softc *); + void (*sc_disable)(struct snc_softc *); void *sc_sh; /* shutdownhook cookie */ int gone; @@ -302,6 +301,6 @@ typedef struct snc_softc { #define CDA_ENABLE 64 /* mask enabling CAM entries */ #define CDA_SIZE(sc) ((4*16 + 1) * ((sc->bitmode) ? 4 : 2)) -void sncconfig __P((struct snc_softc *, int *, int, int, u_int8_t *)); -void sncintr __P((void *)); -void sncshutdown __P((void *)); +void sncconfig(struct snc_softc *, int *, int, int, u_int8_t *); +void sncintr(void *); +void sncshutdown(void *); |