diff options
| author | Marc G. Fournier <scrappy@FreeBSD.org> | 1996-03-28 14:29:52 +0000 |
|---|---|---|
| committer | Marc G. Fournier <scrappy@FreeBSD.org> | 1996-03-28 14:29:52 +0000 |
| commit | 6e18ce467629720239a3dbefe42ee64bc0c2034a (patch) | |
| tree | a799d7ab93b91102069e46ed96392e309b7b469f /sys/gnu/i386 | |
| parent | 14689d6f4fb0ddc4e371db4a963401fbefc71261 (diff) | |
Notes
Diffstat (limited to 'sys/gnu/i386')
| -rw-r--r-- | sys/gnu/i386/isa/dgb.c | 39 | ||||
| -rw-r--r-- | sys/gnu/i386/isa/nic3008.c | 14 | ||||
| -rw-r--r-- | sys/gnu/i386/isa/nic3009.c | 14 |
3 files changed, 37 insertions, 30 deletions
diff --git a/sys/gnu/i386/isa/dgb.c b/sys/gnu/i386/isa/dgb.c index 42810f06dc25..ec67dce07afd 100644 --- a/sys/gnu/i386/isa/dgb.c +++ b/sys/gnu/i386/isa/dgb.c @@ -1,5 +1,5 @@ /*- - * dgb.c $Id: dgb.c,v 1.14 1995/12/17 21:14:29 phk Exp $ + * dgb.c $Id: dgb.c,v 1.15 1995/12/29 13:21:10 bde Exp $ * * Digiboard driver. * @@ -457,7 +457,6 @@ dgbattach(dev) ushort *pstat; int lowwater; int nports=0; - char name[32]; if(sc->status!=ENABLED) { DPRINT2("dbg%d: try to attach a disabled card\n",unit); @@ -855,25 +854,29 @@ load_fep: port->it_out = port->it_in; #ifdef DEVFS /*XXX*/ /* fix the minor numbers */ - sprintf(name,"dgb%d.%d",unit,i); - port->devfs_token.tty = devfs_add_devsw("/",name, - &dgb_cdevsw,(unit*32)+i, /*mytical number */ - DV_CHR, 0, 0, 0600); + port->devfs_token.tty = + devfs_add_devswf(&dgb_cdevsw, + (unit*32)+i,/*mytical number*/ + DV_CHR, 0, 0, 0600, "dgb%d.%d", unit, + i); - sprintf(name,"idgb%d.%d",unit,i); - port->devfs_token.tty = devfs_add_devsw("/",name, - &dgb_cdevsw,(unit*32)+i + 64, /*mytical number */ - DV_CHR, 0, 0, 0600); + port->devfs_token.tty = + devfs_add_devswf(&dgb_cdevsw, + (unit*32)+i+64,/*mytical number*/ + DV_CHR, 0, 0, 0600, idgb%d.%d", unit, + i); - sprintf(name,"ldgb%d.%d",unit,i); - port->devfs_token.tty = devfs_add_devsw("/",name, - &dgb_cdevsw,(unit*32)+i + 128, /*mytical number */ - DV_CHR, 0, 0, 0600); + port->devfs_token.tty = + devfs_add_devswf(&dgb_cdevsw, + (unit*32)+i+128,/*mytical number*/ + DV_CHR, 0, 0, 0600, "ldgb%d.%d", unit, + i); - sprintf(name,"dgbcua%d.%d",unit,i); - port->devfs_token.tty = devfs_add_devsw("/",name, - &dgb_cdevsw,(unit*32)+i + 192, /*mytical number */ - DV_CHR, 0, 0, 0600); + port->devfs_token.tty = + devfs_add_devswf(&dgb_cdevsw, + (unit*32)+i+192,/*mytical number*/ + DV_CHR, 0, 0, 0600, "dgbcua%d.%d", + unit, i); #endif } diff --git a/sys/gnu/i386/isa/nic3008.c b/sys/gnu/i386/isa/nic3008.c index 27bd01bedfd4..b3b890749531 100644 --- a/sys/gnu/i386/isa/nic3008.c +++ b/sys/gnu/i386/isa/nic3008.c @@ -1,6 +1,6 @@ -static char nic38_id[] = "@(#)$Id: nic3008.c,v 1.13 1995/12/08 23:19:29 phk Exp $"; +static char nic38_id[] = "@(#)$Id: nic3008.c,v 1.14 1995/12/17 21:14:34 phk Exp $"; /******************************************************************************* - * II - Version 0.1 $Revision: 1.13 $ $State: Exp $ + * II - Version 0.1 $Revision: 1.14 $ $State: Exp $ * * Copyright 1994 Dietmar Friede ******************************************************************************* @@ -10,6 +10,9 @@ static char nic38_id[] = "@(#)$Id: nic3008.c,v 1.13 1995/12/08 23:19:29 phk * ******************************************************************************* * $Log: nic3008.c,v $ + * Revision 1.14 1995/12/17 21:14:34 phk + * Staticize. + * * Revision 1.13 1995/12/08 23:19:29 phk * Julian forgot to make the *devsw structures static. * @@ -265,7 +268,6 @@ nicattach(struct isa_device * is) dpr_type *dpr; int cn; isdn_ctrl_t *ctrl0, *ctrl1; - char name[32]; sc = &nic_sc[is->id_unit]; dpr = sc->sc_dpr; @@ -298,9 +300,9 @@ nicattach(struct isa_device * is) dpr->int_flg_pc = 0xff; reset_req(sc, MBX_MU, 4); #ifdef DEVFS - sprintf(name,"nic%d",is->id_unit); - sc->devfs_token = devfs_add_devsw( "/isdn", name, - &nic_cdevsw,is->id_unit, DV_CHR, 0, 0, 0600 ); + sc->devfs_token = + devfs_add_devswf(&nic_cdevsw, is->id_unit, DV_CHR, 0, 0, + 0600, "/isdn/nic%d", is->id_unit); #endif return (1); } diff --git a/sys/gnu/i386/isa/nic3009.c b/sys/gnu/i386/isa/nic3009.c index 75d0440329fc..314b645af53d 100644 --- a/sys/gnu/i386/isa/nic3009.c +++ b/sys/gnu/i386/isa/nic3009.c @@ -1,6 +1,6 @@ -static char nic39_id[] = "@(#)$Id: nic3009.c,v 1.13 1995/12/08 23:19:30 phk Exp $"; +static char nic39_id[] = "@(#)$Id: nic3009.c,v 1.14 1995/12/17 21:14:36 phk Exp $"; /******************************************************************************* - * II - Version 0.1 $Revision: 1.13 $ $State: Exp $ + * II - Version 0.1 $Revision: 1.14 $ $State: Exp $ * * Copyright 1994 Dietmar Friede ******************************************************************************* @@ -10,6 +10,9 @@ static char nic39_id[] = "@(#)$Id: nic3009.c,v 1.13 1995/12/08 23:19:30 phk * ******************************************************************************* * $Log: nic3009.c,v $ + * Revision 1.14 1995/12/17 21:14:36 phk + * Staticize. + * * Revision 1.13 1995/12/08 23:19:30 phk * Julian forgot to make the *devsw structures static. * @@ -271,7 +274,6 @@ nnicattach(struct isa_device * is) struct nnic_softc *sc; int cn; isdn_ctrl_t *ctrl0, *ctrl1; - char name[32]; sc = &nnic_sc[is->id_unit]; sc->sc_ctrl = -1; @@ -299,9 +301,9 @@ nnicattach(struct isa_device * is) ctrl0->o_len = ctrl1->o_len = -1; sc->sc_flags= LOAD_ENTITY; #ifdef DEVFS - sprintf(name,"nnic%d",is->id_unit); - sc->devfs_token = devfs_add_devsw("/isdn",name, - &nnic_cdevsw, is->id_unit, DV_CHR, 0, 0, 0600 ); + sc->devfs_token = + devfs_add_devswf(&nnic_cdevsw, is->id_unit, DV_CHR, 0, 0, + 0600, "/isdn/nnic%d", is->id_unit); #endif return (1); |
