|
|
| version 1.8, 2004/05/13 23:49:16 | version 1.9, 2004/05/19 22:52:42 |
|---|---|
| Line 106 gpprobe(struct isa_device *dvp) | Line 106 gpprobe(struct isa_device *dvp) |
| { | { |
| int status; | int status; |
| struct gpib_softc *sc = &gpib_sc; | struct gpib_softc *sc = &gpib_sc; |
| static int once; | |
| if (!once++) | |
| cdevsw_add(&gp_cdevsw); | |
| gpib_port = dvp->id_iobase; | gpib_port = dvp->id_iobase; |
| status=1; | status=1; |
| Line 141 gpattach(isdp) | Line 137 gpattach(isdp) |
| printf ("gp%d: type AT-GPIB chip NAT4882A\n",sc->sc_unit); | printf ("gp%d: type AT-GPIB chip NAT4882A\n",sc->sc_unit); |
| sc->sc_flags |=ATTACHED; | sc->sc_flags |=ATTACHED; |
| make_dev(&gp_cdevsw, 0, 0, 0, 0600, "gp"); | cdevsw_add(&gp_cdevsw, -1, sc->sc_unit); |
| make_dev(&gp_cdevsw, sc->sc_unit, 0, 0, 0600, "gp"); | |
| return (1); | return (1); |
| } | } |