aboutsummaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorSøren Schmidt <sos@FreeBSD.org>2004-03-15 13:17:24 +0000
committerSøren Schmidt <sos@FreeBSD.org>2004-03-15 13:17:24 +0000
commitad0e7ebfd2b35903d0a06797edf06cb6ecefe8dc (patch)
treeb42559be8c66dc29aa85e2ba3d0e377fa212ec08 /sys
parent7f4704c01d5ff3fd09bfba8b8a6691e21c2e245c (diff)
downloadsrc-ad0e7ebfd2b35903d0a06797edf06cb6ecefe8dc.tar.gz
src-ad0e7ebfd2b35903d0a06797edf06cb6ecefe8dc.zip
Add SATA support fields
Notes
Notes: svn path=/head/; revision=127021
Diffstat (limited to 'sys')
-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 30f8131095aa..68acf3f2f26d 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;