1
2
3
4
5
6
7
8
9 #ifndef DASD_FBA_H
10 #define DASD_FBA_H
11
12
13
14
15 #define DASD_FBA_MAX_BLOCKS 96
16
17 struct DE_fba_data {
18 struct {
19 unsigned char perm:2;
20 unsigned char zero:2;
21 unsigned char da:1;
22 unsigned char diag:1;
23 unsigned char zero2:2;
24 } __attribute__ ((packed)) mask;
25 __u8 zero;
26 __u16 blk_size;
27 __u32 ext_loc;
28 __u32 ext_beg;
29 __u32 ext_end;
30 } __attribute__ ((packed));
31
32 struct LO_fba_data {
33 struct {
34 unsigned char zero:4;
35 unsigned char cmd:4;
36 } __attribute__ ((packed)) operation;
37 __u8 auxiliary;
38 __u16 blk_ct;
39 __u32 blk_nr;
40 } __attribute__ ((packed));
41
42 struct dasd_fba_characteristics {
43 union {
44 __u8 c;
45 struct {
46 unsigned char reserved:1;
47 unsigned char overrunnable:1;
48 unsigned char burst_byte:1;
49 unsigned char data_chain:1;
50 unsigned char zeros:4;
51 } __attribute__ ((packed)) bits;
52 } __attribute__ ((packed)) mode;
53 union {
54 __u8 c;
55 struct {
56 unsigned char zero0:1;
57 unsigned char removable:1;
58 unsigned char shared:1;
59 unsigned char zero1:1;
60 unsigned char mam:1;
61 unsigned char zeros:3;
62 } __attribute__ ((packed)) bits;
63 } __attribute__ ((packed)) features;
64 __u8 dev_class;
65 __u8 unit_type;
66 __u16 blk_size;
67 __u32 blk_per_cycl;
68 __u32 blk_per_bound;
69 __u32 blk_bdsa;
70 __u32 reserved0;
71 __u16 reserved1;
72 __u16 blk_ce;
73 __u32 reserved2;
74 __u16 reserved3;
75 } __attribute__ ((packed));
76
77 #endif