vtoc.h revision 7e7bd3dccbfe8f79e25e5c1554b5bc3a9aaca321
/*
* File...........: s390-tools/dasdview/vtoc.h
* Author(s)......: Horst Hummel <horst.hummel@de.ibm.com>
* Bugreports.to..: <Linux390@de.ibm.com>
*
* This is a user-space copy of the kernel vtoc,h.
*
* (C) IBM Corporation, IBM Deutschland Entwicklung GmbH, 2002
*
* History of changes (starts March 2002)
* 2002-03-12 initial
*/
#ifndef VTOC_H
#define VTOC_H
#include <string.h>
#include <stdlib.h>
#include <stdio.h>
#include <errno.h>
#include <ctype.h>
#include <time.h>
#include <fcntl.h>
#include <unistd.h>
#define LINE_LENGTH 80
#define VTOC_START_CC 0x0
#define VTOC_START_HH 0x1
#define FIRST_USABLE_CYL 1
#define FIRST_USABLE_TRK 2
#define DASD_3380_TYPE 13148
#define DASD_3390_TYPE 13200
#define DASD_9345_TYPE 37701
#define DASD_3380_VALUE 0xbb60
#define DASD_3390_VALUE 0xe5a2
#define DASD_9345_VALUE 0xbc98
#define VOLSER_LENGTH 6
#define BIG_DISK_SIZE 0x10000
#if defined(__sun)
#endif
typedef struct labeldate labeldate_t;
typedef struct volume_label volume_label_t;
typedef struct dev_const dev_const_t;
typedef struct format1_label format1_label_t;
typedef struct format4_label format4_label_t;
typedef struct format5_label format5_label_t;
typedef struct format7_label format7_label_t;
#ifdef __sun
#pragma pack(1)
#endif
u_int8_t r;
};
u_int8_t b;
};
};
};
/* ...blanks for CKD */
};
};
};
};
Subtract from first two bytes of
DS4DEVSZ to get number of usable
cylinders. can be zero. valid
only if DS4DEVAV on. */
};
u_int16_t t; /* RTA of the first track of free extent */
};
};
u_int32_t a; /* starting RTA value */
u_int32_t b; /* ending RTA value + 1 */
};
};
#ifdef __sun
#pragma pack()
#endif
int l);
int l);
volume_label_t * vlabel);
unsigned int usable_partitions,
unsigned int cylinders,
unsigned int tracks,
unsigned int blocks,
unsigned int blksize,
u_int8_t c);
u_int8_t c);
#endif /* VTOC_H */