sas.h 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728
  1. /*
  2. * SAS structures and definitions header file
  3. *
  4. * Copyright (C) 2005 Adaptec, Inc. All rights reserved.
  5. * Copyright (C) 2005 Luben Tuikov <luben_tuikov@adaptec.com>
  6. *
  7. * This file is licensed under GPLv2.
  8. *
  9. * This program is free software; you can redistribute it and/or
  10. * modify it under the terms of the GNU General Public License as
  11. * published by the Free Software Foundation; either version 2 of the
  12. * License, or (at your option) any later version.
  13. *
  14. * This program is distributed in the hope that it will be useful, but
  15. * WITHOUT ANY WARRANTY; without even the implied warranty of
  16. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  17. * General Public License for more details.
  18. *
  19. * You should have received a copy of the GNU General Public License
  20. * along with this program; if not, write to the Free Software
  21. * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
  22. * USA
  23. *
  24. */
  25. #ifndef _SAS_H_
  26. #define _SAS_H_
  27. #include <linux/types.h>
  28. #include <asm/byteorder.h>
  29. #define SAS_ADDR_SIZE 8
  30. #define HASHED_SAS_ADDR_SIZE 3
  31. #define SAS_ADDR(_sa) ((unsigned long long) be64_to_cpu(*(__be64 *)(_sa)))
  32. #define SMP_REQUEST 0x40
  33. #define SMP_RESPONSE 0x41
  34. #define SSP_DATA 0x01
  35. #define SSP_XFER_RDY 0x05
  36. #define SSP_COMMAND 0x06
  37. #define SSP_RESPONSE 0x07
  38. #define SSP_TASK 0x16
  39. #define SMP_REPORT_GENERAL 0x00
  40. #define SMP_REPORT_MANUF_INFO 0x01
  41. #define SMP_READ_GPIO_REG 0x02
  42. #define SMP_DISCOVER 0x10
  43. #define SMP_REPORT_PHY_ERR_LOG 0x11
  44. #define SMP_REPORT_PHY_SATA 0x12
  45. #define SMP_REPORT_ROUTE_INFO 0x13
  46. #define SMP_WRITE_GPIO_REG 0x82
  47. #define SMP_CONF_ROUTE_INFO 0x90
  48. #define SMP_PHY_CONTROL 0x91
  49. #define SMP_PHY_TEST_FUNCTION 0x92
  50. #define SMP_RESP_FUNC_ACC 0x00
  51. #define SMP_RESP_FUNC_UNK 0x01
  52. #define SMP_RESP_FUNC_FAILED 0x02
  53. #define SMP_RESP_INV_FRM_LEN 0x03
  54. #define SMP_RESP_NO_PHY 0x10
  55. #define SMP_RESP_NO_INDEX 0x11
  56. #define SMP_RESP_PHY_NO_SATA 0x12
  57. #define SMP_RESP_PHY_UNK_OP 0x13
  58. #define SMP_RESP_PHY_UNK_TESTF 0x14
  59. #define SMP_RESP_PHY_TEST_INPROG 0x15
  60. #define SMP_RESP_PHY_VACANT 0x16
  61. /* SAM TMFs */
  62. #define TMF_ABORT_TASK 0x01
  63. #define TMF_ABORT_TASK_SET 0x02
  64. #define TMF_CLEAR_TASK_SET 0x04
  65. #define TMF_LU_RESET 0x08
  66. #define TMF_CLEAR_ACA 0x40
  67. #define TMF_QUERY_TASK 0x80
  68. /* SAS TMF responses */
  69. #define TMF_RESP_FUNC_COMPLETE 0x00
  70. #define TMF_RESP_INVALID_FRAME 0x02
  71. #define TMF_RESP_FUNC_ESUPP 0x04
  72. #define TMF_RESP_FUNC_FAILED 0x05
  73. #define TMF_RESP_FUNC_SUCC 0x08
  74. #define TMF_RESP_NO_LUN 0x09
  75. #define TMF_RESP_OVERLAPPED_TAG 0x0A
  76. enum sas_oob_mode {
  77. OOB_NOT_CONNECTED,
  78. SATA_OOB_MODE,
  79. SAS_OOB_MODE
  80. };
  81. /* See sas_discover.c if you plan on changing these */
  82. enum sas_device_type {
  83. /* these are SAS protocol defined (attached device type field) */
  84. SAS_PHY_UNUSED = 0,
  85. SAS_END_DEVICE = 1,
  86. SAS_EDGE_EXPANDER_DEVICE = 2,
  87. SAS_FANOUT_EXPANDER_DEVICE = 3,
  88. /* these are internal to libsas */
  89. SAS_HA = 4,
  90. SAS_SATA_DEV = 5,
  91. SAS_SATA_PM = 7,
  92. SAS_SATA_PM_PORT = 8,
  93. SAS_SATA_PENDING = 9,
  94. };
  95. enum sas_protocol {
  96. SAS_PROTOCOL_NONE = 0,
  97. SAS_PROTOCOL_SATA = 0x01,
  98. SAS_PROTOCOL_SMP = 0x02,
  99. SAS_PROTOCOL_STP = 0x04,
  100. SAS_PROTOCOL_SSP = 0x08,
  101. SAS_PROTOCOL_ALL = 0x0E,
  102. SAS_PROTOCOL_STP_ALL = SAS_PROTOCOL_STP|SAS_PROTOCOL_SATA,
  103. };
  104. /* From the spec; local phys only */
  105. enum phy_func {
  106. PHY_FUNC_NOP,
  107. PHY_FUNC_LINK_RESET, /* Enables the phy */
  108. PHY_FUNC_HARD_RESET,
  109. PHY_FUNC_DISABLE,
  110. PHY_FUNC_CLEAR_ERROR_LOG = 5,
  111. PHY_FUNC_CLEAR_AFFIL,
  112. PHY_FUNC_TX_SATA_PS_SIGNAL,
  113. PHY_FUNC_RELEASE_SPINUP_HOLD = 0x10, /* LOCAL PORT ONLY! */
  114. PHY_FUNC_SET_LINK_RATE,
  115. PHY_FUNC_GET_EVENTS,
  116. };
  117. /* SAS LLDD would need to report only _very_few_ of those, like BROADCAST.
  118. * Most of those are here for completeness.
  119. */
  120. enum sas_prim {
  121. SAS_PRIM_AIP_NORMAL = 1,
  122. SAS_PRIM_AIP_R0 = 2,
  123. SAS_PRIM_AIP_R1 = 3,
  124. SAS_PRIM_AIP_R2 = 4,
  125. SAS_PRIM_AIP_WC = 5,
  126. SAS_PRIM_AIP_WD = 6,
  127. SAS_PRIM_AIP_WP = 7,
  128. SAS_PRIM_AIP_RWP = 8,
  129. SAS_PRIM_BC_CH = 9,
  130. SAS_PRIM_BC_RCH0 = 10,
  131. SAS_PRIM_BC_RCH1 = 11,
  132. SAS_PRIM_BC_R0 = 12,
  133. SAS_PRIM_BC_R1 = 13,
  134. SAS_PRIM_BC_R2 = 14,
  135. SAS_PRIM_BC_R3 = 15,
  136. SAS_PRIM_BC_R4 = 16,
  137. SAS_PRIM_NOTIFY_ENSP= 17,
  138. SAS_PRIM_NOTIFY_R0 = 18,
  139. SAS_PRIM_NOTIFY_R1 = 19,
  140. SAS_PRIM_NOTIFY_R2 = 20,
  141. SAS_PRIM_CLOSE_CLAF = 21,
  142. SAS_PRIM_CLOSE_NORM = 22,
  143. SAS_PRIM_CLOSE_R0 = 23,
  144. SAS_PRIM_CLOSE_R1 = 24,
  145. SAS_PRIM_OPEN_RTRY = 25,
  146. SAS_PRIM_OPEN_RJCT = 26,
  147. SAS_PRIM_OPEN_ACPT = 27,
  148. SAS_PRIM_DONE = 28,
  149. SAS_PRIM_BREAK = 29,
  150. SATA_PRIM_DMAT = 33,
  151. SATA_PRIM_PMNAK = 34,
  152. SATA_PRIM_PMACK = 35,
  153. SATA_PRIM_PMREQ_S = 36,
  154. SATA_PRIM_PMREQ_P = 37,
  155. SATA_SATA_R_ERR = 38,
  156. };
  157. enum sas_open_rej_reason {
  158. /* Abandon open */
  159. SAS_OREJ_UNKNOWN = 0,
  160. SAS_OREJ_BAD_DEST = 1,
  161. SAS_OREJ_CONN_RATE = 2,
  162. SAS_OREJ_EPROTO = 3,
  163. SAS_OREJ_RESV_AB0 = 4,
  164. SAS_OREJ_RESV_AB1 = 5,
  165. SAS_OREJ_RESV_AB2 = 6,
  166. SAS_OREJ_RESV_AB3 = 7,
  167. SAS_OREJ_WRONG_DEST= 8,
  168. SAS_OREJ_STP_NORES = 9,
  169. /* Retry open */
  170. SAS_OREJ_NO_DEST = 10,
  171. SAS_OREJ_PATH_BLOCKED = 11,
  172. SAS_OREJ_RSVD_CONT0 = 12,
  173. SAS_OREJ_RSVD_CONT1 = 13,
  174. SAS_OREJ_RSVD_INIT0 = 14,
  175. SAS_OREJ_RSVD_INIT1 = 15,
  176. SAS_OREJ_RSVD_STOP0 = 16,
  177. SAS_OREJ_RSVD_STOP1 = 17,
  178. SAS_OREJ_RSVD_RETRY = 18,
  179. };
  180. enum sas_gpio_reg_type {
  181. SAS_GPIO_REG_CFG = 0,
  182. SAS_GPIO_REG_RX = 1,
  183. SAS_GPIO_REG_RX_GP = 2,
  184. SAS_GPIO_REG_TX = 3,
  185. SAS_GPIO_REG_TX_GP = 4,
  186. };
  187. struct dev_to_host_fis {
  188. u8 fis_type; /* 0x34 */
  189. u8 flags;
  190. u8 status;
  191. u8 error;
  192. u8 lbal;
  193. union { u8 lbam; u8 byte_count_low; };
  194. union { u8 lbah; u8 byte_count_high; };
  195. u8 device;
  196. u8 lbal_exp;
  197. u8 lbam_exp;
  198. u8 lbah_exp;
  199. u8 _r_a;
  200. union { u8 sector_count; u8 interrupt_reason; };
  201. u8 sector_count_exp;
  202. u8 _r_b;
  203. u8 _r_c;
  204. u32 _r_d;
  205. } __attribute__ ((packed));
  206. struct host_to_dev_fis {
  207. u8 fis_type; /* 0x27 */
  208. u8 flags;
  209. u8 command;
  210. u8 features;
  211. u8 lbal;
  212. union { u8 lbam; u8 byte_count_low; };
  213. union { u8 lbah; u8 byte_count_high; };
  214. u8 device;
  215. u8 lbal_exp;
  216. u8 lbam_exp;
  217. u8 lbah_exp;
  218. u8 features_exp;
  219. union { u8 sector_count; u8 interrupt_reason; };
  220. u8 sector_count_exp;
  221. u8 _r_a;
  222. u8 control;
  223. u32 _r_b;
  224. } __attribute__ ((packed));
  225. /* Prefer to have code clarity over header file clarity.
  226. */
  227. #ifdef __LITTLE_ENDIAN_BITFIELD
  228. struct sas_identify_frame {
  229. /* Byte 0 */
  230. u8 frame_type:4;
  231. u8 dev_type:3;
  232. u8 _un0:1;
  233. /* Byte 1 */
  234. u8 _un1;
  235. /* Byte 2 */
  236. union {
  237. struct {
  238. u8 _un20:1;
  239. u8 smp_iport:1;
  240. u8 stp_iport:1;
  241. u8 ssp_iport:1;
  242. u8 _un247:4;
  243. };
  244. u8 initiator_bits;
  245. };
  246. /* Byte 3 */
  247. union {
  248. struct {
  249. u8 _un30:1;
  250. u8 smp_tport:1;
  251. u8 stp_tport:1;
  252. u8 ssp_tport:1;
  253. u8 _un347:4;
  254. };
  255. u8 target_bits;
  256. };
  257. /* Byte 4 - 11 */
  258. u8 _un4_11[8];
  259. /* Byte 12 - 19 */
  260. u8 sas_addr[SAS_ADDR_SIZE];
  261. /* Byte 20 */
  262. u8 phy_id;
  263. u8 _un21_27[7];
  264. __be32 crc;
  265. } __attribute__ ((packed));
  266. struct ssp_frame_hdr {
  267. u8 frame_type;
  268. u8 hashed_dest_addr[HASHED_SAS_ADDR_SIZE];
  269. u8 _r_a;
  270. u8 hashed_src_addr[HASHED_SAS_ADDR_SIZE];
  271. __be16 _r_b;
  272. u8 changing_data_ptr:1;
  273. u8 retransmit:1;
  274. u8 retry_data_frames:1;
  275. u8 _r_c:5;
  276. u8 num_fill_bytes:2;
  277. u8 _r_d:6;
  278. u32 _r_e;
  279. __be16 tag;
  280. __be16 tptt;
  281. __be32 data_offs;
  282. } __attribute__ ((packed));
  283. struct ssp_response_iu {
  284. u8 _r_a[10];
  285. u8 datapres:2;
  286. u8 _r_b:6;
  287. u8 status;
  288. u32 _r_c;
  289. __be32 sense_data_len;
  290. __be32 response_data_len;
  291. u8 resp_data[0];
  292. u8 sense_data[0];
  293. } __attribute__ ((packed));
  294. struct ssp_command_iu {
  295. u8 lun[8];
  296. u8 _r_a;
  297. union {
  298. struct {
  299. u8 attr:3;
  300. u8 prio:4;
  301. u8 efb:1;
  302. };
  303. u8 efb_prio_attr;
  304. };
  305. u8 _r_b;
  306. u8 _r_c:2;
  307. u8 add_cdb_len:6;
  308. u8 cdb[16];
  309. u8 add_cdb[0];
  310. } __attribute__ ((packed));
  311. struct xfer_rdy_iu {
  312. __be32 requested_offset;
  313. __be32 write_data_len;
  314. __be32 _r_a;
  315. } __attribute__ ((packed));
  316. struct ssp_tmf_iu {
  317. u8 lun[8];
  318. u16 _r_a;
  319. u8 tmf;
  320. u8 _r_b;
  321. __be16 tag;
  322. u8 _r_c[14];
  323. } __attribute__ ((packed));
  324. /* ---------- SMP ---------- */
  325. struct report_general_resp {
  326. __be16 change_count;
  327. __be16 route_indexes;
  328. u8 _r_a;
  329. u8 num_phys;
  330. u8 conf_route_table:1;
  331. u8 configuring:1;
  332. u8 config_others:1;
  333. u8 orej_retry_supp:1;
  334. u8 stp_cont_awt:1;
  335. u8 self_config:1;
  336. u8 zone_config:1;
  337. u8 t2t_supp:1;
  338. u8 _r_c;
  339. u8 enclosure_logical_id[8];
  340. u8 _r_d[12];
  341. } __attribute__ ((packed));
  342. struct discover_resp {
  343. u8 _r_a[5];
  344. u8 phy_id;
  345. __be16 _r_b;
  346. u8 _r_c:4;
  347. u8 attached_dev_type:3;
  348. u8 _r_d:1;
  349. u8 linkrate:4;
  350. u8 _r_e:4;
  351. u8 attached_sata_host:1;
  352. u8 iproto:3;
  353. u8 _r_f:4;
  354. u8 attached_sata_dev:1;
  355. u8 tproto:3;
  356. u8 _r_g:3;
  357. u8 attached_sata_ps:1;
  358. u8 sas_addr[8];
  359. u8 attached_sas_addr[8];
  360. u8 attached_phy_id;
  361. u8 _r_h[7];
  362. u8 hmin_linkrate:4;
  363. u8 pmin_linkrate:4;
  364. u8 hmax_linkrate:4;
  365. u8 pmax_linkrate:4;
  366. u8 change_count;
  367. u8 pptv:4;
  368. u8 _r_i:3;
  369. u8 virtual:1;
  370. u8 routing_attr:4;
  371. u8 _r_j:4;
  372. u8 conn_type;
  373. u8 conn_el_index;
  374. u8 conn_phy_link;
  375. u8 _r_k[8];
  376. } __attribute__ ((packed));
  377. struct report_phy_sata_resp {
  378. u8 _r_a[5];
  379. u8 phy_id;
  380. u8 _r_b;
  381. u8 affil_valid:1;
  382. u8 affil_supp:1;
  383. u8 _r_c:6;
  384. u32 _r_d;
  385. u8 stp_sas_addr[8];
  386. struct dev_to_host_fis fis;
  387. u32 _r_e;
  388. u8 affil_stp_ini_addr[8];
  389. __be32 crc;
  390. } __attribute__ ((packed));
  391. struct smp_resp {
  392. u8 frame_type;
  393. u8 function;
  394. u8 result;
  395. u8 reserved;
  396. union {
  397. struct report_general_resp rg;
  398. struct discover_resp disc;
  399. struct report_phy_sata_resp rps;
  400. };
  401. } __attribute__ ((packed));
  402. #elif defined(__BIG_ENDIAN_BITFIELD)
  403. struct sas_identify_frame {
  404. /* Byte 0 */
  405. u8 _un0:1;
  406. u8 dev_type:3;
  407. u8 frame_type:4;
  408. /* Byte 1 */
  409. u8 _un1;
  410. /* Byte 2 */
  411. union {
  412. struct {
  413. u8 _un247:4;
  414. u8 ssp_iport:1;
  415. u8 stp_iport:1;
  416. u8 smp_iport:1;
  417. u8 _un20:1;
  418. };
  419. u8 initiator_bits;
  420. };
  421. /* Byte 3 */
  422. union {
  423. struct {
  424. u8 _un347:4;
  425. u8 ssp_tport:1;
  426. u8 stp_tport:1;
  427. u8 smp_tport:1;
  428. u8 _un30:1;
  429. };
  430. u8 target_bits;
  431. };
  432. /* Byte 4 - 11 */
  433. u8 _un4_11[8];
  434. /* Byte 12 - 19 */
  435. u8 sas_addr[SAS_ADDR_SIZE];
  436. /* Byte 20 */
  437. u8 phy_id;
  438. u8 _un21_27[7];
  439. __be32 crc;
  440. } __attribute__ ((packed));
  441. struct ssp_frame_hdr {
  442. u8 frame_type;
  443. u8 hashed_dest_addr[HASHED_SAS_ADDR_SIZE];
  444. u8 _r_a;
  445. u8 hashed_src_addr[HASHED_SAS_ADDR_SIZE];
  446. __be16 _r_b;
  447. u8 _r_c:5;
  448. u8 retry_data_frames:1;
  449. u8 retransmit:1;
  450. u8 changing_data_ptr:1;
  451. u8 _r_d:6;
  452. u8 num_fill_bytes:2;
  453. u32 _r_e;
  454. __be16 tag;
  455. __be16 tptt;
  456. __be32 data_offs;
  457. } __attribute__ ((packed));
  458. struct ssp_response_iu {
  459. u8 _r_a[10];
  460. u8 _r_b:6;
  461. u8 datapres:2;
  462. u8 status;
  463. u32 _r_c;
  464. __be32 sense_data_len;
  465. __be32 response_data_len;
  466. u8 resp_data[0];
  467. u8 sense_data[0];
  468. } __attribute__ ((packed));
  469. struct ssp_command_iu {
  470. u8 lun[8];
  471. u8 _r_a;
  472. union {
  473. struct {
  474. u8 efb:1;
  475. u8 prio:4;
  476. u8 attr:3;
  477. };
  478. u8 efb_prio_attr;
  479. };
  480. u8 _r_b;
  481. u8 add_cdb_len:6;
  482. u8 _r_c:2;
  483. u8 cdb[16];
  484. u8 add_cdb[0];
  485. } __attribute__ ((packed));
  486. struct xfer_rdy_iu {
  487. __be32 requested_offset;
  488. __be32 write_data_len;
  489. __be32 _r_a;
  490. } __attribute__ ((packed));
  491. struct ssp_tmf_iu {
  492. u8 lun[8];
  493. u16 _r_a;
  494. u8 tmf;
  495. u8 _r_b;
  496. __be16 tag;
  497. u8 _r_c[14];
  498. } __attribute__ ((packed));
  499. /* ---------- SMP ---------- */
  500. struct report_general_resp {
  501. __be16 change_count;
  502. __be16 route_indexes;
  503. u8 _r_a;
  504. u8 num_phys;
  505. u8 t2t_supp:1;
  506. u8 zone_config:1;
  507. u8 self_config:1;
  508. u8 stp_cont_awt:1;
  509. u8 orej_retry_supp:1;
  510. u8 config_others:1;
  511. u8 configuring:1;
  512. u8 conf_route_table:1;
  513. u8 _r_c;
  514. u8 enclosure_logical_id[8];
  515. u8 _r_d[12];
  516. } __attribute__ ((packed));
  517. struct discover_resp {
  518. u8 _r_a[5];
  519. u8 phy_id;
  520. __be16 _r_b;
  521. u8 _r_d:1;
  522. u8 attached_dev_type:3;
  523. u8 _r_c:4;
  524. u8 _r_e:4;
  525. u8 linkrate:4;
  526. u8 _r_f:4;
  527. u8 iproto:3;
  528. u8 attached_sata_host:1;
  529. u8 attached_sata_ps:1;
  530. u8 _r_g:3;
  531. u8 tproto:3;
  532. u8 attached_sata_dev:1;
  533. u8 sas_addr[8];
  534. u8 attached_sas_addr[8];
  535. u8 attached_phy_id;
  536. u8 _r_h[7];
  537. u8 pmin_linkrate:4;
  538. u8 hmin_linkrate:4;
  539. u8 pmax_linkrate:4;
  540. u8 hmax_linkrate:4;
  541. u8 change_count;
  542. u8 virtual:1;
  543. u8 _r_i:3;
  544. u8 pptv:4;
  545. u8 _r_j:4;
  546. u8 routing_attr:4;
  547. u8 conn_type;
  548. u8 conn_el_index;
  549. u8 conn_phy_link;
  550. u8 _r_k[8];
  551. } __attribute__ ((packed));
  552. struct report_phy_sata_resp {
  553. u8 _r_a[5];
  554. u8 phy_id;
  555. u8 _r_b;
  556. u8 _r_c:6;
  557. u8 affil_supp:1;
  558. u8 affil_valid:1;
  559. u32 _r_d;
  560. u8 stp_sas_addr[8];
  561. struct dev_to_host_fis fis;
  562. u32 _r_e;
  563. u8 affil_stp_ini_addr[8];
  564. __be32 crc;
  565. } __attribute__ ((packed));
  566. struct smp_resp {
  567. u8 frame_type;
  568. u8 function;
  569. u8 result;
  570. u8 reserved;
  571. union {
  572. struct report_general_resp rg;
  573. struct discover_resp disc;
  574. struct report_phy_sata_resp rps;
  575. };
  576. } __attribute__ ((packed));
  577. #else
  578. #error "Bitfield order not defined!"
  579. #endif
  580. #endif /* _SAS_H_ */