version 1.71, 2005/07/07 17:51:31 |
version 1.72, 2005/12/11 12:21:14 |
Line 1318 ata_probe_caps(struct ata_drive_datas *d |
|
Line 1318 ata_probe_caps(struct ata_drive_datas *d |
|
|
|
/* management of the /dev/atabus* devices */ |
/* management of the /dev/atabus* devices */ |
int |
int |
atabusopen(dev_t dev, int flag, int fmt, struct proc *p) |
atabusopen(dev_t dev, int flag, int fmt, struct lwp *l) |
{ |
{ |
struct atabus_softc *sc; |
struct atabus_softc *sc; |
int error, unit = minor(dev); |
int error, unit = minor(dev); |
Line 1340 atabusopen(dev_t dev, int flag, int fmt, |
|
Line 1340 atabusopen(dev_t dev, int flag, int fmt, |
|
|
|
|
|
int |
int |
atabusclose(dev_t dev, int flag, int fmt, struct proc *p) |
atabusclose(dev_t dev, int flag, int fmt, struct lwp *l) |
{ |
{ |
struct atabus_softc *sc = atabus_cd.cd_devs[minor(dev)]; |
struct atabus_softc *sc = atabus_cd.cd_devs[minor(dev)]; |
|
|
Line 1352 atabusclose(dev_t dev, int flag, int fmt |
|
Line 1352 atabusclose(dev_t dev, int flag, int fmt |
|
} |
} |
|
|
int |
int |
atabusioctl(dev_t dev, u_long cmd, caddr_t addr, int flag, struct proc *p) |
atabusioctl(dev_t dev, u_long cmd, caddr_t addr, int flag, struct lwp *l) |
{ |
{ |
struct atabus_softc *sc = atabus_cd.cd_devs[minor(dev)]; |
struct atabus_softc *sc = atabus_cd.cd_devs[minor(dev)]; |
struct ata_channel *chp = sc->sc_chan; |
struct ata_channel *chp = sc->sc_chan; |