diff options
author | alfred <alfred@FreeBSD.org> | 2002-03-20 02:08:01 +0000 |
---|---|---|
committer | alfred <alfred@FreeBSD.org> | 2002-03-20 02:08:01 +0000 |
commit | 3264aec746947db8598130cb0ac382cf0b2a10cf (patch) | |
tree | 13b2f09af75205c81c286aaf60527ae3de623e14 /sys/dev/en | |
parent | e8f7a49843febbd1d96e06f28e56160c942029dd (diff) | |
download | FreeBSD-src-3264aec746947db8598130cb0ac382cf0b2a10cf.zip FreeBSD-src-3264aec746947db8598130cb0ac382cf0b2a10cf.tar.gz |
Remove __P.
Diffstat (limited to 'sys/dev/en')
-rw-r--r-- | sys/dev/en/if_en_pci.c | 14 | ||||
-rw-r--r-- | sys/dev/en/midway.c | 56 | ||||
-rw-r--r-- | sys/dev/en/midwayvar.h | 8 |
3 files changed, 38 insertions, 40 deletions
diff --git a/sys/dev/en/if_en_pci.c b/sys/dev/en/if_en_pci.c index f3eecb6..4b99da7 100644 --- a/sys/dev/en/if_en_pci.c +++ b/sys/dev/en/if_en_pci.c @@ -67,10 +67,10 @@ * prototypes */ -static int en_pci_probe __P((device_t)); -static int en_pci_attach __P((device_t)); -static int en_pci_detach __P((device_t)); -static int en_pci_shutdown __P((device_t)); +static int en_pci_probe(device_t); +static int en_pci_attach(device_t); +static int en_pci_detach(device_t); +static int en_pci_shutdown(device_t); /* * local structures @@ -87,10 +87,10 @@ struct en_pci_softc { }; #if !defined(MIDWAY_ENIONLY) -static void eni_get_macaddr __P((device_t, struct en_pci_softc *)); +static void eni_get_macaddr(device_t, struct en_pci_softc *); #endif #if !defined(MIDWAY_ADPONLY) -static void adp_get_macaddr __P((struct en_pci_softc *)); +static void adp_get_macaddr(struct en_pci_softc *); #endif /* @@ -136,7 +136,7 @@ static void adp_get_macaddr __P((struct en_pci_softc *)); #if !defined(MIDWAY_ENIONLY) -static void adp_busreset __P((void *)); +static void adp_busreset(void *); /* * bus specific reset function [ADP only!] diff --git a/sys/dev/en/midway.c b/sys/dev/en/midway.c index 0f24ed0..adb1004 100644 --- a/sys/dev/en/midway.c +++ b/sys/dev/en/midway.c @@ -265,36 +265,34 @@ static struct en_dmatab *en_dmaplan = en_dma_planB; * prototypes */ -STATIC INLINE int en_b2sz __P((int)) __attribute__ ((unused)); +STATIC INLINE int en_b2sz(int) __attribute__ ((unused)); #ifdef EN_DDBHOOK - int en_dump __P((int,int)); - int en_dumpmem __P((int,int,int)); -#endif -STATIC void en_dmaprobe __P((struct en_softc *)); -STATIC int en_dmaprobe_doit __P((struct en_softc *, u_int8_t *, - u_int8_t *, int)); -STATIC INLINE int en_dqneed __P((struct en_softc *, caddr_t, u_int, - u_int)) __attribute__ ((unused)); -STATIC void en_init __P((struct en_softc *)); -STATIC int en_ioctl __P((struct ifnet *, EN_IOCTL_CMDT, caddr_t)); -STATIC INLINE int en_k2sz __P((int)) __attribute__ ((unused)); -STATIC void en_loadvc __P((struct en_softc *, int)); -STATIC int en_mfix __P((struct en_softc *, struct mbuf **, - struct mbuf *)); -STATIC INLINE struct mbuf *en_mget __P((struct en_softc *, u_int, - u_int *)) __attribute__ ((unused)); -STATIC INLINE u_int32_t en_read __P((struct en_softc *, - u_int32_t)) __attribute__ ((unused)); -STATIC int en_rxctl __P((struct en_softc *, struct atm_pseudoioctl *, - int)); -STATIC void en_txdma __P((struct en_softc *, int)); -STATIC void en_txlaunch __P((struct en_softc *, int, - struct en_launch *)); -STATIC void en_service __P((struct en_softc *)); -STATIC void en_start __P((struct ifnet *)); -STATIC INLINE int en_sz2b __P((int)) __attribute__ ((unused)); -STATIC INLINE void en_write __P((struct en_softc *, u_int32_t, - u_int32_t)) __attribute__ ((unused)); + int en_dump(int,int); + int en_dumpmem(int,int,int); +#endif +STATIC void en_dmaprobe(struct en_softc *); +STATIC int en_dmaprobe_doit(struct en_softc *, u_int8_t *, + u_int8_t *, int); +STATIC INLINE int en_dqneed(struct en_softc *, caddr_t, u_int, + u_int) __attribute__ ((unused)); +STATIC void en_init(struct en_softc *); +STATIC int en_ioctl(struct ifnet *, EN_IOCTL_CMDT, caddr_t); +STATIC INLINE int en_k2sz(int) __attribute__ ((unused)); +STATIC void en_loadvc(struct en_softc *, int); +STATIC int en_mfix(struct en_softc *, struct mbuf **, struct mbuf *); +STATIC INLINE struct mbuf *en_mget(struct en_softc *, u_int, + u_int *) __attribute__ ((unused)); +STATIC INLINE u_int32_t en_read(struct en_softc *, + u_int32_t) __attribute__ ((unused)); +STATIC int en_rxctl(struct en_softc *, struct atm_pseudoioctl *, int); +STATIC void en_txdma(struct en_softc *, int); +STATIC void en_txlaunch(struct en_softc *, int, + struct en_launch *); +STATIC void en_service(struct en_softc *); +STATIC void en_start(struct ifnet *); +STATIC INLINE int en_sz2b(int) __attribute__ ((unused)); +STATIC INLINE void en_write(struct en_softc *, u_int32_t, + u_int32_t) __attribute__ ((unused)); /* * macros/inline diff --git a/sys/dev/en/midwayvar.h b/sys/dev/en/midwayvar.h index fd1db66..007b91b 100644 --- a/sys/dev/en/midwayvar.h +++ b/sys/dev/en/midwayvar.h @@ -97,7 +97,7 @@ struct en_softc { bus_space_tag_t en_memt; /* for EN_READ/EN_WRITE */ bus_space_handle_t en_base; /* base of en card */ bus_size_t en_obmemsz; /* size of en card (bytes) */ - void (*en_busreset) __P((void *)); + void (*en_busreset)(void *); /* bus specific reset function */ /* serv list */ @@ -195,6 +195,6 @@ struct en_softc { * exported functions */ -void en_attach __P((struct en_softc *)); -EN_INTR_TYPE en_intr __P((void *)); -void en_reset __P((struct en_softc *)); +void en_attach(struct en_softc *); +EN_INTR_TYPE en_intr(void *); +void en_reset(struct en_softc *); |