diff options
author | Kenneth R Westerback <krw@cvs.openbsd.org> | 2019-11-29 14:06:22 +0000 |
---|---|---|
committer | Kenneth R Westerback <krw@cvs.openbsd.org> | 2019-11-29 14:06:22 +0000 |
commit | 4a4b71da82bc52d8fa238138046c219d8d7d162e (patch) | |
tree | 346d9af61322abae2a4ce56ff1fe42eb0dfcd4db /sys/scsi/ch.c | |
parent | 58bd8ad3bcb7cf94a7dea4f16ed2ec37e8176d9c (diff) |
Add defines for changer mode page codes. Move AUDIO_PAGE define to
nestle amoung its friends.
Diffstat (limited to 'sys/scsi/ch.c')
-rw-r--r-- | sys/scsi/ch.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/scsi/ch.c b/sys/scsi/ch.c index 8e8203a76a9..a43347a6c89 100644 --- a/sys/scsi/ch.c +++ b/sys/scsi/ch.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ch.c,v 1.60 2019/11/28 16:27:35 krw Exp $ */ +/* $OpenBSD: ch.c,v 1.61 2019/11/29 14:06:21 krw Exp $ */ /* $NetBSD: ch.c,v 1.26 1997/02/21 22:06:52 thorpej Exp $ */ /* @@ -672,7 +672,7 @@ ch_get_params(struct ch_softc *sc, int flags) /* * Grab info from the element address assignment page (0x1d). */ - error = scsi_do_mode_sense(sc->sc_link, 0x1d, data, + error = scsi_do_mode_sense(sc->sc_link, EA_PAGE, data, (void **)&ea, NULL, NULL, NULL, sizeof(*ea), flags, &big); if (error == 0 && ea == NULL) error = EIO; @@ -699,7 +699,7 @@ ch_get_params(struct ch_softc *sc, int flags) /* * Grab info from the capabilities page (0x1f). */ - error = scsi_do_mode_sense(sc->sc_link, 0x1f, data, + error = scsi_do_mode_sense(sc->sc_link, CAP_PAGE, data, (void **)&cap, NULL, NULL, NULL, sizeof(*cap), flags, &big); if (cap == NULL) error = EIO; |