dasd_eckd.h 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. /*
  3. * Author(s)......: Holger Smolinski <Holger.Smolinski@de.ibm.com>
  4. * Horst Hummel <Horst.Hummel@de.ibm.com>
  5. * Bugreports.to..: <Linux390@de.ibm.com>
  6. * Copyright IBM Corp. 1999, 2000
  7. *
  8. */
  9. #ifndef DASD_ECKD_H
  10. #define DASD_ECKD_H
  11. /*****************************************************************************
  12. * SECTION: CCW Definitions
  13. ****************************************************************************/
  14. #define DASD_ECKD_CCW_WRITE 0x05
  15. #define DASD_ECKD_CCW_READ 0x06
  16. #define DASD_ECKD_CCW_WRITE_HOME_ADDRESS 0x09
  17. #define DASD_ECKD_CCW_READ_HOME_ADDRESS 0x0a
  18. #define DASD_ECKD_CCW_WRITE_KD 0x0d
  19. #define DASD_ECKD_CCW_READ_KD 0x0e
  20. #define DASD_ECKD_CCW_ERASE 0x11
  21. #define DASD_ECKD_CCW_READ_COUNT 0x12
  22. #define DASD_ECKD_CCW_SLCK 0x14
  23. #define DASD_ECKD_CCW_WRITE_RECORD_ZERO 0x15
  24. #define DASD_ECKD_CCW_READ_RECORD_ZERO 0x16
  25. #define DASD_ECKD_CCW_WRITE_CKD 0x1d
  26. #define DASD_ECKD_CCW_READ_CKD 0x1e
  27. #define DASD_ECKD_CCW_PSF 0x27
  28. #define DASD_ECKD_CCW_SNID 0x34
  29. #define DASD_ECKD_CCW_RSSD 0x3e
  30. #define DASD_ECKD_CCW_LOCATE_RECORD 0x47
  31. #define DASD_ECKD_CCW_LOCATE_RECORD_EXT 0x4b
  32. #define DASD_ECKD_CCW_SNSS 0x54
  33. #define DASD_ECKD_CCW_DEFINE_EXTENT 0x63
  34. #define DASD_ECKD_CCW_WRITE_MT 0x85
  35. #define DASD_ECKD_CCW_READ_MT 0x86
  36. #define DASD_ECKD_CCW_WRITE_KD_MT 0x8d
  37. #define DASD_ECKD_CCW_READ_KD_MT 0x8e
  38. #define DASD_ECKD_CCW_READ_COUNT_MT 0x92
  39. #define DASD_ECKD_CCW_RELEASE 0x94
  40. #define DASD_ECKD_CCW_WRITE_FULL_TRACK 0x95
  41. #define DASD_ECKD_CCW_READ_CKD_MT 0x9e
  42. #define DASD_ECKD_CCW_WRITE_CKD_MT 0x9d
  43. #define DASD_ECKD_CCW_WRITE_TRACK_DATA 0xA5
  44. #define DASD_ECKD_CCW_READ_TRACK_DATA 0xA6
  45. #define DASD_ECKD_CCW_RESERVE 0xB4
  46. #define DASD_ECKD_CCW_READ_TRACK 0xDE
  47. #define DASD_ECKD_CCW_PFX 0xE7
  48. #define DASD_ECKD_CCW_PFX_READ 0xEA
  49. #define DASD_ECKD_CCW_RSCK 0xF9
  50. #define DASD_ECKD_CCW_RCD 0xFA
  51. #define DASD_ECKD_CCW_DSO 0xF7
  52. /* Define Subssystem Function / Orders */
  53. #define DSO_ORDER_RAS 0x81
  54. /*
  55. * Perform Subsystem Function / Orders
  56. */
  57. #define PSF_ORDER_PRSSD 0x18
  58. #define PSF_ORDER_CUIR_RESPONSE 0x1A
  59. #define PSF_ORDER_SSC 0x1D
  60. /*
  61. * Perform Subsystem Function / Sub-Orders
  62. */
  63. #define PSF_SUBORDER_QHA 0x1C /* Query Host Access */
  64. #define PSF_SUBORDER_VSQ 0x52 /* Volume Storage Query */
  65. #define PSF_SUBORDER_LCQ 0x53 /* Logical Configuration Query */
  66. /*
  67. * CUIR response condition codes
  68. */
  69. #define PSF_CUIR_INVALID 0x00
  70. #define PSF_CUIR_COMPLETED 0x01
  71. #define PSF_CUIR_NOT_SUPPORTED 0x02
  72. #define PSF_CUIR_ERROR_IN_REQ 0x03
  73. #define PSF_CUIR_DENIED 0x04
  74. #define PSF_CUIR_LAST_PATH 0x05
  75. #define PSF_CUIR_DEVICE_ONLINE 0x06
  76. #define PSF_CUIR_VARY_FAILURE 0x07
  77. #define PSF_CUIR_SOFTWARE_FAILURE 0x08
  78. #define PSF_CUIR_NOT_RECOGNIZED 0x09
  79. /*
  80. * CUIR codes
  81. */
  82. #define CUIR_QUIESCE 0x01
  83. #define CUIR_RESUME 0x02
  84. /*
  85. * Out-of-space (OOS) Codes
  86. */
  87. #define REPO_WARN 0x01
  88. #define REPO_EXHAUST 0x02
  89. #define POOL_WARN 0x03
  90. #define POOL_EXHAUST 0x04
  91. #define REPO_RELIEVE 0x05
  92. #define POOL_RELIEVE 0x06
  93. /*
  94. * attention message definitions
  95. */
  96. #define ATTENTION_LENGTH_CUIR 0x0e
  97. #define ATTENTION_FORMAT_CUIR 0x01
  98. #define ATTENTION_LENGTH_OOS 0x10
  99. #define ATTENTION_FORMAT_OOS 0x06
  100. #define DASD_ECKD_PG_GROUPED 0x10
  101. /*
  102. * Size that is reportet for large volumes in the old 16-bit no_cyl field
  103. */
  104. #define LV_COMPAT_CYL 0xFFFE
  105. #define FCX_MAX_DATA_FACTOR 65536
  106. #define DASD_ECKD_RCD_DATA_SIZE 256
  107. #define DASD_ECKD_PATH_THRHLD 256
  108. #define DASD_ECKD_PATH_INTERVAL 300
  109. /*
  110. * Maximum number of blocks to be chained
  111. */
  112. #define DASD_ECKD_MAX_BLOCKS 190
  113. #define DASD_ECKD_MAX_BLOCKS_RAW 256
  114. /*****************************************************************************
  115. * SECTION: Type Definitions
  116. ****************************************************************************/
  117. struct eckd_count {
  118. __u16 cyl;
  119. __u16 head;
  120. __u8 record;
  121. __u8 kl;
  122. __u16 dl;
  123. } __attribute__ ((packed));
  124. struct ch_t {
  125. __u16 cyl;
  126. __u16 head;
  127. } __attribute__ ((packed));
  128. struct chr_t {
  129. __u16 cyl;
  130. __u16 head;
  131. __u8 record;
  132. } __attribute__ ((packed));
  133. struct DE_eckd_data {
  134. struct {
  135. unsigned char perm:2; /* Permissions on this extent */
  136. unsigned char reserved:1;
  137. unsigned char seek:2; /* Seek control */
  138. unsigned char auth:2; /* Access authorization */
  139. unsigned char pci:1; /* PCI Fetch mode */
  140. } __attribute__ ((packed)) mask;
  141. struct {
  142. unsigned char mode:2; /* Architecture mode */
  143. unsigned char ckd:1; /* CKD Conversion */
  144. unsigned char operation:3; /* Operation mode */
  145. unsigned char cfw:1; /* Cache fast write */
  146. unsigned char dfw:1; /* DASD fast write */
  147. } __attribute__ ((packed)) attributes;
  148. __u16 blk_size; /* Blocksize */
  149. __u16 fast_write_id;
  150. __u8 ga_additional; /* Global Attributes Additional */
  151. __u8 ga_extended; /* Global Attributes Extended */
  152. struct ch_t beg_ext;
  153. struct ch_t end_ext;
  154. unsigned long ep_sys_time; /* Ext Parameter - System Time Stamp */
  155. __u8 ep_format; /* Extended Parameter format byte */
  156. __u8 ep_prio; /* Extended Parameter priority I/O byte */
  157. __u8 ep_reserved1; /* Extended Parameter Reserved */
  158. __u8 ep_rec_per_track; /* Number of records on a track */
  159. __u8 ep_reserved[4]; /* Extended Parameter Reserved */
  160. } __attribute__ ((packed));
  161. struct LO_eckd_data {
  162. struct {
  163. unsigned char orientation:2;
  164. unsigned char operation:6;
  165. } __attribute__ ((packed)) operation;
  166. struct {
  167. unsigned char last_bytes_used:1;
  168. unsigned char reserved:6;
  169. unsigned char read_count_suffix:1;
  170. } __attribute__ ((packed)) auxiliary;
  171. __u8 unused;
  172. __u8 count;
  173. struct ch_t seek_addr;
  174. struct chr_t search_arg;
  175. __u8 sector;
  176. __u16 length;
  177. } __attribute__ ((packed));
  178. struct LRE_eckd_data {
  179. struct {
  180. unsigned char orientation:2;
  181. unsigned char operation:6;
  182. } __attribute__ ((packed)) operation;
  183. struct {
  184. unsigned char length_valid:1;
  185. unsigned char length_scope:1;
  186. unsigned char imbedded_ccw_valid:1;
  187. unsigned char check_bytes:2;
  188. unsigned char imbedded_count_valid:1;
  189. unsigned char reserved:1;
  190. unsigned char read_count_suffix:1;
  191. } __attribute__ ((packed)) auxiliary;
  192. __u8 imbedded_ccw;
  193. __u8 count;
  194. struct ch_t seek_addr;
  195. struct chr_t search_arg;
  196. __u8 sector;
  197. __u16 length;
  198. __u8 imbedded_count;
  199. __u8 extended_operation;
  200. __u16 extended_parameter_length;
  201. __u8 extended_parameter[];
  202. } __attribute__ ((packed));
  203. /* Prefix data for format 0x00 and 0x01 */
  204. struct PFX_eckd_data {
  205. unsigned char format;
  206. struct {
  207. unsigned char define_extent:1;
  208. unsigned char time_stamp:1;
  209. unsigned char verify_base:1;
  210. unsigned char hyper_pav:1;
  211. unsigned char reserved:4;
  212. } __attribute__ ((packed)) validity;
  213. __u8 base_address;
  214. __u8 aux;
  215. __u8 base_lss;
  216. __u8 reserved[7];
  217. struct DE_eckd_data define_extent;
  218. struct LRE_eckd_data locate_record;
  219. } __attribute__ ((packed));
  220. struct dasd_eckd_characteristics {
  221. __u16 cu_type;
  222. struct {
  223. unsigned char support:2;
  224. unsigned char async:1;
  225. unsigned char reserved:1;
  226. unsigned char cache_info:1;
  227. unsigned char model:3;
  228. } __attribute__ ((packed)) cu_model;
  229. __u16 dev_type;
  230. __u8 dev_model;
  231. struct {
  232. unsigned char mult_burst:1;
  233. unsigned char RT_in_LR:1;
  234. unsigned char reserved1:1;
  235. unsigned char RD_IN_LR:1;
  236. unsigned char reserved2:4;
  237. unsigned char reserved3:8;
  238. unsigned char defect_wr:1;
  239. unsigned char XRC_supported:1;
  240. unsigned char reserved4:1;
  241. unsigned char striping:1;
  242. unsigned char reserved5:4;
  243. unsigned char cfw:1;
  244. unsigned char reserved6:2;
  245. unsigned char cache:1;
  246. unsigned char dual_copy:1;
  247. unsigned char dfw:1;
  248. unsigned char reset_alleg:1;
  249. unsigned char sense_down:1;
  250. } __attribute__ ((packed)) facilities;
  251. __u8 dev_class;
  252. __u8 unit_type;
  253. __u16 no_cyl;
  254. __u16 trk_per_cyl;
  255. __u8 sec_per_trk;
  256. __u8 byte_per_track[3];
  257. __u16 home_bytes;
  258. __u8 formula;
  259. union {
  260. struct {
  261. __u8 f1;
  262. __u16 f2;
  263. __u16 f3;
  264. } __attribute__ ((packed)) f_0x01;
  265. struct {
  266. __u8 f1;
  267. __u8 f2;
  268. __u8 f3;
  269. __u8 f4;
  270. __u8 f5;
  271. } __attribute__ ((packed)) f_0x02;
  272. } __attribute__ ((packed)) factors;
  273. __u16 first_alt_trk;
  274. __u16 no_alt_trk;
  275. __u16 first_dia_trk;
  276. __u16 no_dia_trk;
  277. __u16 first_sup_trk;
  278. __u16 no_sup_trk;
  279. __u8 MDR_ID;
  280. __u8 OBR_ID;
  281. __u8 director;
  282. __u8 rd_trk_set;
  283. __u16 max_rec_zero;
  284. __u8 reserved1;
  285. __u8 RWANY_in_LR;
  286. __u8 factor6;
  287. __u8 factor7;
  288. __u8 factor8;
  289. __u8 reserved2[3];
  290. __u8 reserved3[6];
  291. __u32 long_no_cyl;
  292. } __attribute__ ((packed));
  293. /* elements of the configuration data */
  294. struct dasd_ned {
  295. struct {
  296. __u8 identifier:2;
  297. __u8 token_id:1;
  298. __u8 sno_valid:1;
  299. __u8 subst_sno:1;
  300. __u8 recNED:1;
  301. __u8 emuNED:1;
  302. __u8 reserved:1;
  303. } __attribute__ ((packed)) flags;
  304. __u8 descriptor;
  305. __u8 dev_class;
  306. __u8 reserved;
  307. __u8 dev_type[6];
  308. __u8 dev_model[3];
  309. __u8 HDA_manufacturer[3];
  310. __u8 HDA_location[2];
  311. __u8 HDA_seqno[12];
  312. __u8 ID;
  313. __u8 unit_addr;
  314. } __attribute__ ((packed));
  315. struct dasd_sneq {
  316. struct {
  317. __u8 identifier:2;
  318. __u8 reserved:6;
  319. } __attribute__ ((packed)) flags;
  320. __u8 res1;
  321. __u16 format;
  322. __u8 res2[4]; /* byte 4- 7 */
  323. __u8 sua_flags; /* byte 8 */
  324. __u8 base_unit_addr; /* byte 9 */
  325. __u8 res3[22]; /* byte 10-31 */
  326. } __attribute__ ((packed));
  327. struct vd_sneq {
  328. struct {
  329. __u8 identifier:2;
  330. __u8 reserved:6;
  331. } __attribute__ ((packed)) flags;
  332. __u8 res1;
  333. __u16 format;
  334. __u8 res2[4]; /* byte 4- 7 */
  335. __u8 uit[16]; /* byte 8-23 */
  336. __u8 res3[8]; /* byte 24-31 */
  337. } __attribute__ ((packed));
  338. struct dasd_gneq {
  339. struct {
  340. __u8 identifier:2;
  341. __u8 reserved:6;
  342. } __attribute__ ((packed)) flags;
  343. __u8 record_selector;
  344. __u8 reserved[4];
  345. struct {
  346. __u8 value:2;
  347. __u8 number:6;
  348. } __attribute__ ((packed)) timeout;
  349. __u8 reserved3;
  350. __u16 subsystemID;
  351. __u8 reserved2[22];
  352. } __attribute__ ((packed));
  353. struct dasd_rssd_features {
  354. char feature[256];
  355. } __attribute__((packed));
  356. struct dasd_rssd_messages {
  357. __u16 length;
  358. __u8 format;
  359. __u8 code;
  360. __u32 message_id;
  361. __u8 flags;
  362. char messages[4087];
  363. } __packed;
  364. /*
  365. * Read Subsystem Data - Volume Storage Query
  366. */
  367. struct dasd_rssd_vsq {
  368. struct {
  369. __u8 tse:1;
  370. __u8 space_not_available:1;
  371. __u8 ese:1;
  372. __u8 unused:5;
  373. } __packed vol_info;
  374. __u8 unused1;
  375. __u16 extent_pool_id;
  376. __u8 warn_cap_limit;
  377. __u8 warn_cap_guaranteed;
  378. __u16 unused2;
  379. __u32 limit_capacity;
  380. __u32 guaranteed_capacity;
  381. __u32 space_allocated;
  382. __u32 space_configured;
  383. __u32 logical_capacity;
  384. } __packed;
  385. /*
  386. * Extent Pool Summary
  387. */
  388. struct dasd_ext_pool_sum {
  389. __u16 pool_id;
  390. __u8 repo_warn_thrshld;
  391. __u8 warn_thrshld;
  392. struct {
  393. __u8 type:1; /* 0 - CKD / 1 - FB */
  394. __u8 track_space_efficient:1;
  395. __u8 extent_space_efficient:1;
  396. __u8 standard_volume:1;
  397. __u8 extent_size_valid:1;
  398. __u8 capacity_at_warnlevel:1;
  399. __u8 pool_oos:1;
  400. __u8 unused0:1;
  401. __u8 unused1;
  402. } __packed flags;
  403. struct {
  404. __u8 reserved0:1;
  405. __u8 size_1G:1;
  406. __u8 reserved1:5;
  407. __u8 size_16M:1;
  408. } __packed extent_size;
  409. __u8 unused;
  410. } __packed;
  411. /*
  412. * Read Subsystem Data-Response - Logical Configuration Query - Header
  413. */
  414. struct dasd_rssd_lcq {
  415. __u16 data_length; /* Length of data returned */
  416. __u16 pool_count; /* Count of extent pools returned - Max: 448 */
  417. struct {
  418. __u8 pool_info_valid:1; /* Detailed Information valid */
  419. __u8 pool_id_volume:1;
  420. __u8 pool_id_cec:1;
  421. __u8 unused0:5;
  422. __u8 unused1;
  423. } __packed header_flags;
  424. char sfi_type[6]; /* Storage Facility Image Type (EBCDIC) */
  425. char sfi_model[3]; /* Storage Facility Image Model (EBCDIC) */
  426. __u8 sfi_seq_num[10]; /* Storage Facility Image Sequence Number */
  427. __u8 reserved[7];
  428. struct dasd_ext_pool_sum ext_pool_sum[448];
  429. } __packed;
  430. struct dasd_oos_message {
  431. __u16 length;
  432. __u8 format;
  433. __u8 code;
  434. __u8 percentage_empty;
  435. __u8 reserved;
  436. __u16 ext_pool_id;
  437. __u16 token;
  438. __u8 unused[6];
  439. } __packed;
  440. struct dasd_cuir_message {
  441. __u16 length;
  442. __u8 format;
  443. __u8 code;
  444. __u32 message_id;
  445. __u8 flags;
  446. __u8 neq_map[3];
  447. __u8 ned_map;
  448. __u8 record_selector;
  449. } __packed;
  450. struct dasd_psf_cuir_response {
  451. __u8 order;
  452. __u8 flags;
  453. __u8 cc;
  454. __u8 chpid;
  455. __u16 device_nr;
  456. __u16 reserved;
  457. __u32 message_id;
  458. __u64 system_id;
  459. __u8 cssid;
  460. __u8 ssid;
  461. } __packed;
  462. struct dasd_ckd_path_group_entry {
  463. __u8 status_flags;
  464. __u8 pgid[11];
  465. __u8 sysplex_name[8];
  466. __u32 timestamp;
  467. __u32 cylinder;
  468. __u8 reserved[4];
  469. } __packed;
  470. struct dasd_ckd_host_information {
  471. __u8 access_flags;
  472. __u8 entry_size;
  473. __u16 entry_count;
  474. __u8 entry[16390];
  475. } __packed;
  476. struct dasd_psf_query_host_access {
  477. __u8 access_flag;
  478. __u8 version;
  479. __u16 CKD_length;
  480. __u16 SCSI_length;
  481. __u8 unused[10];
  482. __u8 host_access_information[16394];
  483. } __packed;
  484. /*
  485. * Perform Subsystem Function - Prepare for Read Subsystem Data
  486. */
  487. struct dasd_psf_prssd_data {
  488. unsigned char order;
  489. unsigned char flags;
  490. unsigned char reserved1;
  491. unsigned char reserved2;
  492. unsigned char lss;
  493. unsigned char volume;
  494. unsigned char suborder;
  495. unsigned char varies[5];
  496. } __attribute__ ((packed));
  497. /*
  498. * Perform Subsystem Function - Set Subsystem Characteristics
  499. */
  500. struct dasd_psf_ssc_data {
  501. unsigned char order;
  502. unsigned char flags;
  503. unsigned char cu_type[4];
  504. unsigned char suborder;
  505. unsigned char reserved[59];
  506. } __attribute__((packed));
  507. /* Maximum number of extents for a single Release Allocated Space command */
  508. #define DASD_ECKD_RAS_EXTS_MAX 110U
  509. struct dasd_dso_ras_ext_range {
  510. struct ch_t beg_ext;
  511. struct ch_t end_ext;
  512. } __packed;
  513. /*
  514. * Define Subsytem Operation - Release Allocated Space
  515. */
  516. struct dasd_dso_ras_data {
  517. __u8 order;
  518. struct {
  519. __u8 message:1; /* Must be zero */
  520. __u8 reserved1:2;
  521. __u8 vol_type:1; /* 0 - CKD/FBA, 1 - FB */
  522. __u8 reserved2:4;
  523. } __packed flags;
  524. /* Operation Flags to specify scope */
  525. struct {
  526. __u8 reserved1:2;
  527. /* Release Space by Extent */
  528. __u8 by_extent:1; /* 0 - entire volume, 1 - specified extents */
  529. __u8 guarantee_init:1;
  530. __u8 force_release:1; /* Internal - will be ignored */
  531. __u16 reserved2:11;
  532. } __packed op_flags;
  533. __u8 lss;
  534. __u8 dev_addr;
  535. __u32 reserved1;
  536. __u8 reserved2[10];
  537. __u16 nr_exts; /* Defines number of ext_scope - max 110 */
  538. __u16 reserved3;
  539. } __packed;
  540. /*
  541. * some structures and definitions for alias handling
  542. */
  543. struct dasd_unit_address_configuration {
  544. struct {
  545. char ua_type;
  546. char base_ua;
  547. } unit[256];
  548. } __attribute__((packed));
  549. #define MAX_DEVICES_PER_LCU 256
  550. /* flags on the LCU */
  551. #define NEED_UAC_UPDATE 0x01
  552. #define UPDATE_PENDING 0x02
  553. enum pavtype {NO_PAV, BASE_PAV, HYPER_PAV};
  554. struct alias_root {
  555. struct list_head serverlist;
  556. spinlock_t lock;
  557. };
  558. struct alias_server {
  559. struct list_head server;
  560. struct dasd_uid uid;
  561. struct list_head lculist;
  562. };
  563. struct summary_unit_check_work_data {
  564. char reason;
  565. struct dasd_device *device;
  566. struct work_struct worker;
  567. };
  568. struct read_uac_work_data {
  569. struct dasd_device *device;
  570. struct delayed_work dwork;
  571. };
  572. struct alias_lcu {
  573. struct list_head lcu;
  574. struct dasd_uid uid;
  575. enum pavtype pav;
  576. char flags;
  577. spinlock_t lock;
  578. struct list_head grouplist;
  579. struct list_head active_devices;
  580. struct list_head inactive_devices;
  581. struct dasd_unit_address_configuration *uac;
  582. struct summary_unit_check_work_data suc_data;
  583. struct read_uac_work_data ruac_data;
  584. struct dasd_ccw_req *rsu_cqr;
  585. struct completion lcu_setup;
  586. };
  587. struct alias_pav_group {
  588. struct list_head group;
  589. struct dasd_uid uid;
  590. struct alias_lcu *lcu;
  591. struct list_head baselist;
  592. struct list_head aliaslist;
  593. struct dasd_device *next;
  594. };
  595. struct dasd_conf_data {
  596. struct dasd_ned neds[5];
  597. u8 reserved[64];
  598. struct dasd_gneq gneq;
  599. } __packed;
  600. struct dasd_eckd_private {
  601. struct dasd_eckd_characteristics rdc_data;
  602. u8 *conf_data;
  603. int conf_len;
  604. /* pointers to specific parts in the conf_data */
  605. struct dasd_ned *ned;
  606. struct dasd_sneq *sneq;
  607. struct vd_sneq *vdsneq;
  608. struct dasd_gneq *gneq;
  609. struct eckd_count count_area[5];
  610. int init_cqr_status;
  611. int uses_cdl;
  612. struct attrib_data_t attrib; /* e.g. cache operations */
  613. struct dasd_rssd_features features;
  614. struct dasd_rssd_vsq vsq;
  615. struct dasd_ext_pool_sum eps;
  616. u32 real_cyl;
  617. /* alias managemnet */
  618. struct dasd_uid uid;
  619. struct alias_pav_group *pavgroup;
  620. struct alias_lcu *lcu;
  621. int count;
  622. u32 fcx_max_data;
  623. char suc_reason;
  624. };
  625. int dasd_alias_make_device_known_to_lcu(struct dasd_device *);
  626. void dasd_alias_disconnect_device_from_lcu(struct dasd_device *);
  627. int dasd_alias_add_device(struct dasd_device *);
  628. int dasd_alias_remove_device(struct dasd_device *);
  629. struct dasd_device *dasd_alias_get_start_dev(struct dasd_device *);
  630. void dasd_alias_handle_summary_unit_check(struct work_struct *);
  631. void dasd_eckd_reset_ccw_to_base_io(struct dasd_ccw_req *);
  632. int dasd_alias_update_add_device(struct dasd_device *);
  633. #endif /* DASD_ECKD_H */