mirror of
https://github.com/ibm-s390-linux/s390-tools.git
synced 2026-08-05 02:14:52 +00:00
libutil: Add machine type definition for machines 9175 and 9176
Add machine type definition for machines 9175 and 9176. Signed-off-by: Thomas Richter <tmricht@linux.ibm.com> Reviewed-by: Sumanth Korikkar <sumanthk@linux.ibm.com> Suggested-by: Christian Borntraeger <borntraeger@linux.ibm.com> Signed-off-by: Jan Höppner <hoeppner@linux.ibm.com>
This commit is contained in:
committed by
Jan Höppner
parent
a9eb80b1a2
commit
b3db52fd16
@@ -28,6 +28,8 @@ enum util_arch_machine_type {
|
|||||||
UTIL_ARCH_MACHINE_TYPE_Z15_T02 = 8562,
|
UTIL_ARCH_MACHINE_TYPE_Z15_T02 = 8562,
|
||||||
UTIL_ARCH_MACHINE_TYPE_Z16 = 3931,
|
UTIL_ARCH_MACHINE_TYPE_Z16 = 3931,
|
||||||
UTIL_ARCH_MACHINE_TYPE_Z16_A02 = 3932,
|
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);
|
int util_arch_machine_type(void);
|
||||||
|
|||||||
@@ -97,6 +97,9 @@ const char *util_arch_machine_type_to_str(int type)
|
|||||||
case UTIL_ARCH_MACHINE_TYPE_Z16:
|
case UTIL_ARCH_MACHINE_TYPE_Z16:
|
||||||
case UTIL_ARCH_MACHINE_TYPE_Z16_A02:
|
case UTIL_ARCH_MACHINE_TYPE_Z16_A02:
|
||||||
return "IBM z16";
|
return "IBM z16";
|
||||||
|
case UTIL_ARCH_MACHINE_TYPE_Z17:
|
||||||
|
case UTIL_ARCH_MACHINE_TYPE_Z17_2:
|
||||||
|
return "IBM z17";
|
||||||
default:
|
default:
|
||||||
return "Unknown machine type";
|
return "Unknown machine type";
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user