2 * definition for store system information stsi
4 * Copyright IBM Corp. 2001,2008
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License (version 2 only)
8 * as published by the Free Software Foundation.
10 * Author(s): Ulrich Weigand <weigand@de.ibm.com>
11 * Christian Borntraeger <borntraeger@de.ibm.com>
14 #ifndef __ASM_S390_SYSINFO_H
15 #define __ASM_S390_SYSINFO_H
17 struct sysinfo_1_1_1
{
19 char manufacturer
[16];
22 char model_capacity
[16];
26 char model_perm_cap
[16];
27 char model_temp_cap
[16];
28 char model_cap_rating
[4];
29 char model_perm_cap_rating
[4];
30 char model_temp_cap_rating
[4];
33 struct sysinfo_1_2_1
{
38 unsigned short cpu_address
;
41 struct sysinfo_1_2_2
{
44 unsigned short acc_offset
;
46 unsigned int secondary_capability
;
47 unsigned int capability
;
48 unsigned short cpus_total
;
49 unsigned short cpus_configured
;
50 unsigned short cpus_standby
;
51 unsigned short cpus_reserved
;
52 unsigned short adjustment
[0];
55 struct sysinfo_1_2_2_extension
{
56 unsigned int alt_capability
;
57 unsigned short alt_adjustment
[0];
60 struct sysinfo_2_2_1
{
64 unsigned short cpu_id
;
65 unsigned short cpu_address
;
68 struct sysinfo_2_2_2
{
70 unsigned short lpar_number
;
72 unsigned char characteristics
;
73 unsigned short cpus_total
;
74 unsigned short cpus_configured
;
75 unsigned short cpus_standby
;
76 unsigned short cpus_reserved
;
80 unsigned short cpus_dedicated
;
81 unsigned short cpus_shared
;
84 #define LPAR_CHAR_DEDICATED (1 << 7)
85 #define LPAR_CHAR_SHARED (1 << 6)
86 #define LPAR_CHAR_LIMITED (1 << 5)
88 struct sysinfo_3_2_2
{
93 unsigned short cpus_total
;
94 unsigned short cpus_configured
;
95 unsigned short cpus_standby
;
96 unsigned short cpus_reserved
;
103 char reserved_544
[3552];
106 static inline int stsi(void *sysinfo
, int fc
, int sel1
, int sel2
)
108 register int r0
asm("0") = (fc
<< 28) | sel1
;
109 register int r1
asm("1") = sel2
;
117 : "+d" (r0
) : "d" (r1
), "a" (sysinfo
), "K" (-ENOSYS
)
123 * Service level reporting interface.
125 struct service_level
{
126 struct list_head list
;
127 void (*seq_print
)(struct seq_file
*, struct service_level
*);
130 int register_service_level(struct service_level
*);
131 int unregister_service_level(struct service_level
*);
133 #endif /* __ASM_S390_SYSINFO_H */