diff options
author | Stefan Weinhuber <wein@de.ibm.com> | 2009-03-26 10:23:47 -0400 |
---|---|---|
committer | Martin Schwidefsky <schwidefsky@de.ibm.com> | 2009-03-26 10:24:05 -0400 |
commit | b44b0ab3bac16356f03e94b1b49ba9305710c445 (patch) | |
tree | 66dfc19e2164a6a30d19b958ccf4e4a5d210c8d8 /arch/s390/include/asm | |
parent | f9a28f7bc5225af476f8d4bb669038da8801b7c4 (diff) |
[S390] dasd: add large volume support
The dasd device driver will now support ECKD devices with more then
65520 cylinders.
In the traditional ECKD adressing scheme each track is addressed
by a 16-bit cylinder and 16-bit head number. The new addressing
scheme makes use of the fact that the actual number of heads is
never larger then 15, so 12 bits of the head number can be redefined
to be part of the cylinder address.
Signed-off-by: Stefan Weinhuber <wein@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Diffstat (limited to 'arch/s390/include/asm')
-rw-r--r-- | arch/s390/include/asm/dasd.h | 10 | ||||
-rw-r--r-- | arch/s390/include/asm/vtoc.h | 16 |
2 files changed, 19 insertions, 7 deletions
diff --git a/arch/s390/include/asm/dasd.h b/arch/s390/include/asm/dasd.h index e2db6f16d9c8..218bce81ec70 100644 --- a/arch/s390/include/asm/dasd.h +++ b/arch/s390/include/asm/dasd.h | |||
@@ -162,15 +162,15 @@ typedef struct dasd_profile_info_t { | |||
162 | unsigned int dasd_io_nr_req[32]; /* histogram of # of requests in chanq */ | 162 | unsigned int dasd_io_nr_req[32]; /* histogram of # of requests in chanq */ |
163 | } dasd_profile_info_t; | 163 | } dasd_profile_info_t; |
164 | 164 | ||
165 | /* | 165 | /* |
166 | * struct format_data_t | 166 | * struct format_data_t |
167 | * represents all data necessary to format a dasd | 167 | * represents all data necessary to format a dasd |
168 | */ | 168 | */ |
169 | typedef struct format_data_t { | 169 | typedef struct format_data_t { |
170 | int start_unit; /* from track */ | 170 | unsigned int start_unit; /* from track */ |
171 | int stop_unit; /* to track */ | 171 | unsigned int stop_unit; /* to track */ |
172 | int blksize; /* sectorsize */ | 172 | unsigned int blksize; /* sectorsize */ |
173 | int intensity; | 173 | unsigned int intensity; |
174 | } format_data_t; | 174 | } format_data_t; |
175 | 175 | ||
176 | /* | 176 | /* |
diff --git a/arch/s390/include/asm/vtoc.h b/arch/s390/include/asm/vtoc.h index 3a5267d90d29..8406a2b3157a 100644 --- a/arch/s390/include/asm/vtoc.h +++ b/arch/s390/include/asm/vtoc.h | |||
@@ -39,7 +39,7 @@ struct vtoc_labeldate | |||
39 | __u16 day; | 39 | __u16 day; |
40 | } __attribute__ ((packed)); | 40 | } __attribute__ ((packed)); |
41 | 41 | ||
42 | struct vtoc_volume_label | 42 | struct vtoc_volume_label_cdl |
43 | { | 43 | { |
44 | char volkey[4]; /* volume key = volume label */ | 44 | char volkey[4]; /* volume key = volume label */ |
45 | char vollbl[4]; /* volume label */ | 45 | char vollbl[4]; /* volume label */ |
@@ -56,6 +56,14 @@ struct vtoc_volume_label | |||
56 | char res3[29]; /* reserved */ | 56 | char res3[29]; /* reserved */ |
57 | } __attribute__ ((packed)); | 57 | } __attribute__ ((packed)); |
58 | 58 | ||
59 | struct vtoc_volume_label_ldl { | ||
60 | char vollbl[4]; /* volume label */ | ||
61 | char volid[6]; /* volume identifier */ | ||
62 | char res3[69]; /* reserved */ | ||
63 | char ldl_version; /* version number, valid for ldl format */ | ||
64 | __u64 formatted_blocks; /* valid when ldl_version >= f2 */ | ||
65 | } __attribute__ ((packed)); | ||
66 | |||
59 | struct vtoc_extent | 67 | struct vtoc_extent |
60 | { | 68 | { |
61 | __u8 typeind; /* extent type indicator */ | 69 | __u8 typeind; /* extent type indicator */ |
@@ -140,7 +148,11 @@ struct vtoc_format4_label | |||
140 | char res2[10]; /* reserved */ | 148 | char res2[10]; /* reserved */ |
141 | __u8 DS4EFLVL; /* extended free-space management level */ | 149 | __u8 DS4EFLVL; /* extended free-space management level */ |
142 | struct vtoc_cchhb DS4EFPTR; /* pointer to extended free-space info */ | 150 | struct vtoc_cchhb DS4EFPTR; /* pointer to extended free-space info */ |
143 | char res3[9]; /* reserved */ | 151 | char res3; /* reserved */ |
152 | __u32 DS4DCYL; /* number of logical cyls */ | ||
153 | char res4[2]; /* reserved */ | ||
154 | __u8 DS4DEVF2; /* device flags */ | ||
155 | char res5; /* reserved */ | ||
144 | } __attribute__ ((packed)); | 156 | } __attribute__ ((packed)); |
145 | 157 | ||
146 | struct vtoc_ds5ext | 158 | struct vtoc_ds5ext |