[go: up one dir, main page]

File: eckd.h

package info (click to toggle)
s390-tools 2.15.1-2
  • links: PTS
  • area: main
  • in suites: bullseye
  • size: 8,216 kB
  • sloc: ansic: 130,144; sh: 9,397; cpp: 8,359; perl: 2,517; makefile: 1,960; asm: 1,016
file content (44 lines) | stat: -rw-r--r-- 778 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
/*
 * zipl - zSeries Initial Program Loader tool
 *
 * DASD ECKD specific functions
 *
 * Copyright IBM Corp. 2013, 2017
 *
 * s390-tools is free software; you can redistribute it and/or modify
 * it under the terms of the MIT license. See LICENSE for details.
 *
 */

#ifndef ECKD_H
#define ECKD_H

#include "stage2.h"

/* CCW COMMANDS */
#define DASD_ECKD_CCW_SEEK		0x07
#define DASD_ECKD_CCW_TIC		0x08
#define DASD_ECKD_CCW_SEARCH		0x31
#define DASD_ECKD_CCW_READ_MT		0x86

struct ch_t {
	uint16_t cyl;
	uint16_t head;
} __packed;

struct chr_t {
	uint16_t cyl;
	uint16_t head;
	uint8_t record;
} __packed __aligned(8);

struct seek_arg {
	uint16_t zeroes;
	struct ch_t ch;
} __packed __aligned(8);

struct indirect_block {
	uint64_t *block;
} __packed;

#endif /* ECKD_H */