]> Pileus Git - ~andy/linux/blobdiff - include/scsi/sas.h
lockref: allow relaxed cmpxchg64 variant for lockless updates
[~andy/linux] / include / scsi / sas.h
index a577a833603db88adbeb11e5b91964a2fb881483..0d2607d1238753f951e43e6b278735971413423c 100644 (file)
@@ -90,19 +90,22 @@ enum sas_oob_mode {
 };
 
 /* See sas_discover.c if you plan on changing these */
-enum sas_dev_type {
-       NO_DEVICE   = 0,          /* protocol */
-       SAS_END_DEV = 1,          /* protocol */
-       EDGE_DEV    = 2,          /* protocol */
-       FANOUT_DEV  = 3,          /* protocol */
-       SAS_HA      = 4,
-       SATA_DEV    = 5,
-       SATA_PM     = 7,
-       SATA_PM_PORT= 8,
-       SATA_PENDING  = 9,
+enum sas_device_type {
+       /* these are SAS protocol defined (attached device type field) */
+       SAS_PHY_UNUSED = 0,
+       SAS_END_DEVICE = 1,
+       SAS_EDGE_EXPANDER_DEVICE = 2,
+       SAS_FANOUT_EXPANDER_DEVICE = 3,
+       /* these are internal to libsas */
+       SAS_HA = 4,
+       SAS_SATA_DEV = 5,
+       SAS_SATA_PM = 7,
+       SAS_SATA_PM_PORT = 8,
+       SAS_SATA_PENDING = 9,
 };
 
 enum sas_protocol {
+       SAS_PROTOCOL_NONE               = 0,
        SAS_PROTOCOL_SATA               = 0x01,
        SAS_PROTOCOL_SMP                = 0x02,
        SAS_PROTOCOL_STP                = 0x04,