|
|
| version 1.7, 2004/05/13 23:49:15 | version 1.8, 2004/05/19 22:52:42 |
|---|---|
| Line 208 static int | Line 208 static int |
| wtprobe (struct isa_device *id) | wtprobe (struct isa_device *id) |
| { | { |
| wtinfo_t *t = wttab + id->id_unit; | wtinfo_t *t = wttab + id->id_unit; |
| static int once; | |
| if (!once++) | |
| cdevsw_add(&wt_cdevsw); | |
| t->unit = id->id_unit; | t->unit = id->id_unit; |
| t->chan = id->id_drq; | t->chan = id->id_drq; |
| Line 268 wtattach (struct isa_device *id) | Line 264 wtattach (struct isa_device *id) |
| t->dens = -1; /* unknown density */ | t->dens = -1; /* unknown density */ |
| isa_dmainit(t->chan, 1024); | isa_dmainit(t->chan, 1024); |
| cdevsw_add(&wt_cdevsw, -1, id->id_unit); | |
| make_dev(&wt_cdevsw, id->id_unit, 0, 0, 0600, "rwt%d", id->id_unit); | make_dev(&wt_cdevsw, id->id_unit, 0, 0, 0600, "rwt%d", id->id_unit); |
| return (1); | return (1); |
| } | } |