File: util_arch.h

package info (click to toggle)
s390-tools 2.40.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 13,288 kB
  • sloc: ansic: 187,079; sh: 12,157; cpp: 5,049; makefile: 2,812; perl: 2,541; asm: 1,097; python: 697; xml: 29
file content (43 lines) | stat: -rw-r--r-- 1,235 bytes parent folder | download
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
/**
 * @defgroup util_arch_h util_arch: General architecture helpers
 * @{
 * @brief General architecture helpers
 *
 * Copyright IBM Corp. 2021
 *
 * 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 LIB_UTIL_ARCH_H
#define LIB_UTIL_ARCH_H

enum util_arch_machine_type {
	UTIL_ARCH_MACHINE_TYPE_UNKNOWN	= 0,
	UTIL_ARCH_MACHINE_TYPE_Z10_EC	= 2097,
	UTIL_ARCH_MACHINE_TYPE_Z10_BC	= 2098,
	UTIL_ARCH_MACHINE_TYPE_ZE_196	= 2817,
	UTIL_ARCH_MACHINE_TYPE_ZE_114	= 2818,
	UTIL_ARCH_MACHINE_TYPE_ZE_EC12	= 2827,
	UTIL_ARCH_MACHINE_TYPE_ZE_BC12	= 2828,
	UTIL_ARCH_MACHINE_TYPE_Z13	= 2964,
	UTIL_ARCH_MACHINE_TYPE_Z13_S	= 2965,
	UTIL_ARCH_MACHINE_TYPE_Z14	= 3906,
	UTIL_ARCH_MACHINE_TYPE_Z14_ZR1	= 3907,
	UTIL_ARCH_MACHINE_TYPE_Z15	= 8561,
	UTIL_ARCH_MACHINE_TYPE_Z15_T02	= 8562,
	UTIL_ARCH_MACHINE_TYPE_Z16	= 3931,
	UTIL_ARCH_MACHINE_TYPE_Z16_A02	= 3932,
	UTIL_ARCH_MACHINE_TYPE_Z17	= 9175,
	UTIL_ARCH_MACHINE_TYPE_Z17_2	= 9176,
};

int util_arch_machine_type(void);

const char *util_arch_machine_type_str(void);

const char *util_arch_machine_type_to_str(int type);

unsigned long util_arch_hsa_maxsize(void);

#endif /** LIB_UTIL_ARCH_H @} */