summaryrefslogtreecommitdiffstats
path: root/sys/dev/mvs
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>2016-04-17 05:24:36 +0000
committerimp <imp@FreeBSD.org>2016-04-17 05:24:36 +0000
commit692609bdacd8434f57a93b5c32a0f0a6d20bd5c9 (patch)
tree297d25e9d15f253f92052155636bee075b15735c /sys/dev/mvs
parent1821739d94e04a31dfd747ffb9dbc53a450e6363 (diff)
downloadFreeBSD-src-692609bdacd8434f57a93b5c32a0f0a6d20bd5c9.zip
FreeBSD-src-692609bdacd8434f57a93b5c32a0f0a6d20bd5c9.tar.gz
Implement Auxiliary register. Add PIM_ATA_EXT flag to flag that a SIM
can handle it, and add the code to add it to the FIS that's sent to the drive. The mvs driver is the only other ATA driver in the system, and its hardware doesn't appear to support setting the Auxiliary register. Differential Revision: https://reviews.freebsd.org/D5598
Diffstat (limited to 'sys/dev/mvs')
-rw-r--r--sys/dev/mvs/mvs.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/sys/dev/mvs/mvs.c b/sys/dev/mvs/mvs.c
index bdadf39..699c22f 100644
--- a/sys/dev/mvs/mvs.c
+++ b/sys/dev/mvs/mvs.c
@@ -2245,6 +2245,12 @@ mvs_check_ids(device_t dev, union ccb *ccb)
xpt_done(ccb);
return (-1);
}
+ /*
+ * It's a programming error to see AUXILIARY register requests.
+ */
+ KASSERT(ccb->ccb_h.func_code != XPT_ATA_IO ||
+ ((ccb->ataio.ata_flags & ATA_FLAG_AUX) == 0),
+ ("AUX register unsupported"));
return (0);
}
OpenPOWER on IntegriCloud