mirror of
https://github.com/ibm-s390-linux/s390-tools.git
synced 2026-08-05 02:14:52 +00:00
This commit is based on the s390-tools-1.39.0 version. Changes on top of s390-tools-1.39.0: - Add MIT license to all source files - Add LICENSE file - Transform REAMDE to README.md (markdown) - Add AUTHORS.md file - Add CONTRIBUTING.md file - Move changelog from README to CHANGELOG.md file Reviewed-by: Stefan Haberland <sth@linux.vnet.ibm.com> Signed-off-by: Michael Holzheu <holzheu@linux.vnet.ibm.com>
45 lines
778 B
C
45 lines
778 B
C
/*
|
|
* 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 */
|