diff options
author | dfr <dfr@FreeBSD.org> | 1998-06-07 17:13:14 +0000 |
---|---|---|
committer | dfr <dfr@FreeBSD.org> | 1998-06-07 17:13:14 +0000 |
commit | 1d5f38ac2264102518a09c66a7b285f57e81e67e (patch) | |
tree | 83ce2f0e2b8041d2c933d3beffc1f4465ea5b929 /sys/i386/isa | |
parent | 83423d0e5a4ad035e44392f0427cb39232031e45 (diff) | |
download | FreeBSD-src-1d5f38ac2264102518a09c66a7b285f57e81e67e.zip FreeBSD-src-1d5f38ac2264102518a09c66a7b285f57e81e67e.tar.gz |
This commit fixes various 64bit portability problems required for
FreeBSD/alpha. The most significant item is to change the command
argument to ioctl functions from int to u_long. This change brings us
inline with various other BSD versions. Driver writers may like to
use (__FreeBSD_version == 300003) to detect this change.
The prototype FreeBSD/alpha machdep will follow in a couple of days
time.
Diffstat (limited to 'sys/i386/isa')
48 files changed, 102 insertions, 101 deletions
diff --git a/sys/i386/isa/alog.c b/sys/i386/isa/alog.c index eeb6c96..8fbe576 100644 --- a/sys/i386/isa/alog.c +++ b/sys/i386/isa/alog.c @@ -193,7 +193,7 @@ static int sync_clock2 (int unit, long period); /* setup clock 2 period */ static int putfifo (talog_chan *pchan, u_short fifoent); static int alog_open (dev_t dev, int oflags, int devtype, struct proc *p); static int alog_close (dev_t dev, int fflag, int devtype, struct proc *p); -static int alog_ioctl (dev_t dev, int cmd, caddr_t data, +static int alog_ioctl (dev_t dev, u_long cmd, caddr_t data, int fflag, struct proc *p); static int alog_read (dev_t dev, struct uio *uio, int ioflag); static int alog_poll (dev_t dev, int events, struct proc *p); @@ -215,7 +215,7 @@ struct isa_driver alogdriver = { alog_probe, alog_attach, "alog", 0 }; /* handle the ioctls */ -static int alog_ioctl (dev_t dev, int cmd, caddr_t data, +static int alog_ioctl (dev_t dev, u_long cmd, caddr_t data, int fflag, struct proc *p) { int unit = UNIT(dev); diff --git a/sys/i386/isa/asc.c b/sys/i386/isa/asc.c index cd40df4..7f788d7 100644 --- a/sys/i386/isa/asc.c +++ b/sys/i386/isa/asc.c @@ -34,7 +34,7 @@ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* - * $Id: asc.c,v 1.28 1998/01/24 02:54:15 eivind Exp $ + * $Id: asc.c,v 1.29 1998/03/28 10:32:59 bde Exp $ */ #include "asc.h" @@ -831,7 +831,7 @@ ascread(dev_t dev, struct uio *uio, int ioflag) ***/ STATIC int -ascioctl(dev_t dev, int cmd, caddr_t data, int flags, struct proc *p) +ascioctl(dev_t dev, u_long cmd, caddr_t data, int flags, struct proc *p) { int unit = UNIT(minor(dev)); struct asc_unit *scu = unittab + unit; diff --git a/sys/i386/isa/b004.c b/sys/i386/isa/b004.c index 7cacaf1..5a9357d 100644 --- a/sys/i386/isa/b004.c +++ b/sys/i386/isa/b004.c @@ -487,7 +487,7 @@ bqupoll(dev_t dev, int events, struct proc *p) */ static int -bquioctl(dev_t dev, int cmd, caddr_t addr, int flag, struct proc *p) +bquioctl(dev_t dev, u_long cmd, caddr_t addr, int flag, struct proc *p) { unsigned int dev_min = minor(dev) & 7; int result = 0; diff --git a/sys/i386/isa/ctx.c b/sys/i386/isa/ctx.c index 92b48b8..c16e636 100644 --- a/sys/i386/isa/ctx.c +++ b/sys/i386/isa/ctx.c @@ -8,7 +8,7 @@ * of this software, nor does the author assume any responsibility * for damages incurred with its use. * - * $Id: ctx.c,v 1.25 1997/07/20 14:09:52 bde Exp $ + * $Id: ctx.c,v 1.26 1998/01/24 02:54:17 eivind Exp $ */ /* @@ -360,7 +360,7 @@ ctxread(dev_t dev, struct uio * uio, int ioflag) } static int -ctxioctl(dev_t dev, int cmd, caddr_t data, int flags, struct proc *p) +ctxioctl(dev_t dev, u_long cmd, caddr_t data, int flags, struct proc *p) { int error; int unit, i; diff --git a/sys/i386/isa/cx.c b/sys/i386/isa/cx.c index d40f3e7..4a8d144 100644 --- a/sys/i386/isa/cx.c +++ b/sys/i386/isa/cx.c @@ -295,7 +295,7 @@ int cxwrite (dev_t dev, struct uio *uio, int flag) return ((*linesw[tp->t_line].l_write) (tp, uio, flag)); } -int cxioctl (dev_t dev, int cmd, caddr_t data, int flag, struct proc *p) +int cxioctl (dev_t dev, u_long cmd, caddr_t data, int flag, struct proc *p) { int unit = UNIT (dev); cx_chan_t *c, *m; diff --git a/sys/i386/isa/cy.c b/sys/i386/isa/cy.c index 5dd4762..04a0a1c 100644 --- a/sys/i386/isa/cy.c +++ b/sys/i386/isa/cy.c @@ -27,7 +27,7 @@ * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * - * $Id: cy.c,v 1.61 1998/02/13 12:45:47 phk Exp $ + * $Id: cy.c,v 1.62 1998/03/18 20:52:28 dg Exp $ */ #include "opt_compat.h" @@ -1383,7 +1383,7 @@ siointr1(com) static int sioioctl(dev, cmd, data, flag, p) dev_t dev; - int cmd; + u_long cmd; caddr_t data; int flag; struct proc *p; diff --git a/sys/i386/isa/fd.c b/sys/i386/isa/fd.c index 5445b3f..5a9d93c 100644 --- a/sys/i386/isa/fd.c +++ b/sys/i386/isa/fd.c @@ -43,7 +43,7 @@ * SUCH DAMAGE. * * from: @(#)fd.c 7.4 (Berkeley) 5/25/91 - * $Id: fd.c,v 1.111 1998/05/06 22:14:41 julian Exp $ + * $Id: fd.c,v 1.112 1998/05/06 23:35:36 julian Exp $ * */ @@ -2040,7 +2040,7 @@ fdformat(dev, finfo, p) static int fdioctl(dev, cmd, addr, flag, p) dev_t dev; - int cmd; + u_long cmd; caddr_t addr; int flag; struct proc *p; diff --git a/sys/i386/isa/gpib.c b/sys/i386/isa/gpib.c index 61f651b7..b03b712 100644 --- a/sys/i386/isa/gpib.c +++ b/sys/i386/isa/gpib.c @@ -387,7 +387,7 @@ gpwrite(dev, uio, ioflag) write to using a minor device = its GPIB address */ static int -gpioctl(dev_t dev, int cmd, caddr_t data, int flags, struct proc *p) +gpioctl(dev_t dev, u_long cmd, caddr_t data, int flags, struct proc *p) { struct gpibdata *gd = (struct gpibdata *)data; int error,result; diff --git a/sys/i386/isa/gsc.c b/sys/i386/isa/gsc.c index 966249f..44a97ea 100644 --- a/sys/i386/isa/gsc.c +++ b/sys/i386/isa/gsc.c @@ -742,7 +742,7 @@ gscread (dev_t dev, struct uio *uio, int ioflag) */ static int -gscioctl (dev_t dev, int cmd, caddr_t data, int flag, struct proc *p) +gscioctl (dev_t dev, u_long cmd, caddr_t data, int flag, struct proc *p) { int unit = UNIT(minor(dev)); struct gsc_unit *scu = unittab + unit; diff --git a/sys/i386/isa/if_ar.c b/sys/i386/isa/if_ar.c index 53c4b20..72704e1 100644 --- a/sys/i386/isa/if_ar.c +++ b/sys/i386/isa/if_ar.c @@ -28,7 +28,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: if_ar.c,v 1.17 1998/01/08 23:40:37 eivind Exp $ + * $Id: if_ar.c,v 1.18 1998/04/17 22:36:33 des Exp $ */ /* @@ -181,7 +181,7 @@ struct isa_driver ardriver = {arprobe, arattach, "arc"}; static void ar_xmit(struct ar_softc *sc); static void arstart(struct ifnet *ifp); -static int arioctl(struct ifnet *ifp, int cmd, caddr_t data); +static int arioctl(struct ifnet *ifp, u_long cmd, caddr_t data); static void arwatchdog(struct ifnet *ifp); static int ar_packet_avail(struct ar_softc *sc, int *len, u_char *rxstat); static void ar_copy_rxbuf(struct mbuf *m, struct ar_softc *sc, int len); @@ -597,7 +597,7 @@ top_arstart: } static int -arioctl(struct ifnet *ifp, int cmd, caddr_t data) +arioctl(struct ifnet *ifp, u_long cmd, caddr_t data) { int s, error; int was_up, should_be_up; diff --git a/sys/i386/isa/if_cx.c b/sys/i386/isa/if_cx.c index 01f58f7..ded05ec 100644 --- a/sys/i386/isa/if_cx.c +++ b/sys/i386/isa/if_cx.c @@ -83,7 +83,7 @@ static int cxtinth __P((cx_chan_t *c)); #define IFSTRUCTSZ (sizeof (struct sppp)) #define IFNETSZ (sizeof (struct ifnet)) -static int cxsioctl (struct ifnet *ifp, int cmd, caddr_t data); +static int cxsioctl (struct ifnet *ifp, u_long cmd, caddr_t data); static void cxstart (struct ifnet *ifp); static void cxwatchdog (struct ifnet *ifp); static void cxinput (cx_chan_t *c, void *buf, unsigned len); @@ -316,7 +316,7 @@ struct isa_driver cxdriver = { cxprobe, cxattach, "cx" }; * Process an ioctl request. */ static int -cxsioctl (struct ifnet *ifp, int cmd, caddr_t data) +cxsioctl (struct ifnet *ifp, u_long cmd, caddr_t data) { cx_chan_t *q, *c = ifp->if_softc; int error, s, was_up, should_be_up; diff --git a/sys/i386/isa/if_ed.c b/sys/i386/isa/if_ed.c index 3e15d49..d670bf2 100644 --- a/sys/i386/isa/if_ed.c +++ b/sys/i386/isa/if_ed.c @@ -24,7 +24,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: if_ed.c,v 1.139 1998/04/15 17:45:15 bde Exp $ + * $Id: if_ed.c,v 1.140 1998/04/17 22:36:34 des Exp $ */ /* @@ -139,7 +139,7 @@ static int ed_attach __P((struct ed_softc *, int, int)); static int ed_attach_isa __P((struct isa_device *)); static void ed_init __P((void *)); -static int ed_ioctl __P((struct ifnet *, int, caddr_t)); +static int ed_ioctl __P((struct ifnet *, u_long, caddr_t)); static int ed_probe __P((struct isa_device *)); static void ed_start __P((struct ifnet *)); static void ed_reset __P((struct ifnet *)); @@ -2582,7 +2582,7 @@ edintr(unit) static int ed_ioctl(ifp, command, data) register struct ifnet *ifp; - int command; + u_long command; caddr_t data; { struct ed_softc *sc = ifp->if_softc; diff --git a/sys/i386/isa/if_eg.c b/sys/i386/isa/if_eg.c index 7500016..7f68aa6 100644 --- a/sys/i386/isa/if_eg.c +++ b/sys/i386/isa/if_eg.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_eg.c,v 1.26 1998/01/08 23:40:47 eivind Exp $ + * $Id: if_eg.c,v 1.27 1998/03/28 13:23:56 bde Exp $ * * Support for 3Com 3c505 Etherlink+ card. */ @@ -104,7 +104,7 @@ static int egreadPCBready __P((struct eg_softc *sc)); static int egwritePCB __P((struct eg_softc *sc)); static int egreadPCB __P((struct eg_softc *sc)); static void eginit __P((struct eg_softc *sc)); -static int egioctl (struct ifnet *, int, caddr_t); +static int egioctl (struct ifnet *, u_long, caddr_t); static void egrecv(struct eg_softc *); static void egstart(struct ifnet *); static void egread __P((struct eg_softc *, caddr_t, int)); @@ -699,7 +699,7 @@ egget(sc, buf, totlen) static int egioctl(ifp, command, data) register struct ifnet *ifp; - int command; + u_long command; caddr_t data; { struct eg_softc *sc = ifp->if_softc; diff --git a/sys/i386/isa/if_el.c b/sys/i386/isa/if_el.c index 2faef84..1fe6064 100644 --- a/sys/i386/isa/if_el.c +++ b/sys/i386/isa/if_el.c @@ -6,7 +6,7 @@ * * Questions, comments, bug reports and fixes to kimmel@cs.umass.edu. * - * $Id: if_el.c,v 1.34 1998/03/28 13:23:58 bde Exp $ + * $Id: if_el.c,v 1.35 1998/04/15 17:45:18 bde Exp $ */ /* Except of course for the portions of code lifted from other FreeBSD * drivers (mainly elread, elget and el_ioctl) @@ -75,7 +75,7 @@ static struct el_softc { /* Prototypes */ static int el_attach(struct isa_device *); static void el_init(int); -static int el_ioctl(struct ifnet *,int,caddr_t); +static int el_ioctl(struct ifnet *,u_long,caddr_t); static int el_probe(struct isa_device *); static void el_start(struct ifnet *); static void el_reset(int); @@ -645,7 +645,7 @@ elget(buf, totlen, off0, ifp) static int el_ioctl(ifp, command, data) register struct ifnet *ifp; - int command; + u_long command; caddr_t data; { register struct ifaddr *ifa = (struct ifaddr *)data; diff --git a/sys/i386/isa/if_ep.c b/sys/i386/isa/if_ep.c index 6e96c8f..9087bb5 100644 --- a/sys/i386/isa/if_ep.c +++ b/sys/i386/isa/if_ep.c @@ -38,7 +38,7 @@ */ /* - * $Id: if_ep.c,v 1.73 1998/02/27 05:38:30 msmith Exp $ + * $Id: if_ep.c,v 1.74 1998/03/28 13:24:01 bde Exp $ * * Promiscuous mode added and interrupt logic slightly changed * to reduce the number of adapter failures. Transceiver select @@ -116,7 +116,7 @@ static int eeprom_rdy __P((struct ep_softc *sc)); static int ep_isa_probe __P((struct isa_device *)); static struct ep_board * ep_look_for_board_at __P((struct isa_device *is)); static int ep_isa_attach __P((struct isa_device *)); -static int epioctl __P((struct ifnet * ifp, int, caddr_t)); +static int epioctl __P((struct ifnet * ifp, u_long, caddr_t)); static void epinit __P((struct ep_softc *)); static void epread __P((struct ep_softc *)); @@ -1197,7 +1197,7 @@ out: static int epioctl(ifp, cmd, data) register struct ifnet *ifp; - int cmd; + u_long cmd; caddr_t data; { register struct ifaddr *ifa = (struct ifaddr *) data; diff --git a/sys/i386/isa/if_ex.c b/sys/i386/isa/if_ex.c index 1f58a06..f64ef74 100644 --- a/sys/i386/isa/if_ex.c +++ b/sys/i386/isa/if_ex.c @@ -24,7 +24,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: if_ex.c,v 1.10 1998/01/08 23:40:52 eivind Exp $ + * $Id: if_ex.c,v 1.11 1998/03/28 13:24:06 bde Exp $ */ /* @@ -119,7 +119,7 @@ static int ex_attach __P((struct isa_device *)); static void ex_init __P((void *)); static void ex_start __P((struct ifnet *)); static void ex_stop __P((int)); -static int ex_ioctl __P((struct ifnet *, int, caddr_t)); +static int ex_ioctl __P((struct ifnet *, u_long, caddr_t)); static void ex_reset __P((int)); static void ex_watchdog __P((struct ifnet *)); @@ -760,7 +760,7 @@ void ex_rx_intr(int unit) } -int ex_ioctl(register struct ifnet *ifp, int cmd, caddr_t data) +int ex_ioctl(register struct ifnet *ifp, u_long cmd, caddr_t data) { register struct ifaddr *ifa = (struct ifaddr *) data; struct ex_softc *sc = &ex_sc[ifp->if_unit]; diff --git a/sys/i386/isa/if_fe.c b/sys/i386/isa/if_fe.c index 81a4b72..8fae123 100644 --- a/sys/i386/isa/if_fe.c +++ b/sys/i386/isa/if_fe.c @@ -21,7 +21,7 @@ */ /* - * $Id: if_fe.c,v 1.39 1998/02/27 06:39:31 msmith Exp $ + * $Id: if_fe.c,v 1.40 1998/03/28 13:24:09 bde Exp $ * * Device driver for Fujitsu MB86960A/MB86965A based Ethernet cards. * To be used with FreeBSD 2.x @@ -239,7 +239,7 @@ static struct fe_softc { static int fe_probe ( struct isa_device * ); static int fe_attach ( struct isa_device * ); static void fe_init ( int ); -static int fe_ioctl ( struct ifnet *, int, caddr_t ); +static int fe_ioctl ( struct ifnet *, u_long, caddr_t ); static void fe_start ( struct ifnet * ); static void fe_reset ( int ); static void fe_watchdog ( struct ifnet * ); @@ -2471,7 +2471,7 @@ feintr ( int unit ) * pretty ugly. */ static int -fe_ioctl ( struct ifnet * ifp, int command, caddr_t data ) +fe_ioctl ( struct ifnet * ifp, u_long command, caddr_t data ) { struct fe_softc *sc = ifp->if_softc; int s, error = 0; diff --git a/sys/i386/isa/if_ie.c b/sys/i386/isa/if_ie.c index a34f11d..0e96d6f 100644 --- a/sys/i386/isa/if_ie.c +++ b/sys/i386/isa/if_ie.c @@ -47,7 +47,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: if_ie.c,v 1.51 1998/03/28 13:24:13 bde Exp $ + * $Id: if_ie.c,v 1.52 1998/04/15 17:45:20 bde Exp $ */ /* @@ -184,7 +184,7 @@ static int ee16_probe(struct isa_device * dvp); static int check_ie_present(int unit, caddr_t where, unsigned size); static void ieinit(int unit); static void ie_stop(int unit); -static int ieioctl(struct ifnet * ifp, int command, caddr_t data); +static int ieioctl(struct ifnet * ifp, u_long command, caddr_t data); static void iestart(struct ifnet * ifp); static void el_reset_586(int unit); @@ -2251,7 +2251,7 @@ ie_stop(int unit) } static int -ieioctl(struct ifnet *ifp, int command, caddr_t data) +ieioctl(struct ifnet *ifp, u_long command, caddr_t data) { struct ifaddr *ifa = (struct ifaddr *) data; struct ie_softc *ie = ifp->if_softc; diff --git a/sys/i386/isa/if_le.c b/sys/i386/isa/if_le.c index 3481903..67e175e 100644 --- a/sys/i386/isa/if_le.c +++ b/sys/i386/isa/if_le.c @@ -21,7 +21,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_le.c,v 1.43 1998/01/08 23:40:58 eivind Exp $ + * $Id: if_le.c,v 1.44 1998/03/28 13:24:17 bde Exp $ */ /* @@ -241,7 +241,7 @@ struct le_softc { static int le_probe(struct isa_device *dvp); static int le_attach(struct isa_device *dvp); -static int le_ioctl(struct ifnet *ifp, int command, caddr_t data); +static int le_ioctl(struct ifnet *ifp, u_long command, caddr_t data); static void le_input(le_softc_t *sc, caddr_t seg1, size_t total_len, size_t len2, caddr_t seg2); static void le_multi_filter(le_softc_t *sc); @@ -504,7 +504,7 @@ le_input( static int le_ioctl( struct ifnet *ifp, - int cmd, + u_long cmd, caddr_t data) { le_softc_t *sc = ifp->if_softc; diff --git a/sys/i386/isa/if_lnc.c b/sys/i386/isa/if_lnc.c index eb1c4fe..bff5d17 100644 --- a/sys/i386/isa/if_lnc.c +++ b/sys/i386/isa/if_lnc.c @@ -30,7 +30,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: if_lnc.c,v 1.41 1998/05/27 09:59:13 paul Exp $ + * $Id: if_lnc.c,v 1.42 1998/05/27 11:05:17 paul Exp $ */ /* @@ -175,7 +175,7 @@ static void lnc_init __P((struct lnc_softc *sc)); static __inline int mbuf_to_buffer __P((struct mbuf *m, char *buffer)); static __inline struct mbuf *chain_to_cluster __P((struct mbuf *m)); static void lnc_start __P((struct ifnet *ifp)); -static int lnc_ioctl __P((struct ifnet *ifp, int command, caddr_t data)); +static int lnc_ioctl __P((struct ifnet *ifp, u_long command, caddr_t data)); static void lnc_watchdog __P((struct ifnet *ifp)); #ifdef DEBUG static void lnc_dump_state __P((struct lnc_softc *sc)); @@ -1749,7 +1749,7 @@ lnc_start(struct ifnet *ifp) } static int -lnc_ioctl(struct ifnet * ifp, int command, caddr_t data) +lnc_ioctl(struct ifnet * ifp, u_long command, caddr_t data) { struct lnc_softc *sc = ifp->if_softc; diff --git a/sys/i386/isa/if_sr.c b/sys/i386/isa/if_sr.c index 546756f..00427ba 100644 --- a/sys/i386/isa/if_sr.c +++ b/sys/i386/isa/if_sr.c @@ -27,7 +27,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: if_sr.c,v 1.11 1998/01/30 19:49:54 jhay Exp $ + * $Id: if_sr.c,v 1.12 1998/04/17 22:36:35 des Exp $ */ /* @@ -273,7 +273,7 @@ void srintr_hc(struct sr_hardc *hc); static int srattach(struct sr_hardc *hc); static void sr_xmit(struct sr_softc *sc); static void srstart(struct ifnet *ifp); -static int srioctl(struct ifnet *ifp, int cmd, caddr_t data); +static int srioctl(struct ifnet *ifp, u_long cmd, caddr_t data); static void srwatchdog(struct ifnet *ifp); static int sr_packet_avail(struct sr_softc *sc, int *len, u_char *rxstat); static void sr_copy_rxbuf(struct mbuf *m, struct sr_softc *sc, int len); @@ -1243,7 +1243,7 @@ static int bug_splats[] = {0, 0, 0, 0, 0, 0, 0, 0}; #endif static int -srioctl(struct ifnet *ifp, int cmd, caddr_t data) +srioctl(struct ifnet *ifp, u_long cmd, caddr_t data) { int s, error, was_up, should_be_up; struct sppp *sp = (struct sppp *)ifp; diff --git a/sys/i386/isa/if_wl.c b/sys/i386/isa/if_wl.c index 8908c20..c4bd4db 100644 --- a/sys/i386/isa/if_wl.c +++ b/sys/i386/isa/if_wl.c @@ -1,4 +1,4 @@ -/* $Id: if_wl.c,v 1.10 1998/01/08 23:41:04 eivind Exp $ */ +/* $Id: if_wl.c,v 1.11 1998/02/20 13:11:47 bde Exp $ */ /* * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions @@ -301,7 +301,7 @@ SYSCTL_INT(_machdep, OID_AUTO, wl_gather_snr, CTLFLAG_RW, &gathersnr, 0, ""); static void wlstart(struct ifnet *ifp); static void wlinit(void *xsc); -static int wlioctl(struct ifnet *ifp, int cmd, caddr_t data); +static int wlioctl(struct ifnet *ifp, u_long cmd, caddr_t data); static timeout_t wlwatchdog; static void wlxmt(int unt, struct mbuf *m); static int wldiag(int unt); @@ -1169,7 +1169,7 @@ wlread(int unit, u_short fd_p) * */ static int -wlioctl(struct ifnet *ifp, int cmd, caddr_t data) +wlioctl(struct ifnet *ifp, u_long cmd, caddr_t data) { register struct ifaddr *ifa = (struct ifaddr *)data; register struct ifreq *ifr = (struct ifreq *)data; diff --git a/sys/i386/isa/if_ze.c b/sys/i386/isa/if_ze.c index c420c4e..83e3957 100644 --- a/sys/i386/isa/if_ze.c +++ b/sys/i386/isa/if_ze.c @@ -47,7 +47,7 @@ */ /* - * $Id: if_ze.c,v 1.51 1998/03/28 13:24:24 bde Exp $ + * $Id: if_ze.c,v 1.52 1998/04/15 17:45:26 bde Exp $ */ /* XXX don't mix different PCCARD support code. */ @@ -167,7 +167,7 @@ static void ze_init __P((int unit)); static __inline void ze_xmit __P((struct ifnet *ifp)); static void ze_start __P((struct ifnet *ifp)); static __inline void ze_rint __P((int unit)); -static int ze_ioctl __P((struct ifnet *ifp, int command, caddr_t data)); +static int ze_ioctl __P((struct ifnet *ifp, u_long command, caddr_t data)); static void ze_get_packet __P((struct ze_softc *sc, char *buf, int len)); static __inline char *ze_ring_copy __P((struct ze_softc *sc, char *src, char *dst, int amount)); @@ -1322,7 +1322,7 @@ zeintr(unit) static int ze_ioctl(ifp, command, data) register struct ifnet *ifp; - int command; + u_long command; caddr_t data; { register struct ifaddr *ifa = (struct ifaddr *)data; diff --git a/sys/i386/isa/if_zp.c b/sys/i386/isa/if_zp.c index f4b2de0..b2e9ad8 100644 --- a/sys/i386/isa/if_zp.c +++ b/sys/i386/isa/if_zp.c @@ -34,7 +34,7 @@ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * * From: if_ep.c,v 1.9 1994/01/25 10:46:29 deraadt Exp $ - * $Id: if_zp.c,v 1.46 1998/03/28 13:24:28 bde Exp $ + * $Id: if_zp.c,v 1.47 1998/05/26 02:28:18 jmb Exp $ */ /*- * TODO: @@ -194,7 +194,7 @@ static int zpprobe __P((struct isa_device *)); static int zpattach __P((struct isa_device *)); static int zp_suspend __P((void *visa_dev)); static int zp_resume __P((void *visa_dev)); -static int zpioctl __P((struct ifnet * ifp, int, caddr_t)); +static int zpioctl __P((struct ifnet * ifp, u_long, caddr_t)); static u_short read_eeprom_data __P((int, int)); static void zpinit __P((int)); @@ -1007,7 +1007,7 @@ out: outw(BASE + EP_COMMAND, RX_DISCARD_TOP_PACK); static int zpioctl(ifp, cmd, data) register struct ifnet *ifp; - int cmd; + u_long cmd; caddr_t data; { register struct ifaddr *ifa = (struct ifaddr *) data; diff --git a/sys/i386/isa/istallion.c b/sys/i386/isa/istallion.c index 8593169..c05b29c 100644 --- a/sys/i386/isa/istallion.c +++ b/sys/i386/isa/istallion.c @@ -33,7 +33,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: istallion.c,v 1.17 1998/02/13 12:45:52 phk Exp $ + * $Id: istallion.c,v 1.18 1998/04/15 17:45:29 bde Exp $ */ /*****************************************************************************/ @@ -1158,7 +1158,7 @@ STATIC int stliwrite(dev_t dev, struct uio *uiop, int flag) /*****************************************************************************/ -STATIC int stliioctl(dev_t dev, int cmd, caddr_t data, int flag, struct proc *p) +STATIC int stliioctl(dev_t dev, u_long cmd, caddr_t data, int flag, struct proc *p) { struct termios *newtios, *localtios; struct tty *tp; diff --git a/sys/i386/isa/joy.c b/sys/i386/isa/joy.c index 072be4e..f64d99e5 100644 --- a/sys/i386/isa/joy.c +++ b/sys/i386/isa/joy.c @@ -188,7 +188,7 @@ joyread (dev_t dev, struct uio *uio, int flag) } static int -joyioctl (dev_t dev, int cmd, caddr_t data, int flag, struct proc *p) +joyioctl (dev_t dev, u_long cmd, caddr_t data, int flag, struct proc *p) { int unit = UNIT (dev); int i = joypart (dev); diff --git a/sys/i386/isa/labpc.c b/sys/i386/isa/labpc.c index 049bbc8..3a5b0a6 100644 --- a/sys/i386/isa/labpc.c +++ b/sys/i386/isa/labpc.c @@ -1018,7 +1018,7 @@ labpcstrategy(struct buf *bp) } static int -labpcioctl(dev_t dev, int cmd, caddr_t arg, int mode, struct proc *p) +labpcioctl(dev_t dev, u_long cmd, caddr_t arg, int mode, struct proc *p) { struct ctlr *ctlr = labpcs[UNIT(dev)]; diff --git a/sys/i386/isa/lpt.c b/sys/i386/isa/lpt.c index 1af5f8a..b25e2e7 100644 --- a/sys/i386/isa/lpt.c +++ b/sys/i386/isa/lpt.c @@ -46,7 +46,7 @@ * SUCH DAMAGE. * * from: unknown origin, 386BSD 0.1 - * $Id: lpt.c,v 1.67 1998/02/20 04:19:39 steve Exp $ + * $Id: lpt.c,v 1.68 1998/04/15 17:45:34 bde Exp $ */ /* @@ -276,7 +276,7 @@ static u_char *ctxmith; /* Functions for the lp# interface */ static void lpattach(struct lpt_softc *,int); static int lpinittables(void); -static int lpioctl(struct ifnet *, int, caddr_t); +static int lpioctl(struct ifnet *, u_long, caddr_t); static int lpoutput(struct ifnet *, struct mbuf *, struct sockaddr *, struct rtentry *); static void lpintr(int); @@ -808,7 +808,7 @@ lptintr(int unit) } static int -lptioctl(dev_t dev, int cmd, caddr_t data, int flags, struct proc *p) +lptioctl(dev_t dev, u_long cmd, caddr_t data, int flags, struct proc *p) { int error = 0; struct lpt_softc *sc; @@ -918,7 +918,7 @@ lpinittables (void) */ static int -lpioctl (struct ifnet *ifp, int cmd, caddr_t data) +lpioctl (struct ifnet *ifp, u_long cmd, caddr_t data) { struct lpt_softc *sc = lpt_sc + ifp->if_unit; struct ifaddr *ifa = (struct ifaddr *)data; diff --git a/sys/i386/isa/matcd/matcd.c b/sys/i386/isa/matcd/matcd.c index ba30c2f..d3bd4e5 100644 --- a/sys/i386/isa/matcd/matcd.c +++ b/sys/i386/isa/matcd/matcd.c @@ -337,7 +337,7 @@ static char MATCDVERSION[]="Version 1(26) 18-Oct-95"; static char MATCDCOPYRIGHT[] = "Matsushita CD-ROM driver, Copr. 1994,1995 Frank Durda IV"; /* The proceeding strings may not be changed*/ -/* $Id: matcd.c,v 1.31 1997/12/02 21:06:37 phk Exp $ */ +/* $Id: matcd.c,v 1.32 1998/01/24 02:54:32 eivind Exp $ */ /*--------------------------------------------------------------------------- Include declarations @@ -979,7 +979,7 @@ static void matcd_start(int controller) things that don't fit into the block read scheme of things. ---------------------------------------------------------------------------*/ -int matcdioctl(dev_t dev, int command, caddr_t addr, +int matcdioctl(dev_t dev, u_long command, caddr_t addr, int flags, struct proc *p) { struct matcd_data *cd; diff --git a/sys/i386/isa/mcd.c b/sys/i386/isa/mcd.c index 9121a71..1129d94 100644 --- a/sys/i386/isa/mcd.c +++ b/sys/i386/isa/mcd.c @@ -40,7 +40,7 @@ * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * - * $Id: mcd.c,v 1.96 1997/12/02 21:06:25 phk Exp $ + * $Id: mcd.c,v 1.97 1998/01/24 02:54:22 eivind Exp $ */ static const char COPYRIGHT[] = "mcd-driver (C)1993 by H.Veit & B.Moore"; @@ -506,7 +506,7 @@ static void mcd_start(int unit) return; } -int mcdioctl(dev_t dev, int cmd, caddr_t addr, int flags, struct proc *p) +int mcdioctl(dev_t dev, u_long cmd, caddr_t addr, int flags, struct proc *p) { struct mcd_data *cd; int unit,part,retry,r; diff --git a/sys/i386/isa/mse.c b/sys/i386/isa/mse.c index 2f558d8..d907e4c 100644 --- a/sys/i386/isa/mse.c +++ b/sys/i386/isa/mse.c @@ -11,7 +11,7 @@ * this software for any purpose. It is provided "as is" * without express or implied warranty. * - * $Id: mse.c,v 1.36 1997/12/07 08:09:16 yokota Exp $ + * $Id: mse.c,v 1.37 1998/01/24 02:54:22 eivind Exp $ */ /* * Driver for the Logitech and ATI Inport Bus mice for use with 386bsd and @@ -401,7 +401,7 @@ mseread(dev, uio, ioflag) static int mseioctl(dev, cmd, addr, flag, p) dev_t dev; - int cmd; + u_long cmd; caddr_t addr; int flag; struct proc *p; diff --git a/sys/i386/isa/pcaudio.c b/sys/i386/isa/pcaudio.c index c43139b..a574afb 100644 --- a/sys/i386/isa/pcaudio.c +++ b/sys/i386/isa/pcaudio.c @@ -25,7 +25,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: pcaudio.c,v 1.39 1998/01/24 02:54:22 eivind Exp $ + * $Id: pcaudio.c,v 1.40 1998/04/15 17:45:40 bde Exp $ */ #include "pca.h" @@ -390,7 +390,7 @@ pcawrite(dev_t dev, struct uio *uio, int flag) static int -pcaioctl(dev_t dev, int cmd, caddr_t data, int flag, struct proc *p) +pcaioctl(dev_t dev, u_long cmd, caddr_t data, int flag, struct proc *p) { audio_info_t *auptr; diff --git a/sys/i386/isa/pcvt/pcvt_drv.c b/sys/i386/isa/pcvt/pcvt_drv.c index c589b0d..ff6566a 100644 --- a/sys/i386/isa/pcvt/pcvt_drv.c +++ b/sys/i386/isa/pcvt/pcvt_drv.c @@ -585,7 +585,7 @@ pcwrite(Dev_t dev, struct uio *uio, int flag) } int -pcioctl(Dev_t dev, int cmd, caddr_t data, int flag, struct proc *p) +pcioctl(Dev_t dev, u_long cmd, caddr_t data, int flag, struct proc *p) { register error; register struct tty *tp; diff --git a/sys/i386/isa/psm.c b/sys/i386/isa/psm.c index b36a7a7..440347f 100644 --- a/sys/i386/isa/psm.c +++ b/sys/i386/isa/psm.c @@ -20,7 +20,7 @@ * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * - * $Id: psm.c,v 1.51 1998/03/28 10:33:01 bde Exp $ + * $Id: psm.c,v 1.52 1998/04/15 17:06:52 phk Exp $ */ /* @@ -1366,7 +1366,7 @@ unblock_mouse_data(struct psm_softc *sc, int c) } static int -psmioctl(dev_t dev, int cmd, caddr_t addr, int flag, struct proc *p) +psmioctl(dev_t dev, u_long cmd, caddr_t addr, int flag, struct proc *p) { struct psm_softc *sc = psm_softc[PSM_UNIT(dev)]; mousemode_t mode; diff --git a/sys/i386/isa/rc.c b/sys/i386/isa/rc.c index 784527f..31d738c 100644 --- a/sys/i386/isa/rc.c +++ b/sys/i386/isa/rc.c @@ -1090,7 +1090,8 @@ struct rc_softc *rcb; static int rcioctl(dev, cmd, data, flag, p) dev_t dev; -int cmd, flag; +u_long cmd; +int flag; caddr_t data; struct proc *p; { diff --git a/sys/i386/isa/rp.c b/sys/i386/isa/rp.c index e6f2af0..1c6e526 100644 --- a/sys/i386/isa/rp.c +++ b/sys/i386/isa/rp.c @@ -1586,7 +1586,7 @@ rpdtrwakeup(void *chan) int rpioctl(dev, cmd, data, flag, p) dev_t dev; - int cmd; + u_long cmd; caddr_t data; int flag; struct proc *p; diff --git a/sys/i386/isa/scd.c b/sys/i386/isa/scd.c index 6d25f89..339ccfd 100644 --- a/sys/i386/isa/scd.c +++ b/sys/i386/isa/scd.c @@ -41,7 +41,7 @@ */ -/* $Id: scd.c,v 1.35 1998/01/24 02:54:24 eivind Exp $ */ +/* $Id: scd.c,v 1.36 1998/04/15 17:45:48 bde Exp $ */ /* Please send any comments to micke@dynas.se */ @@ -418,7 +418,7 @@ scd_start(int unit) } static int -scdioctl(dev_t dev, int cmd, caddr_t addr, int flags, struct proc *p) +scdioctl(dev_t dev, u_long cmd, caddr_t addr, int flags, struct proc *p) { struct scd_data *cd; int unit,part; diff --git a/sys/i386/isa/si.c b/sys/i386/isa/si.c index 52838cf..92dda3d 100644 --- a/sys/i386/isa/si.c +++ b/sys/i386/isa/si.c @@ -30,7 +30,7 @@ * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN * NO EVENT SHALL THE AUTHORS BE LIABLE. * - * $Id: si.c,v 1.69 1998/03/23 16:27:37 peter Exp $ + * $Id: si.c,v 1.70 1998/03/28 13:24:39 bde Exp $ */ #ifndef lint @@ -1481,7 +1481,7 @@ sidevtotty(dev_t dev) static int siioctl(dev, cmd, data, flag, p) dev_t dev; - int cmd; + u_long cmd; caddr_t data; int flag; struct proc *p; diff --git a/sys/i386/isa/sio.c b/sys/i386/isa/sio.c index 898f080..776a50c 100644 --- a/sys/i386/isa/sio.c +++ b/sys/i386/isa/sio.c @@ -31,7 +31,7 @@ * SUCH DAMAGE. * * from: @(#)com.c 7.5 (Berkeley) 5/16/91 - * $Id: sio.c,v 1.204 1998/06/03 09:43:38 bde Exp $ + * $Id: sio.c,v 1.205 1998/06/03 12:30:10 bde Exp $ */ #include "opt_comconsole.h" @@ -1688,7 +1688,7 @@ cont: static int sioioctl(dev, cmd, data, flag, p) dev_t dev; - int cmd; + u_long cmd; caddr_t data; int flag; struct proc *p; diff --git a/sys/i386/isa/sound/soundcard.c b/sys/i386/isa/sound/soundcard.c index c3cbbc0..c1ffa7d 100644 --- a/sys/i386/isa/sound/soundcard.c +++ b/sys/i386/isa/sound/soundcard.c @@ -218,7 +218,7 @@ sndclose(dev_t dev, int flags, int mode, struct proc * p) } static int -sndioctl(dev_t dev, int cmd, caddr_t arg, int mode, struct proc * p) +sndioctl(dev_t dev, u_long cmd, caddr_t arg, int mode, struct proc * p) { dev = minor(dev); FIX_RETURN(sound_ioctl_sw(dev, &files[dev], cmd, arg)); diff --git a/sys/i386/isa/spigot.c b/sys/i386/isa/spigot.c index bda05c8..4639a14 100644 --- a/sys/i386/isa/spigot.c +++ b/sys/i386/isa/spigot.c @@ -204,7 +204,7 @@ spigot_read(dev_t dev, struct uio *uio, int ioflag) static int -spigot_ioctl(dev_t dev, int cmd, caddr_t data, int flag, struct proc *p) +spigot_ioctl(dev_t dev, u_long cmd, caddr_t data, int flag, struct proc *p) { int error; struct spigot_softc *ss = (struct spigot_softc *)&spigot_softc[UNIT(dev)]; diff --git a/sys/i386/isa/spkr.c b/sys/i386/isa/spkr.c index 952d822..e090bc8 100644 --- a/sys/i386/isa/spkr.c +++ b/sys/i386/isa/spkr.c @@ -4,7 +4,7 @@ * v1.4 by Eric S. Raymond (esr@snark.thyrsus.com) Aug 1993 * modified for FreeBSD by Andrew A. Chernov <ache@astral.msk.su> * - * $Id: spkr.c,v 1.32 1998/02/09 06:08:41 eivind Exp $ + * $Id: spkr.c,v 1.33 1998/02/20 13:46:55 bde Exp $ */ #include "speaker.h" @@ -540,7 +540,7 @@ spkrclose(dev, flags, fmt, p) int spkrioctl(dev, cmd, cmdarg, flags, p) dev_t dev; - int cmd; + u_long cmd; caddr_t cmdarg; int flags; struct proc *p; diff --git a/sys/i386/isa/stallion.c b/sys/i386/isa/stallion.c index 3737b00..d12befc 100644 --- a/sys/i386/isa/stallion.c +++ b/sys/i386/isa/stallion.c @@ -33,7 +33,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: stallion.c,v 1.18 1998/03/28 13:24:43 bde Exp $ + * $Id: stallion.c,v 1.19 1998/04/15 17:45:50 bde Exp $ */ /*****************************************************************************/ @@ -963,7 +963,7 @@ STATIC int stlwrite(dev_t dev, struct uio *uiop, int flag) /*****************************************************************************/ -STATIC int stlioctl(dev_t dev, int cmd, caddr_t data, int flag, struct proc *p) +STATIC int stlioctl(dev_t dev, u_long cmd, caddr_t data, int flag, struct proc *p) { struct termios *newtios, *localtios; struct tty *tp; diff --git a/sys/i386/isa/syscons.c b/sys/i386/isa/syscons.c index c7c02e9..748833b 100644 --- a/sys/i386/isa/syscons.c +++ b/sys/i386/isa/syscons.c @@ -25,7 +25,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: syscons.c,v 1.260 1998/04/17 10:03:11 des Exp $ + * $Id: syscons.c,v 1.261 1998/05/17 11:52:18 phk Exp $ */ #include "sc.h" @@ -984,7 +984,7 @@ scparam(struct tty *tp, struct termios *t) } int -scioctl(dev_t dev, int cmd, caddr_t data, int flag, struct proc *p) +scioctl(dev_t dev, u_long cmd, caddr_t data, int flag, struct proc *p) { int error; u_int i; diff --git a/sys/i386/isa/wcd.c b/sys/i386/isa/wcd.c index 88f74d5..d961964 100644 --- a/sys/i386/isa/wcd.c +++ b/sys/i386/isa/wcd.c @@ -13,7 +13,7 @@ * all derivative works or modified versions. * * From: Version 1.9, Mon Oct 9 20:27:42 MSK 1995 - * $Id: wcd.c,v 1.51 1998/02/09 06:08:43 eivind Exp $ + * $Id: wcd.c,v 1.52 1998/04/15 17:45:53 bde Exp $ */ #include "wdc.h" @@ -742,7 +742,7 @@ static __inline void lba2msf (int lba, u_char *m, u_char *s, u_char *f) * Perform special action on behalf of the user. * Knows about the internals of this device */ -int wcdioctl (dev_t dev, int cmd, caddr_t addr, int flag, struct proc *p) +int wcdioctl (dev_t dev, u_long cmd, caddr_t addr, int flag, struct proc *p) { int lun = dkunit(dev); struct wcd *t = wcdtab[lun]; diff --git a/sys/i386/isa/wd.c b/sys/i386/isa/wd.c index 36e1d4f..367dfb9 100644 --- a/sys/i386/isa/wd.c +++ b/sys/i386/isa/wd.c @@ -34,7 +34,7 @@ * SUCH DAMAGE. * * from: @(#)wd.c 7.2 (Berkeley) 5/9/91 - * $Id: wd.c,v 1.166 1998/05/07 01:15:23 julian Exp $ + * $Id: wd.c,v 1.167 1998/05/11 15:30:43 sos Exp $ */ /* TODO: @@ -2127,7 +2127,7 @@ wdclose(dev_t dev, int flags, int fmt, struct proc *p) } int -wdioctl(dev_t dev, int cmd, caddr_t addr, int flags, struct proc *p) +wdioctl(dev_t dev, u_long cmd, caddr_t addr, int flags, struct proc *p) { int lunit = dkunit(dev); register struct disk *du; diff --git a/sys/i386/isa/wfd.c b/sys/i386/isa/wfd.c index ed84f5f..f63ebaa 100644 --- a/sys/i386/isa/wfd.c +++ b/sys/i386/isa/wfd.c @@ -23,7 +23,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: wfd.c,v 1.8 1998/02/13 22:41:00 pst Exp $ + * $Id: wfd.c,v 1.9 1998/03/20 23:14:52 msmith Exp $ */ /* @@ -617,7 +617,7 @@ static int wfd_request_wait (struct wfd *t, u_char cmd, u_char a1, u_char a2, * Perform special action on behalf of the user. * Knows about the internals of this device */ -int wfdioctl (dev_t dev, int cmd, caddr_t addr, int flag, struct proc *p) +int wfdioctl (dev_t dev, u_long cmd, caddr_t addr, int flag, struct proc *p) { int lun = UNIT(dev); struct wfd *t = wfdtab[lun]; diff --git a/sys/i386/isa/wt.c b/sys/i386/isa/wt.c index 3f4e735..9c317a6 100644 --- a/sys/i386/isa/wt.c +++ b/sys/i386/isa/wt.c @@ -20,7 +20,7 @@ * the original CMU copyright notice. * * Version 1.3, Thu Nov 11 12:09:13 MSK 1993 - * $Id: wt.c,v 1.42 1997/12/02 21:06:34 phk Exp $ + * $Id: wt.c,v 1.43 1998/01/24 02:54:28 eivind Exp $ * */ @@ -423,7 +423,7 @@ done: * ioctl (int fd, MTIOCTOP, struct mtop *buf) -- do BSD-like op */ int -wtioctl (dev_t dev, int cmd, caddr_t arg, int flags, struct proc *p) +wtioctl (dev_t dev, u_long cmd, caddr_t arg, int flags, struct proc *p) { int u = minor (dev) & T_UNIT; wtinfo_t *t = wttab + u; |