diff options
| author | Poul-Henning Kamp <phk@FreeBSD.org> | 2004-06-16 09:47:26 +0000 |
|---|---|---|
| committer | Poul-Henning Kamp <phk@FreeBSD.org> | 2004-06-16 09:47:26 +0000 |
| commit | 89c9c53da05197f657dfe8e0bdda6941a2e9a0d4 (patch) | |
| tree | 624c885995e84df6decddd3291c60a15e50e3c85 /sys/dev/asr | |
| parent | d420fcda27350a7e2d3d8f3b2c9de6aa74df2e30 (diff) | |
Notes
Diffstat (limited to 'sys/dev/asr')
| -rw-r--r-- | sys/dev/asr/asr.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/sys/dev/asr/asr.c b/sys/dev/asr/asr.c index fa29dd8fa8f6..8b403473c8ea 100644 --- a/sys/dev/asr/asr.c +++ b/sys/dev/asr/asr.c @@ -358,7 +358,7 @@ typedef struct Asr_softc { /* Links into other parents and HBAs */ struct Asr_softc * ha_next; /* HBA list */ - dev_t ha_devt; + struct cdev *ha_devt; } Asr_softc_t; static Asr_softc_t * Asr_softc; @@ -371,11 +371,11 @@ static Asr_softc_t * Asr_softc; static int asr_probe(device_t tag); static int asr_attach(device_t tag); -static int asr_ioctl(dev_t dev, u_long cmd, caddr_t data, int flag, +static int asr_ioctl(struct cdev *dev, u_long cmd, caddr_t data, int flag, struct thread *td); -static int asr_open(dev_t dev, int32_t flags, int32_t ifmt, +static int asr_open(struct cdev *dev, int32_t flags, int32_t ifmt, struct thread *td); -static int asr_close(dev_t dev, int flags, int ifmt, struct thread *td); +static int asr_close(struct cdev *dev, int flags, int ifmt, struct thread *td); static int asr_intr(Asr_softc_t *sc); static void asr_timeout(void *arg); static int ASR_init(Asr_softc_t *sc); @@ -2999,7 +2999,7 @@ typedef U32 DPT_RTN_T; static u_int8_t ASR_ctlr_held; static int -asr_open(dev_t dev, int32_t flags, int32_t ifmt, struct thread *td) +asr_open(struct cdev *dev, int32_t flags, int32_t ifmt, struct thread *td) { int s; int error; @@ -3018,7 +3018,7 @@ asr_open(dev_t dev, int32_t flags, int32_t ifmt, struct thread *td) } /* asr_open */ static int -asr_close(dev_t dev, int flags, int ifmt, struct thread *td) +asr_close(struct cdev *dev, int flags, int ifmt, struct thread *td) { ASR_ctlr_held = 0; @@ -3495,7 +3495,7 @@ ASR_queue_i(Asr_softc_t *sc, PI2O_MESSAGE_FRAME Packet) /*----------------------------------------------------------------------*/ static int -asr_ioctl(dev_t dev, u_long cmd, caddr_t data, int flag, struct thread *td) +asr_ioctl(struct cdev *dev, u_long cmd, caddr_t data, int flag, struct thread *td) { Asr_softc_t *sc = dev->si_drv1; int i, error = 0; |
