xref: /kvm-unit-tests/lib/s390x/css.h (revision fa68e2a814f71073fb9d59e59e93e33b6189679a)
16c9f99dfSJanosch Frank /* SPDX-License-Identifier: GPL-2.0-only */
2a3b101f0SPierre Morel /*
3a3b101f0SPierre Morel  * CSS definitions
4a3b101f0SPierre Morel  *
5a3b101f0SPierre Morel  * Copyright IBM, Corp. 2020
6a3b101f0SPierre Morel  * Author: Pierre Morel <pmorel@linux.ibm.com>
7a3b101f0SPierre Morel  */
8a3b101f0SPierre Morel 
9a3b101f0SPierre Morel #ifndef CSS_H
10a3b101f0SPierre Morel #define CSS_H
11a3b101f0SPierre Morel 
128cb729e4SPierre Morel #define lowcore_ptr ((struct lowcore *)0x0)
138cb729e4SPierre Morel 
14a3b101f0SPierre Morel /* subchannel ID bit 16 must always be one */
15a3b101f0SPierre Morel #define SCHID_ONE	0x00010000
16a3b101f0SPierre Morel 
17a3b101f0SPierre Morel #define CCW_F_CD	0x80
18a3b101f0SPierre Morel #define CCW_F_CC	0x40
19a3b101f0SPierre Morel #define CCW_F_SLI	0x20
20a3b101f0SPierre Morel #define CCW_F_SKP	0x10
21a3b101f0SPierre Morel #define CCW_F_PCI	0x08
22a3b101f0SPierre Morel #define CCW_F_IDA	0x04
23a3b101f0SPierre Morel #define CCW_F_S		0x02
24a3b101f0SPierre Morel #define CCW_F_MIDA	0x01
25a3b101f0SPierre Morel 
26a3b101f0SPierre Morel #define CCW_C_NOP	0x03
27a3b101f0SPierre Morel #define CCW_C_TIC	0x08
28a3b101f0SPierre Morel 
29a3b101f0SPierre Morel struct ccw1 {
30a3b101f0SPierre Morel 	uint8_t code;
31a3b101f0SPierre Morel 	uint8_t flags;
32a3b101f0SPierre Morel 	uint16_t count;
33a3b101f0SPierre Morel 	uint32_t data_address;
34a3b101f0SPierre Morel } __attribute__ ((aligned(8)));
35a3b101f0SPierre Morel 
36a3b101f0SPierre Morel #define ORB_CTRL_KEY	0xf0000000
37a3b101f0SPierre Morel #define ORB_CTRL_SPND	0x08000000
38a3b101f0SPierre Morel #define ORB_CTRL_STR	0x04000000
39a3b101f0SPierre Morel #define ORB_CTRL_MOD	0x02000000
40a3b101f0SPierre Morel #define ORB_CTRL_SYNC	0x01000000
41a3b101f0SPierre Morel #define ORB_CTRL_FMT	0x00800000
42a3b101f0SPierre Morel #define ORB_CTRL_PFCH	0x00400000
43a3b101f0SPierre Morel #define ORB_CTRL_ISIC	0x00200000
44a3b101f0SPierre Morel #define ORB_CTRL_ALCC	0x00100000
45a3b101f0SPierre Morel #define ORB_CTRL_SSIC	0x00080000
46a3b101f0SPierre Morel #define ORB_CTRL_CPTC	0x00040000
47a3b101f0SPierre Morel #define ORB_CTRL_C64	0x00020000
48a3b101f0SPierre Morel #define ORB_CTRL_I2K	0x00010000
49a3b101f0SPierre Morel #define ORB_CTRL_LPM	0x0000ff00
50a3b101f0SPierre Morel #define ORB_CTRL_ILS	0x00000080
51a3b101f0SPierre Morel #define ORB_CTRL_MIDAW	0x00000040
52a3b101f0SPierre Morel #define ORB_CTRL_ORBX	0x00000001
53a3b101f0SPierre Morel 
54a3b101f0SPierre Morel #define ORB_LPM_DFLT	0x00008000
55a3b101f0SPierre Morel 
56a3b101f0SPierre Morel struct orb {
57a3b101f0SPierre Morel 	uint32_t intparm;
58a3b101f0SPierre Morel 	uint32_t ctrl;
59a3b101f0SPierre Morel 	uint32_t cpa;
60a3b101f0SPierre Morel 	uint32_t prio;
61a3b101f0SPierre Morel 	uint32_t reserved[4];
62a3b101f0SPierre Morel } __attribute__ ((aligned(4)));
63a3b101f0SPierre Morel 
64a3b101f0SPierre Morel struct scsw {
658cb729e4SPierre Morel #define SCSW_SC_PENDING		0x00000001
668cb729e4SPierre Morel #define SCSW_SC_SECONDARY	0x00000002
678cb729e4SPierre Morel #define SCSW_SC_PRIMARY		0x00000004
688cb729e4SPierre Morel #define SCSW_SC_INTERMEDIATE	0x00000008
698cb729e4SPierre Morel #define SCSW_SC_ALERT		0x00000010
70a3b101f0SPierre Morel 	uint32_t ctrl;
71a3b101f0SPierre Morel 	uint32_t ccw_addr;
728cb729e4SPierre Morel #define SCSW_DEVS_DEV_END	0x04
738cb729e4SPierre Morel #define SCSW_DEVS_SCH_END	0x08
74a3b101f0SPierre Morel 	uint8_t  dev_stat;
758cb729e4SPierre Morel #define SCSW_SCHS_PCI	0x80
768cb729e4SPierre Morel #define SCSW_SCHS_IL	0x40
77a3b101f0SPierre Morel 	uint8_t  sch_stat;
78a3b101f0SPierre Morel 	uint16_t count;
79a3b101f0SPierre Morel };
80a3b101f0SPierre Morel 
81a3b101f0SPierre Morel struct pmcw {
82a3b101f0SPierre Morel 	uint32_t intparm;
83a3b101f0SPierre Morel #define PMCW_DNV	0x0001
84a3b101f0SPierre Morel #define PMCW_ENABLE	0x0080
853c4ae93fSPierre Morel #define PMCW_MBUE	0x0010
863c4ae93fSPierre Morel #define PMCW_DCTME	0x0008
87551e6622SPierre Morel #define PMCW_ISC_MASK	0x3800
88551e6622SPierre Morel #define PMCW_ISC_SHIFT	11
89a3b101f0SPierre Morel 	uint16_t flags;
90a3b101f0SPierre Morel 	uint16_t devnum;
91a3b101f0SPierre Morel 	uint8_t  lpm;
92a3b101f0SPierre Morel 	uint8_t  pnom;
93a3b101f0SPierre Morel 	uint8_t  lpum;
94a3b101f0SPierre Morel 	uint8_t  pim;
95a3b101f0SPierre Morel 	uint16_t mbi;
96a3b101f0SPierre Morel 	uint8_t  pom;
97a3b101f0SPierre Morel 	uint8_t  pam;
98a3b101f0SPierre Morel 	uint8_t  chpid[8];
993c4ae93fSPierre Morel #define PMCW_MBF1	0x0004
100a3b101f0SPierre Morel 	uint32_t flags2;
101a3b101f0SPierre Morel };
102a3b101f0SPierre Morel #define PMCW_CHANNEL_TYPE(pmcw) (pmcw->flags2 >> 21)
103a3b101f0SPierre Morel 
104a3b101f0SPierre Morel struct schib {
105a3b101f0SPierre Morel 	struct pmcw pmcw;
106a3b101f0SPierre Morel 	struct scsw scsw;
1073c4ae93fSPierre Morel 	uint64_t mbo;
1083c4ae93fSPierre Morel 	uint8_t  md[4];
109a3b101f0SPierre Morel } __attribute__ ((aligned(4)));
110*fa68e2a8SPierre Morel extern struct schib schib;
111a3b101f0SPierre Morel 
112a3b101f0SPierre Morel struct irb {
113a3b101f0SPierre Morel 	struct scsw scsw;
114a3b101f0SPierre Morel 	uint32_t esw[5];
115a3b101f0SPierre Morel 	uint32_t ecw[8];
116a3b101f0SPierre Morel 	uint32_t emw[8];
117a3b101f0SPierre Morel } __attribute__ ((aligned(4)));
118a3b101f0SPierre Morel 
1198cb729e4SPierre Morel #define CCW_CMD_SENSE_ID	0xe4
1208cb729e4SPierre Morel #define CSS_SENSEID_COMMON_LEN	8
1218cb729e4SPierre Morel struct senseid {
1228cb729e4SPierre Morel 	/* common part */
1238cb729e4SPierre Morel 	uint8_t reserved;        /* always 0x'FF' */
1248cb729e4SPierre Morel 	uint16_t cu_type;        /* control unit type */
1258cb729e4SPierre Morel 	uint8_t cu_model;        /* control unit model */
1268cb729e4SPierre Morel 	uint16_t dev_type;       /* device type */
1278cb729e4SPierre Morel 	uint8_t dev_model;       /* device model */
1288cb729e4SPierre Morel 	uint8_t unused;          /* padding byte */
1298cb729e4SPierre Morel 	uint8_t padding[256 - 8]; /* Extended part */
1308cb729e4SPierre Morel } __attribute__ ((aligned(4))) __attribute__ ((packed));
1318cb729e4SPierre Morel 
132a3b101f0SPierre Morel /* CSS low level access functions */
133a3b101f0SPierre Morel 
134a3b101f0SPierre Morel static inline int ssch(unsigned long schid, struct orb *addr)
135a3b101f0SPierre Morel {
136a3b101f0SPierre Morel 	register long long reg1 asm("1") = schid;
137a3b101f0SPierre Morel 	int cc;
138a3b101f0SPierre Morel 
139a3b101f0SPierre Morel 	asm volatile(
140a3b101f0SPierre Morel 		"	ssch	0(%2)\n"
141a3b101f0SPierre Morel 		"	ipm	%0\n"
142a3b101f0SPierre Morel 		"	srl	%0,28\n"
143a3b101f0SPierre Morel 		: "=d" (cc)
144a3b101f0SPierre Morel 		: "d" (reg1), "a" (addr), "m" (*addr)
145a3b101f0SPierre Morel 		: "cc", "memory");
146a3b101f0SPierre Morel 	return cc;
147a3b101f0SPierre Morel }
148a3b101f0SPierre Morel 
149a3b101f0SPierre Morel static inline int stsch(unsigned long schid, struct schib *addr)
150a3b101f0SPierre Morel {
151a3b101f0SPierre Morel 	register unsigned long reg1 asm ("1") = schid;
152a3b101f0SPierre Morel 	int cc;
153a3b101f0SPierre Morel 
154a3b101f0SPierre Morel 	asm volatile(
155a3b101f0SPierre Morel 		"	stsch	0(%3)\n"
156a3b101f0SPierre Morel 		"	ipm	%0\n"
157a3b101f0SPierre Morel 		"	srl	%0,28"
158a3b101f0SPierre Morel 		: "=d" (cc), "=m" (*addr)
159a3b101f0SPierre Morel 		: "d" (reg1), "a" (addr)
160a3b101f0SPierre Morel 		: "cc");
161a3b101f0SPierre Morel 	return cc;
162a3b101f0SPierre Morel }
163a3b101f0SPierre Morel 
164a3b101f0SPierre Morel static inline int msch(unsigned long schid, struct schib *addr)
165a3b101f0SPierre Morel {
166a3b101f0SPierre Morel 	register unsigned long reg1 asm ("1") = schid;
167a3b101f0SPierre Morel 	int cc;
168a3b101f0SPierre Morel 
169a3b101f0SPierre Morel 	asm volatile(
170a3b101f0SPierre Morel 		"	msch	0(%3)\n"
171a3b101f0SPierre Morel 		"	ipm	%0\n"
172a3b101f0SPierre Morel 		"	srl	%0,28"
173a3b101f0SPierre Morel 		: "=d" (cc)
174a3b101f0SPierre Morel 		: "d" (reg1), "m" (*addr), "a" (addr)
175a3b101f0SPierre Morel 		: "cc");
176a3b101f0SPierre Morel 	return cc;
177a3b101f0SPierre Morel }
178a3b101f0SPierre Morel 
179a3b101f0SPierre Morel static inline int tsch(unsigned long schid, struct irb *addr)
180a3b101f0SPierre Morel {
181a3b101f0SPierre Morel 	register unsigned long reg1 asm ("1") = schid;
182a3b101f0SPierre Morel 	int cc;
183a3b101f0SPierre Morel 
184a3b101f0SPierre Morel 	asm volatile(
185a3b101f0SPierre Morel 		"	tsch	0(%3)\n"
186a3b101f0SPierre Morel 		"	ipm	%0\n"
187a3b101f0SPierre Morel 		"	srl	%0,28"
188a3b101f0SPierre Morel 		: "=d" (cc), "=m" (*addr)
189a3b101f0SPierre Morel 		: "d" (reg1), "a" (addr)
190a3b101f0SPierre Morel 		: "cc");
191a3b101f0SPierre Morel 	return cc;
192a3b101f0SPierre Morel }
193a3b101f0SPierre Morel 
194a3b101f0SPierre Morel static inline int hsch(unsigned long schid)
195a3b101f0SPierre Morel {
196a3b101f0SPierre Morel 	register unsigned long reg1 asm("1") = schid;
197a3b101f0SPierre Morel 	int cc;
198a3b101f0SPierre Morel 
199a3b101f0SPierre Morel 	asm volatile(
200a3b101f0SPierre Morel 		"	hsch\n"
201a3b101f0SPierre Morel 		"	ipm	%0\n"
202a3b101f0SPierre Morel 		"	srl	%0,28"
203a3b101f0SPierre Morel 		: "=d" (cc)
204a3b101f0SPierre Morel 		: "d" (reg1)
205a3b101f0SPierre Morel 		: "cc");
206a3b101f0SPierre Morel 	return cc;
207a3b101f0SPierre Morel }
208a3b101f0SPierre Morel 
209a3b101f0SPierre Morel static inline int xsch(unsigned long schid)
210a3b101f0SPierre Morel {
211a3b101f0SPierre Morel 	register unsigned long reg1 asm("1") = schid;
212a3b101f0SPierre Morel 	int cc;
213a3b101f0SPierre Morel 
214a3b101f0SPierre Morel 	asm volatile(
215a3b101f0SPierre Morel 		"	xsch\n"
216a3b101f0SPierre Morel 		"	ipm	%0\n"
217a3b101f0SPierre Morel 		"	srl	%0,28"
218a3b101f0SPierre Morel 		: "=d" (cc)
219a3b101f0SPierre Morel 		: "d" (reg1)
220a3b101f0SPierre Morel 		: "cc");
221a3b101f0SPierre Morel 	return cc;
222a3b101f0SPierre Morel }
223a3b101f0SPierre Morel 
224a3b101f0SPierre Morel static inline int csch(unsigned long schid)
225a3b101f0SPierre Morel {
226a3b101f0SPierre Morel 	register unsigned long reg1 asm("1") = schid;
227a3b101f0SPierre Morel 	int cc;
228a3b101f0SPierre Morel 
229a3b101f0SPierre Morel 	asm volatile(
230a3b101f0SPierre Morel 		"	csch\n"
231a3b101f0SPierre Morel 		"	ipm	%0\n"
232a3b101f0SPierre Morel 		"	srl	%0,28"
233a3b101f0SPierre Morel 		: "=d" (cc)
234a3b101f0SPierre Morel 		: "d" (reg1)
235a3b101f0SPierre Morel 		: "cc");
236a3b101f0SPierre Morel 	return cc;
237a3b101f0SPierre Morel }
238a3b101f0SPierre Morel 
239a3b101f0SPierre Morel static inline int rsch(unsigned long schid)
240a3b101f0SPierre Morel {
241a3b101f0SPierre Morel 	register unsigned long reg1 asm("1") = schid;
242a3b101f0SPierre Morel 	int cc;
243a3b101f0SPierre Morel 
244a3b101f0SPierre Morel 	asm volatile(
245a3b101f0SPierre Morel 		"	rsch\n"
246a3b101f0SPierre Morel 		"	ipm	%0\n"
247a3b101f0SPierre Morel 		"	srl	%0,28"
248a3b101f0SPierre Morel 		: "=d" (cc)
249a3b101f0SPierre Morel 		: "d" (reg1)
250a3b101f0SPierre Morel 		: "cc");
251a3b101f0SPierre Morel 	return cc;
252a3b101f0SPierre Morel }
253a3b101f0SPierre Morel 
254a3b101f0SPierre Morel static inline int rchp(unsigned long chpid)
255a3b101f0SPierre Morel {
256a3b101f0SPierre Morel 	register unsigned long reg1 asm("1") = chpid;
257a3b101f0SPierre Morel 	int cc;
258a3b101f0SPierre Morel 
259a3b101f0SPierre Morel 	asm volatile(
260a3b101f0SPierre Morel 		"	rchp\n"
261a3b101f0SPierre Morel 		"	ipm	%0\n"
262a3b101f0SPierre Morel 		"	srl	%0,28"
263a3b101f0SPierre Morel 		: "=d" (cc)
264a3b101f0SPierre Morel 		: "d" (reg1)
265a3b101f0SPierre Morel 		: "cc");
266a3b101f0SPierre Morel 	return cc;
267a3b101f0SPierre Morel }
268a3b101f0SPierre Morel 
269a3b101f0SPierre Morel /* Debug functions */
270a3b101f0SPierre Morel char *dump_pmcw_flags(uint16_t f);
271a3b101f0SPierre Morel char *dump_scsw_flags(uint32_t f);
272a3b101f0SPierre Morel 
273a3b101f0SPierre Morel void dump_scsw(struct scsw *scsw);
274a3b101f0SPierre Morel void dump_irb(struct irb *irbp);
275a3b101f0SPierre Morel void dump_schib(struct schib *sch);
276a3b101f0SPierre Morel struct ccw1 *dump_ccw(struct ccw1 *cp);
277a3b101f0SPierre Morel void dump_irb(struct irb *irbp);
278a3b101f0SPierre Morel void dump_pmcw(struct pmcw *p);
279a3b101f0SPierre Morel void dump_orb(struct orb *op);
280a3b101f0SPierre Morel 
281a3b101f0SPierre Morel int css_enumerate(void);
282a3b101f0SPierre Morel #define MAX_ENABLE_RETRIES      5
283a3b101f0SPierre Morel 
284551e6622SPierre Morel #define IO_SCH_ISC      3
285551e6622SPierre Morel int css_enable(int schid, int isc);
286d3d7fa5aSPierre Morel bool css_enabled(int schid);
2878cb729e4SPierre Morel 
2888cb729e4SPierre Morel /* Library functions */
2898cb729e4SPierre Morel int start_ccw1_chain(unsigned int sid, struct ccw1 *ccw);
290a6e5e596SPierre Morel struct ccw1 *ccw_alloc(int code, void *data, int count, unsigned char flags);
2918cb729e4SPierre Morel void css_irq_io(void);
2928cb729e4SPierre Morel int css_residual_count(unsigned int schid);
2938cb729e4SPierre Morel 
2948cb729e4SPierre Morel void enable_io_isc(uint8_t isc);
2958cb729e4SPierre Morel int wait_and_check_io_completion(int schid);
2968cb729e4SPierre Morel 
2977fbcef02SPierre Morel /*
2987fbcef02SPierre Morel  * CHSC definitions
2997fbcef02SPierre Morel  */
3007fbcef02SPierre Morel struct chsc_header {
3017fbcef02SPierre Morel 	uint16_t len;
3027fbcef02SPierre Morel 	uint16_t code;
3037fbcef02SPierre Morel };
3047fbcef02SPierre Morel 
3057fbcef02SPierre Morel /* Store Channel Subsystem Characteristics */
3067fbcef02SPierre Morel struct chsc_scsc {
3077fbcef02SPierre Morel 	struct chsc_header req;
3087fbcef02SPierre Morel 	uint16_t req_fmt;
3097fbcef02SPierre Morel 	uint8_t cssid;
3107fbcef02SPierre Morel 	uint8_t reserved[9];
3117fbcef02SPierre Morel 	struct chsc_header res;
3127fbcef02SPierre Morel 	uint32_t res_fmt;
313d6c5a00eSPierre Morel #define CSSC_EXTENDED_MEASUREMENT_BLOCK 48
3147fbcef02SPierre Morel 	uint64_t general_char[255];
3157fbcef02SPierre Morel 	uint64_t chsc_char[254];
3167fbcef02SPierre Morel };
3177fbcef02SPierre Morel 
3187fbcef02SPierre Morel extern struct chsc_scsc *chsc_scsc;
3197fbcef02SPierre Morel #define CHSC_SCSC	0x0010
3207fbcef02SPierre Morel #define CHSC_SCSC_LEN	0x0010
3217fbcef02SPierre Morel 
3227fbcef02SPierre Morel bool get_chsc_scsc(void);
3237fbcef02SPierre Morel 
3247fbcef02SPierre Morel #define CSS_GENERAL_FEAT_BITLEN	(255 * 64)
3257fbcef02SPierre Morel #define CSS_CHSC_FEAT_BITLEN	(254 * 64)
3267fbcef02SPierre Morel 
3277fbcef02SPierre Morel #define CHSC_SCSC	0x0010
3287fbcef02SPierre Morel #define CHSC_SCSC_LEN	0x0010
3297fbcef02SPierre Morel 
3307fbcef02SPierre Morel #define CHSC_ERROR	0x0000
3317fbcef02SPierre Morel #define CHSC_RSP_OK	0x0001
3327fbcef02SPierre Morel #define CHSC_RSP_INVAL	0x0002
3337fbcef02SPierre Morel #define CHSC_RSP_REQERR	0x0003
3347fbcef02SPierre Morel #define CHSC_RSP_ENOCMD	0x0004
3357fbcef02SPierre Morel #define CHSC_RSP_NODATA	0x0005
3367fbcef02SPierre Morel #define CHSC_RSP_SUP31B	0x0006
3377fbcef02SPierre Morel #define CHSC_RSP_EFRMT	0x0007
3387fbcef02SPierre Morel #define CHSC_RSP_ECSSID	0x0008
3397fbcef02SPierre Morel #define CHSC_RSP_ERFRMT	0x0009
3407fbcef02SPierre Morel #define CHSC_RSP_ESSID	0x000A
3417fbcef02SPierre Morel #define CHSC_RSP_EBUSY	0x000B
3427fbcef02SPierre Morel #define CHSC_RSP_MAX	0x000B
3437fbcef02SPierre Morel 
3447fbcef02SPierre Morel static inline int _chsc(void *p)
3457fbcef02SPierre Morel {
3467fbcef02SPierre Morel 	int cc;
3477fbcef02SPierre Morel 
3487fbcef02SPierre Morel 	asm volatile(" .insn   rre,0xb25f0000,%2,0\n"
3497fbcef02SPierre Morel 		     " ipm     %0\n"
3507fbcef02SPierre Morel 		     " srl     %0,28\n"
3517fbcef02SPierre Morel 		     : "=d" (cc), "=m" (p)
3527fbcef02SPierre Morel 		     : "d" (p), "m" (p)
3537fbcef02SPierre Morel 		     : "cc");
3547fbcef02SPierre Morel 
3557fbcef02SPierre Morel 	return cc;
3567fbcef02SPierre Morel }
3577fbcef02SPierre Morel 
3587fbcef02SPierre Morel bool chsc(void *p, uint16_t code, uint16_t len);
3597fbcef02SPierre Morel 
3607fbcef02SPierre Morel #include <bitops.h>
3617fbcef02SPierre Morel #define css_test_general_feature(bit) test_bit_inv(bit, chsc_scsc->general_char)
3627fbcef02SPierre Morel #define css_test_chsc_feature(bit) test_bit_inv(bit, chsc_scsc->chsc_char)
3637fbcef02SPierre Morel 
364d6c5a00eSPierre Morel #define SCHM_DCTM	1 /* activate Device Connection TiMe */
365d6c5a00eSPierre Morel #define SCHM_MBU	2 /* activate Measurement Block Update */
366d6c5a00eSPierre Morel 
367d6c5a00eSPierre Morel static inline void schm(void *mbo, unsigned int flags)
368d6c5a00eSPierre Morel {
369d6c5a00eSPierre Morel 	register void *__gpr2 asm("2") = mbo;
370d6c5a00eSPierre Morel 	register long __gpr1 asm("1") = flags;
371d6c5a00eSPierre Morel 
372d6c5a00eSPierre Morel 	asm("schm" : : "d" (__gpr2), "d" (__gpr1));
373d6c5a00eSPierre Morel }
374d6c5a00eSPierre Morel 
3753c4ae93fSPierre Morel bool css_enable_mb(int sid, uint64_t mb, uint16_t mbi, uint16_t flg, bool fmt1);
3763c4ae93fSPierre Morel bool css_disable_mb(int schid);
3773c4ae93fSPierre Morel 
378a87cf540SPierre Morel struct measurement_block_format0 {
379a87cf540SPierre Morel 	uint16_t ssch_rsch_count;
380a87cf540SPierre Morel 	uint16_t sample_count;
381a87cf540SPierre Morel 	uint32_t device_connect_time;
382a87cf540SPierre Morel 	uint32_t function_pending_time;
383a87cf540SPierre Morel 	uint32_t device_disconnect_time;
384a87cf540SPierre Morel 	uint32_t cu_queuing_time;
385a87cf540SPierre Morel 	uint32_t device_active_only_time;
386a87cf540SPierre Morel 	uint32_t device_busy_time;
387a87cf540SPierre Morel 	uint32_t initial_cmd_resp_time;
388a87cf540SPierre Morel };
389a87cf540SPierre Morel 
390*fa68e2a8SPierre Morel struct measurement_block_format1 {
391*fa68e2a8SPierre Morel 	uint32_t ssch_rsch_count;
392*fa68e2a8SPierre Morel 	uint32_t sample_count;
393*fa68e2a8SPierre Morel 	uint32_t device_connect_time;
394*fa68e2a8SPierre Morel 	uint32_t function_pending_time;
395*fa68e2a8SPierre Morel 	uint32_t device_disconnect_time;
396*fa68e2a8SPierre Morel 	uint32_t cu_queuing_time;
397*fa68e2a8SPierre Morel 	uint32_t device_active_only_time;
398*fa68e2a8SPierre Morel 	uint32_t device_busy_time;
399*fa68e2a8SPierre Morel 	uint32_t initial_cmd_resp_time;
400*fa68e2a8SPierre Morel 	uint32_t irq_delay_time;
401*fa68e2a8SPierre Morel 	uint32_t irq_prio_delay_time;
402*fa68e2a8SPierre Morel };
403*fa68e2a8SPierre Morel 
404a3b101f0SPierre Morel #endif
405