sas.h 13 KB

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