summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsos <sos@FreeBSD.org>2004-03-15 13:17:24 +0000
committersos <sos@FreeBSD.org>2004-03-15 13:17:24 +0000
commit56797a08a50c5cc987c6c3f9c1f7225e88e0b8f2 (patch)
treeb42559be8c66dc29aa85e2ba3d0e377fa212ec08
parentaae1ea0f99d4152fcbeda38746f9a1b81bf4c45c (diff)
downloadFreeBSD-src-56797a08a50c5cc987c6c3f9c1f7225e88e0b8f2.zip
FreeBSD-src-56797a08a50c5cc987c6c3f9c1f7225e88e0b8f2.tar.gz
Add SATA support fields
-rw-r--r--sys/sys/ata.h18
1 files changed, 14 insertions, 4 deletions
diff --git a/sys/sys/ata.h b/sys/sys/ata.h
index 30f8131..68acf3f 100644
--- a/sys/sys/ata.h
+++ b/sys/sys/ata.h
@@ -1,5 +1,5 @@
/*-
- * Copyright (c) 2000 - 2003 Søren Schmidt <sos@FreeBSD.org>
+ * Copyright (c) 2000 - 2004 Søren Schmidt <sos@FreeBSD.org>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -105,10 +105,20 @@ struct ata_params {
/*075*/ u_int16_t queue;
#define ATA_QUEUE_LEN(x) ((x) & 0x001f)
- u_int16_t reserved76;
+ u_int16_t satacapabilities;
+#define ATA_SATA_GEN1 0x0002
+#define ATA_SATA_GEN2 0x0004
+#define ATA_SUPPORT_NCQ 0x0100
+#define ATA_SUPPORT_IFPWRMNGTRCV 0x0200
+
u_int16_t reserved77;
- u_int16_t reserved78;
- u_int16_t reserved79;
+ u_int16_t satasupport;
+#define ATA_SUPPORT_NONZERO 0x0002
+#define ATA_SUPPORT_AUTOACTIVATE 0x0004
+#define ATA_SUPPORT_IFPWRMNGT 0x0008
+#define ATA_SUPPORT_INORDERDATA 0x0010
+ u_int16_t sataenabled;
+
/*080*/ u_int16_t version_major;
/*081*/ u_int16_t version_minor;
OpenPOWER on IntegriCloud