xref: /kvm-unit-tests/lib/s390x/css.h (revision a87cf540888afa7024b024cb4167cef53446150e)
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)));
110a3b101f0SPierre Morel 
111a3b101f0SPierre Morel struct irb {
112a3b101f0SPierre Morel 	struct scsw scsw;
113a3b101f0SPierre Morel 	uint32_t esw[5];
114a3b101f0SPierre Morel 	uint32_t ecw[8];
115a3b101f0SPierre Morel 	uint32_t emw[8];
116a3b101f0SPierre Morel } __attribute__ ((aligned(4)));
117a3b101f0SPierre Morel 
1188cb729e4SPierre Morel #define CCW_CMD_SENSE_ID	0xe4
1198cb729e4SPierre Morel #define CSS_SENSEID_COMMON_LEN	8
1208cb729e4SPierre Morel struct senseid {
1218cb729e4SPierre Morel 	/* common part */
1228cb729e4SPierre Morel 	uint8_t reserved;        /* always 0x'FF' */
1238cb729e4SPierre Morel 	uint16_t cu_type;        /* control unit type */
1248cb729e4SPierre Morel 	uint8_t cu_model;        /* control unit model */
1258cb729e4SPierre Morel 	uint16_t dev_type;       /* device type */
1268cb729e4SPierre Morel 	uint8_t dev_model;       /* device model */
1278cb729e4SPierre Morel 	uint8_t unused;          /* padding byte */
1288cb729e4SPierre Morel 	uint8_t padding[256 - 8]; /* Extended part */
1298cb729e4SPierre Morel } __attribute__ ((aligned(4))) __attribute__ ((packed));
1308cb729e4SPierre Morel 
131a3b101f0SPierre Morel /* CSS low level access functions */
132a3b101f0SPierre Morel 
133a3b101f0SPierre Morel static inline int ssch(unsigned long schid, struct orb *addr)
134a3b101f0SPierre Morel {
135a3b101f0SPierre Morel 	register long long reg1 asm("1") = schid;
136a3b101f0SPierre Morel 	int cc;
137a3b101f0SPierre Morel 
138a3b101f0SPierre Morel 	asm volatile(
139a3b101f0SPierre Morel 		"	ssch	0(%2)\n"
140a3b101f0SPierre Morel 		"	ipm	%0\n"
141a3b101f0SPierre Morel 		"	srl	%0,28\n"
142a3b101f0SPierre Morel 		: "=d" (cc)
143a3b101f0SPierre Morel 		: "d" (reg1), "a" (addr), "m" (*addr)
144a3b101f0SPierre Morel 		: "cc", "memory");
145a3b101f0SPierre Morel 	return cc;
146a3b101f0SPierre Morel }
147a3b101f0SPierre Morel 
148a3b101f0SPierre Morel static inline int stsch(unsigned long schid, struct schib *addr)
149a3b101f0SPierre Morel {
150a3b101f0SPierre Morel 	register unsigned long reg1 asm ("1") = schid;
151a3b101f0SPierre Morel 	int cc;
152a3b101f0SPierre Morel 
153a3b101f0SPierre Morel 	asm volatile(
154a3b101f0SPierre Morel 		"	stsch	0(%3)\n"
155a3b101f0SPierre Morel 		"	ipm	%0\n"
156a3b101f0SPierre Morel 		"	srl	%0,28"
157a3b101f0SPierre Morel 		: "=d" (cc), "=m" (*addr)
158a3b101f0SPierre Morel 		: "d" (reg1), "a" (addr)
159a3b101f0SPierre Morel 		: "cc");
160a3b101f0SPierre Morel 	return cc;
161a3b101f0SPierre Morel }
162a3b101f0SPierre Morel 
163a3b101f0SPierre Morel static inline int msch(unsigned long schid, struct schib *addr)
164a3b101f0SPierre Morel {
165a3b101f0SPierre Morel 	register unsigned long reg1 asm ("1") = schid;
166a3b101f0SPierre Morel 	int cc;
167a3b101f0SPierre Morel 
168a3b101f0SPierre Morel 	asm volatile(
169a3b101f0SPierre Morel 		"	msch	0(%3)\n"
170a3b101f0SPierre Morel 		"	ipm	%0\n"
171a3b101f0SPierre Morel 		"	srl	%0,28"
172a3b101f0SPierre Morel 		: "=d" (cc)
173a3b101f0SPierre Morel 		: "d" (reg1), "m" (*addr), "a" (addr)
174a3b101f0SPierre Morel 		: "cc");
175a3b101f0SPierre Morel 	return cc;
176a3b101f0SPierre Morel }
177a3b101f0SPierre Morel 
178a3b101f0SPierre Morel static inline int tsch(unsigned long schid, struct irb *addr)
179a3b101f0SPierre Morel {
180a3b101f0SPierre Morel 	register unsigned long reg1 asm ("1") = schid;
181a3b101f0SPierre Morel 	int cc;
182a3b101f0SPierre Morel 
183a3b101f0SPierre Morel 	asm volatile(
184a3b101f0SPierre Morel 		"	tsch	0(%3)\n"
185a3b101f0SPierre Morel 		"	ipm	%0\n"
186a3b101f0SPierre Morel 		"	srl	%0,28"
187a3b101f0SPierre Morel 		: "=d" (cc), "=m" (*addr)
188a3b101f0SPierre Morel 		: "d" (reg1), "a" (addr)
189a3b101f0SPierre Morel 		: "cc");
190a3b101f0SPierre Morel 	return cc;
191a3b101f0SPierre Morel }
192a3b101f0SPierre Morel 
193a3b101f0SPierre Morel static inline int hsch(unsigned long schid)
194a3b101f0SPierre Morel {
195a3b101f0SPierre Morel 	register unsigned long reg1 asm("1") = schid;
196a3b101f0SPierre Morel 	int cc;
197a3b101f0SPierre Morel 
198a3b101f0SPierre Morel 	asm volatile(
199a3b101f0SPierre Morel 		"	hsch\n"
200a3b101f0SPierre Morel 		"	ipm	%0\n"
201a3b101f0SPierre Morel 		"	srl	%0,28"
202a3b101f0SPierre Morel 		: "=d" (cc)
203a3b101f0SPierre Morel 		: "d" (reg1)
204a3b101f0SPierre Morel 		: "cc");
205a3b101f0SPierre Morel 	return cc;
206a3b101f0SPierre Morel }
207a3b101f0SPierre Morel 
208a3b101f0SPierre Morel static inline int xsch(unsigned long schid)
209a3b101f0SPierre Morel {
210a3b101f0SPierre Morel 	register unsigned long reg1 asm("1") = schid;
211a3b101f0SPierre Morel 	int cc;
212a3b101f0SPierre Morel 
213a3b101f0SPierre Morel 	asm volatile(
214a3b101f0SPierre Morel 		"	xsch\n"
215a3b101f0SPierre Morel 		"	ipm	%0\n"
216a3b101f0SPierre Morel 		"	srl	%0,28"
217a3b101f0SPierre Morel 		: "=d" (cc)
218a3b101f0SPierre Morel 		: "d" (reg1)
219a3b101f0SPierre Morel 		: "cc");
220a3b101f0SPierre Morel 	return cc;
221a3b101f0SPierre Morel }
222a3b101f0SPierre Morel 
223a3b101f0SPierre Morel static inline int csch(unsigned long schid)
224a3b101f0SPierre Morel {
225a3b101f0SPierre Morel 	register unsigned long reg1 asm("1") = schid;
226a3b101f0SPierre Morel 	int cc;
227a3b101f0SPierre Morel 
228a3b101f0SPierre Morel 	asm volatile(
229a3b101f0SPierre Morel 		"	csch\n"
230a3b101f0SPierre Morel 		"	ipm	%0\n"
231a3b101f0SPierre Morel 		"	srl	%0,28"
232a3b101f0SPierre Morel 		: "=d" (cc)
233a3b101f0SPierre Morel 		: "d" (reg1)
234a3b101f0SPierre Morel 		: "cc");
235a3b101f0SPierre Morel 	return cc;
236a3b101f0SPierre Morel }
237a3b101f0SPierre Morel 
238a3b101f0SPierre Morel static inline int rsch(unsigned long schid)
239a3b101f0SPierre Morel {
240a3b101f0SPierre Morel 	register unsigned long reg1 asm("1") = schid;
241a3b101f0SPierre Morel 	int cc;
242a3b101f0SPierre Morel 
243a3b101f0SPierre Morel 	asm volatile(
244a3b101f0SPierre Morel 		"	rsch\n"
245a3b101f0SPierre Morel 		"	ipm	%0\n"
246a3b101f0SPierre Morel 		"	srl	%0,28"
247a3b101f0SPierre Morel 		: "=d" (cc)
248a3b101f0SPierre Morel 		: "d" (reg1)
249a3b101f0SPierre Morel 		: "cc");
250a3b101f0SPierre Morel 	return cc;
251a3b101f0SPierre Morel }
252a3b101f0SPierre Morel 
253a3b101f0SPierre Morel static inline int rchp(unsigned long chpid)
254a3b101f0SPierre Morel {
255a3b101f0SPierre Morel 	register unsigned long reg1 asm("1") = chpid;
256a3b101f0SPierre Morel 	int cc;
257a3b101f0SPierre Morel 
258a3b101f0SPierre Morel 	asm volatile(
259a3b101f0SPierre Morel 		"	rchp\n"
260a3b101f0SPierre Morel 		"	ipm	%0\n"
261a3b101f0SPierre Morel 		"	srl	%0,28"
262a3b101f0SPierre Morel 		: "=d" (cc)
263a3b101f0SPierre Morel 		: "d" (reg1)
264a3b101f0SPierre Morel 		: "cc");
265a3b101f0SPierre Morel 	return cc;
266a3b101f0SPierre Morel }
267a3b101f0SPierre Morel 
268a3b101f0SPierre Morel /* Debug functions */
269a3b101f0SPierre Morel char *dump_pmcw_flags(uint16_t f);
270a3b101f0SPierre Morel char *dump_scsw_flags(uint32_t f);
271a3b101f0SPierre Morel 
272a3b101f0SPierre Morel void dump_scsw(struct scsw *scsw);
273a3b101f0SPierre Morel void dump_irb(struct irb *irbp);
274a3b101f0SPierre Morel void dump_schib(struct schib *sch);
275a3b101f0SPierre Morel struct ccw1 *dump_ccw(struct ccw1 *cp);
276a3b101f0SPierre Morel void dump_irb(struct irb *irbp);
277a3b101f0SPierre Morel void dump_pmcw(struct pmcw *p);
278a3b101f0SPierre Morel void dump_orb(struct orb *op);
279a3b101f0SPierre Morel 
280a3b101f0SPierre Morel int css_enumerate(void);
281a3b101f0SPierre Morel #define MAX_ENABLE_RETRIES      5
282a3b101f0SPierre Morel 
283551e6622SPierre Morel #define IO_SCH_ISC      3
284551e6622SPierre Morel int css_enable(int schid, int isc);
285d3d7fa5aSPierre Morel bool css_enabled(int schid);
2868cb729e4SPierre Morel 
2878cb729e4SPierre Morel /* Library functions */
2888cb729e4SPierre Morel int start_ccw1_chain(unsigned int sid, struct ccw1 *ccw);
289a6e5e596SPierre Morel struct ccw1 *ccw_alloc(int code, void *data, int count, unsigned char flags);
2908cb729e4SPierre Morel void css_irq_io(void);
2918cb729e4SPierre Morel int css_residual_count(unsigned int schid);
2928cb729e4SPierre Morel 
2938cb729e4SPierre Morel void enable_io_isc(uint8_t isc);
2948cb729e4SPierre Morel int wait_and_check_io_completion(int schid);
2958cb729e4SPierre Morel 
2967fbcef02SPierre Morel /*
2977fbcef02SPierre Morel  * CHSC definitions
2987fbcef02SPierre Morel  */
2997fbcef02SPierre Morel struct chsc_header {
3007fbcef02SPierre Morel 	uint16_t len;
3017fbcef02SPierre Morel 	uint16_t code;
3027fbcef02SPierre Morel };
3037fbcef02SPierre Morel 
3047fbcef02SPierre Morel /* Store Channel Subsystem Characteristics */
3057fbcef02SPierre Morel struct chsc_scsc {
3067fbcef02SPierre Morel 	struct chsc_header req;
3077fbcef02SPierre Morel 	uint16_t req_fmt;
3087fbcef02SPierre Morel 	uint8_t cssid;
3097fbcef02SPierre Morel 	uint8_t reserved[9];
3107fbcef02SPierre Morel 	struct chsc_header res;
3117fbcef02SPierre Morel 	uint32_t res_fmt;
312d6c5a00eSPierre Morel #define CSSC_EXTENDED_MEASUREMENT_BLOCK 48
3137fbcef02SPierre Morel 	uint64_t general_char[255];
3147fbcef02SPierre Morel 	uint64_t chsc_char[254];
3157fbcef02SPierre Morel };
3167fbcef02SPierre Morel 
3177fbcef02SPierre Morel extern struct chsc_scsc *chsc_scsc;
3187fbcef02SPierre Morel #define CHSC_SCSC	0x0010
3197fbcef02SPierre Morel #define CHSC_SCSC_LEN	0x0010
3207fbcef02SPierre Morel 
3217fbcef02SPierre Morel bool get_chsc_scsc(void);
3227fbcef02SPierre Morel 
3237fbcef02SPierre Morel #define CSS_GENERAL_FEAT_BITLEN	(255 * 64)
3247fbcef02SPierre Morel #define CSS_CHSC_FEAT_BITLEN	(254 * 64)
3257fbcef02SPierre Morel 
3267fbcef02SPierre Morel #define CHSC_SCSC	0x0010
3277fbcef02SPierre Morel #define CHSC_SCSC_LEN	0x0010
3287fbcef02SPierre Morel 
3297fbcef02SPierre Morel #define CHSC_ERROR	0x0000
3307fbcef02SPierre Morel #define CHSC_RSP_OK	0x0001
3317fbcef02SPierre Morel #define CHSC_RSP_INVAL	0x0002
3327fbcef02SPierre Morel #define CHSC_RSP_REQERR	0x0003
3337fbcef02SPierre Morel #define CHSC_RSP_ENOCMD	0x0004
3347fbcef02SPierre Morel #define CHSC_RSP_NODATA	0x0005
3357fbcef02SPierre Morel #define CHSC_RSP_SUP31B	0x0006
3367fbcef02SPierre Morel #define CHSC_RSP_EFRMT	0x0007
3377fbcef02SPierre Morel #define CHSC_RSP_ECSSID	0x0008
3387fbcef02SPierre Morel #define CHSC_RSP_ERFRMT	0x0009
3397fbcef02SPierre Morel #define CHSC_RSP_ESSID	0x000A
3407fbcef02SPierre Morel #define CHSC_RSP_EBUSY	0x000B
3417fbcef02SPierre Morel #define CHSC_RSP_MAX	0x000B
3427fbcef02SPierre Morel 
3437fbcef02SPierre Morel static inline int _chsc(void *p)
3447fbcef02SPierre Morel {
3457fbcef02SPierre Morel 	int cc;
3467fbcef02SPierre Morel 
3477fbcef02SPierre Morel 	asm volatile(" .insn   rre,0xb25f0000,%2,0\n"
3487fbcef02SPierre Morel 		     " ipm     %0\n"
3497fbcef02SPierre Morel 		     " srl     %0,28\n"
3507fbcef02SPierre Morel 		     : "=d" (cc), "=m" (p)
3517fbcef02SPierre Morel 		     : "d" (p), "m" (p)
3527fbcef02SPierre Morel 		     : "cc");
3537fbcef02SPierre Morel 
3547fbcef02SPierre Morel 	return cc;
3557fbcef02SPierre Morel }
3567fbcef02SPierre Morel 
3577fbcef02SPierre Morel bool chsc(void *p, uint16_t code, uint16_t len);
3587fbcef02SPierre Morel 
3597fbcef02SPierre Morel #include <bitops.h>
3607fbcef02SPierre Morel #define css_test_general_feature(bit) test_bit_inv(bit, chsc_scsc->general_char)
3617fbcef02SPierre Morel #define css_test_chsc_feature(bit) test_bit_inv(bit, chsc_scsc->chsc_char)
3627fbcef02SPierre Morel 
363d6c5a00eSPierre Morel #define SCHM_DCTM	1 /* activate Device Connection TiMe */
364d6c5a00eSPierre Morel #define SCHM_MBU	2 /* activate Measurement Block Update */
365d6c5a00eSPierre Morel 
366d6c5a00eSPierre Morel static inline void schm(void *mbo, unsigned int flags)
367d6c5a00eSPierre Morel {
368d6c5a00eSPierre Morel 	register void *__gpr2 asm("2") = mbo;
369d6c5a00eSPierre Morel 	register long __gpr1 asm("1") = flags;
370d6c5a00eSPierre Morel 
371d6c5a00eSPierre Morel 	asm("schm" : : "d" (__gpr2), "d" (__gpr1));
372d6c5a00eSPierre Morel }
373d6c5a00eSPierre Morel 
3743c4ae93fSPierre Morel bool css_enable_mb(int sid, uint64_t mb, uint16_t mbi, uint16_t flg, bool fmt1);
3753c4ae93fSPierre Morel bool css_disable_mb(int schid);
3763c4ae93fSPierre Morel 
377*a87cf540SPierre Morel struct measurement_block_format0 {
378*a87cf540SPierre Morel 	uint16_t ssch_rsch_count;
379*a87cf540SPierre Morel 	uint16_t sample_count;
380*a87cf540SPierre Morel 	uint32_t device_connect_time;
381*a87cf540SPierre Morel 	uint32_t function_pending_time;
382*a87cf540SPierre Morel 	uint32_t device_disconnect_time;
383*a87cf540SPierre Morel 	uint32_t cu_queuing_time;
384*a87cf540SPierre Morel 	uint32_t device_active_only_time;
385*a87cf540SPierre Morel 	uint32_t device_busy_time;
386*a87cf540SPierre Morel 	uint32_t initial_cmd_resp_time;
387*a87cf540SPierre Morel };
388*a87cf540SPierre Morel 
389a3b101f0SPierre Morel #endif
390