1*4882a593Smuzhiyun /* SPDX-License-Identifier: GPL-2.0 */
2*4882a593Smuzhiyun /*
3*4882a593Smuzhiyun * Intel(R) Trace Hub data structures
4*4882a593Smuzhiyun *
5*4882a593Smuzhiyun * Copyright (C) 2014-2015 Intel Corporation.
6*4882a593Smuzhiyun */
7*4882a593Smuzhiyun
8*4882a593Smuzhiyun #ifndef __INTEL_TH_H__
9*4882a593Smuzhiyun #define __INTEL_TH_H__
10*4882a593Smuzhiyun
11*4882a593Smuzhiyun #include <linux/irqreturn.h>
12*4882a593Smuzhiyun
13*4882a593Smuzhiyun /* intel_th_device device types */
14*4882a593Smuzhiyun enum {
15*4882a593Smuzhiyun /* Devices that generate trace data */
16*4882a593Smuzhiyun INTEL_TH_SOURCE = 0,
17*4882a593Smuzhiyun /* Output ports (MSC, PTI) */
18*4882a593Smuzhiyun INTEL_TH_OUTPUT,
19*4882a593Smuzhiyun /* Switch, the Global Trace Hub (GTH) */
20*4882a593Smuzhiyun INTEL_TH_SWITCH,
21*4882a593Smuzhiyun };
22*4882a593Smuzhiyun
23*4882a593Smuzhiyun struct intel_th_device;
24*4882a593Smuzhiyun
25*4882a593Smuzhiyun /**
26*4882a593Smuzhiyun * struct intel_th_output - descriptor INTEL_TH_OUTPUT type devices
27*4882a593Smuzhiyun * @port: output port number, assigned by the switch
28*4882a593Smuzhiyun * @type: GTH_{MSU,CTP,PTI}
29*4882a593Smuzhiyun * @scratchpad: scratchpad bits to flag when this output is enabled
30*4882a593Smuzhiyun * @multiblock: true for multiblock output configuration
31*4882a593Smuzhiyun * @active: true when this output is enabled
32*4882a593Smuzhiyun * @wait_empty: wait for device pipeline to be empty
33*4882a593Smuzhiyun *
34*4882a593Smuzhiyun * Output port descriptor, used by switch driver to tell which output
35*4882a593Smuzhiyun * port this output device corresponds to. Filled in at output device's
36*4882a593Smuzhiyun * probe time by switch::assign(). Passed from output device driver to
37*4882a593Smuzhiyun * switch related code to enable/disable its port.
38*4882a593Smuzhiyun */
39*4882a593Smuzhiyun struct intel_th_output {
40*4882a593Smuzhiyun int port;
41*4882a593Smuzhiyun unsigned int type;
42*4882a593Smuzhiyun unsigned int scratchpad;
43*4882a593Smuzhiyun bool multiblock;
44*4882a593Smuzhiyun bool active;
45*4882a593Smuzhiyun };
46*4882a593Smuzhiyun
47*4882a593Smuzhiyun /**
48*4882a593Smuzhiyun * struct intel_th_drvdata - describes hardware capabilities and quirks
49*4882a593Smuzhiyun * @tscu_enable: device needs SW to enable time stamping unit
50*4882a593Smuzhiyun * @multi_is_broken: device has multiblock mode is broken
51*4882a593Smuzhiyun * @has_mintctl: device has interrupt control (MINTCTL) register
52*4882a593Smuzhiyun * @host_mode_only: device can only operate in 'host debugger' mode
53*4882a593Smuzhiyun */
54*4882a593Smuzhiyun struct intel_th_drvdata {
55*4882a593Smuzhiyun unsigned int tscu_enable : 1,
56*4882a593Smuzhiyun multi_is_broken : 1,
57*4882a593Smuzhiyun has_mintctl : 1,
58*4882a593Smuzhiyun host_mode_only : 1;
59*4882a593Smuzhiyun };
60*4882a593Smuzhiyun
61*4882a593Smuzhiyun #define INTEL_TH_CAP(_th, _cap) ((_th)->drvdata ? (_th)->drvdata->_cap : 0)
62*4882a593Smuzhiyun
63*4882a593Smuzhiyun /**
64*4882a593Smuzhiyun * struct intel_th_device - device on the intel_th bus
65*4882a593Smuzhiyun * @dev: device
66*4882a593Smuzhiyun * @drvdata: hardware capabilities/quirks
67*4882a593Smuzhiyun * @resource: array of resources available to this device
68*4882a593Smuzhiyun * @num_resources: number of resources in @resource array
69*4882a593Smuzhiyun * @type: INTEL_TH_{SOURCE,OUTPUT,SWITCH}
70*4882a593Smuzhiyun * @id: device instance or -1
71*4882a593Smuzhiyun * @host_mode: Intel TH is controlled by an external debug host
72*4882a593Smuzhiyun * @output: output descriptor for INTEL_TH_OUTPUT devices
73*4882a593Smuzhiyun * @name: device name to match the driver
74*4882a593Smuzhiyun */
75*4882a593Smuzhiyun struct intel_th_device {
76*4882a593Smuzhiyun struct device dev;
77*4882a593Smuzhiyun struct intel_th_drvdata *drvdata;
78*4882a593Smuzhiyun struct resource *resource;
79*4882a593Smuzhiyun unsigned int num_resources;
80*4882a593Smuzhiyun unsigned int type;
81*4882a593Smuzhiyun int id;
82*4882a593Smuzhiyun
83*4882a593Smuzhiyun /* INTEL_TH_SWITCH specific */
84*4882a593Smuzhiyun bool host_mode;
85*4882a593Smuzhiyun
86*4882a593Smuzhiyun /* INTEL_TH_OUTPUT specific */
87*4882a593Smuzhiyun struct intel_th_output output;
88*4882a593Smuzhiyun
89*4882a593Smuzhiyun char name[];
90*4882a593Smuzhiyun };
91*4882a593Smuzhiyun
92*4882a593Smuzhiyun #define to_intel_th_device(_d) \
93*4882a593Smuzhiyun container_of((_d), struct intel_th_device, dev)
94*4882a593Smuzhiyun
95*4882a593Smuzhiyun /**
96*4882a593Smuzhiyun * intel_th_device_get_resource() - obtain @num'th resource of type @type
97*4882a593Smuzhiyun * @thdev: the device to search the resource for
98*4882a593Smuzhiyun * @type: resource type
99*4882a593Smuzhiyun * @num: number of the resource
100*4882a593Smuzhiyun */
101*4882a593Smuzhiyun static inline struct resource *
intel_th_device_get_resource(struct intel_th_device * thdev,unsigned int type,unsigned int num)102*4882a593Smuzhiyun intel_th_device_get_resource(struct intel_th_device *thdev, unsigned int type,
103*4882a593Smuzhiyun unsigned int num)
104*4882a593Smuzhiyun {
105*4882a593Smuzhiyun int i;
106*4882a593Smuzhiyun
107*4882a593Smuzhiyun for (i = 0; i < thdev->num_resources; i++)
108*4882a593Smuzhiyun if (resource_type(&thdev->resource[i]) == type && !num--)
109*4882a593Smuzhiyun return &thdev->resource[i];
110*4882a593Smuzhiyun
111*4882a593Smuzhiyun return NULL;
112*4882a593Smuzhiyun }
113*4882a593Smuzhiyun
114*4882a593Smuzhiyun /*
115*4882a593Smuzhiyun * GTH, output ports configuration
116*4882a593Smuzhiyun */
117*4882a593Smuzhiyun enum {
118*4882a593Smuzhiyun GTH_NONE = 0,
119*4882a593Smuzhiyun GTH_MSU, /* memory/usb */
120*4882a593Smuzhiyun GTH_CTP, /* Common Trace Port */
121*4882a593Smuzhiyun GTH_LPP, /* Low Power Path */
122*4882a593Smuzhiyun GTH_PTI, /* MIPI-PTI */
123*4882a593Smuzhiyun };
124*4882a593Smuzhiyun
125*4882a593Smuzhiyun /**
126*4882a593Smuzhiyun * intel_th_output_assigned() - if an output device is assigned to a switch port
127*4882a593Smuzhiyun * @thdev: the output device
128*4882a593Smuzhiyun *
129*4882a593Smuzhiyun * Return: true if the device is INTEL_TH_OUTPUT *and* is assigned a port
130*4882a593Smuzhiyun */
131*4882a593Smuzhiyun static inline bool
intel_th_output_assigned(struct intel_th_device * thdev)132*4882a593Smuzhiyun intel_th_output_assigned(struct intel_th_device *thdev)
133*4882a593Smuzhiyun {
134*4882a593Smuzhiyun return thdev->type == INTEL_TH_OUTPUT &&
135*4882a593Smuzhiyun (thdev->output.port >= 0 ||
136*4882a593Smuzhiyun thdev->output.type == GTH_NONE);
137*4882a593Smuzhiyun }
138*4882a593Smuzhiyun
139*4882a593Smuzhiyun /**
140*4882a593Smuzhiyun * struct intel_th_driver - driver for an intel_th_device device
141*4882a593Smuzhiyun * @driver: generic driver
142*4882a593Smuzhiyun * @probe: probe method
143*4882a593Smuzhiyun * @remove: remove method
144*4882a593Smuzhiyun * @assign: match a given output type device against available outputs
145*4882a593Smuzhiyun * @unassign: deassociate an output type device from an output port
146*4882a593Smuzhiyun * @prepare: prepare output port for tracing
147*4882a593Smuzhiyun * @enable: enable tracing for a given output device
148*4882a593Smuzhiyun * @disable: disable tracing for a given output device
149*4882a593Smuzhiyun * @irq: interrupt callback
150*4882a593Smuzhiyun * @activate: enable tracing on the output's side
151*4882a593Smuzhiyun * @deactivate: disable tracing on the output's side
152*4882a593Smuzhiyun * @fops: file operations for device nodes
153*4882a593Smuzhiyun * @attr_group: attributes provided by the driver
154*4882a593Smuzhiyun *
155*4882a593Smuzhiyun * Callbacks @probe and @remove are required for all device types.
156*4882a593Smuzhiyun * Switch device driver needs to fill in @assign, @enable and @disable
157*4882a593Smuzhiyun * callbacks.
158*4882a593Smuzhiyun */
159*4882a593Smuzhiyun struct intel_th_driver {
160*4882a593Smuzhiyun struct device_driver driver;
161*4882a593Smuzhiyun int (*probe)(struct intel_th_device *thdev);
162*4882a593Smuzhiyun void (*remove)(struct intel_th_device *thdev);
163*4882a593Smuzhiyun /* switch (GTH) ops */
164*4882a593Smuzhiyun int (*assign)(struct intel_th_device *thdev,
165*4882a593Smuzhiyun struct intel_th_device *othdev);
166*4882a593Smuzhiyun void (*unassign)(struct intel_th_device *thdev,
167*4882a593Smuzhiyun struct intel_th_device *othdev);
168*4882a593Smuzhiyun void (*prepare)(struct intel_th_device *thdev,
169*4882a593Smuzhiyun struct intel_th_output *output);
170*4882a593Smuzhiyun void (*enable)(struct intel_th_device *thdev,
171*4882a593Smuzhiyun struct intel_th_output *output);
172*4882a593Smuzhiyun void (*trig_switch)(struct intel_th_device *thdev,
173*4882a593Smuzhiyun struct intel_th_output *output);
174*4882a593Smuzhiyun void (*disable)(struct intel_th_device *thdev,
175*4882a593Smuzhiyun struct intel_th_output *output);
176*4882a593Smuzhiyun /* output ops */
177*4882a593Smuzhiyun irqreturn_t (*irq)(struct intel_th_device *thdev);
178*4882a593Smuzhiyun void (*wait_empty)(struct intel_th_device *thdev);
179*4882a593Smuzhiyun int (*activate)(struct intel_th_device *thdev);
180*4882a593Smuzhiyun void (*deactivate)(struct intel_th_device *thdev);
181*4882a593Smuzhiyun /* file_operations for those who want a device node */
182*4882a593Smuzhiyun const struct file_operations *fops;
183*4882a593Smuzhiyun /* optional attributes */
184*4882a593Smuzhiyun struct attribute_group *attr_group;
185*4882a593Smuzhiyun
186*4882a593Smuzhiyun /* source ops */
187*4882a593Smuzhiyun int (*set_output)(struct intel_th_device *thdev,
188*4882a593Smuzhiyun unsigned int master);
189*4882a593Smuzhiyun };
190*4882a593Smuzhiyun
191*4882a593Smuzhiyun #define to_intel_th_driver(_d) \
192*4882a593Smuzhiyun container_of((_d), struct intel_th_driver, driver)
193*4882a593Smuzhiyun
194*4882a593Smuzhiyun #define to_intel_th_driver_or_null(_d) \
195*4882a593Smuzhiyun ((_d) ? to_intel_th_driver(_d) : NULL)
196*4882a593Smuzhiyun
197*4882a593Smuzhiyun /*
198*4882a593Smuzhiyun * Subdevice tree structure is as follows:
199*4882a593Smuzhiyun * + struct intel_th device (pci; dev_{get,set}_drvdata()
200*4882a593Smuzhiyun * + struct intel_th_device INTEL_TH_SWITCH (GTH)
201*4882a593Smuzhiyun * + struct intel_th_device INTEL_TH_OUTPUT (MSU, PTI)
202*4882a593Smuzhiyun * + struct intel_th_device INTEL_TH_SOURCE (STH)
203*4882a593Smuzhiyun *
204*4882a593Smuzhiyun * In other words, INTEL_TH_OUTPUT devices are children of INTEL_TH_SWITCH;
205*4882a593Smuzhiyun * INTEL_TH_SWITCH and INTEL_TH_SOURCE are children of the intel_th device.
206*4882a593Smuzhiyun */
207*4882a593Smuzhiyun static inline struct intel_th_device *
to_intel_th_parent(struct intel_th_device * thdev)208*4882a593Smuzhiyun to_intel_th_parent(struct intel_th_device *thdev)
209*4882a593Smuzhiyun {
210*4882a593Smuzhiyun struct device *parent = thdev->dev.parent;
211*4882a593Smuzhiyun
212*4882a593Smuzhiyun if (!parent)
213*4882a593Smuzhiyun return NULL;
214*4882a593Smuzhiyun
215*4882a593Smuzhiyun return to_intel_th_device(parent);
216*4882a593Smuzhiyun }
217*4882a593Smuzhiyun
to_intel_th(struct intel_th_device * thdev)218*4882a593Smuzhiyun static inline struct intel_th *to_intel_th(struct intel_th_device *thdev)
219*4882a593Smuzhiyun {
220*4882a593Smuzhiyun if (thdev->type == INTEL_TH_OUTPUT)
221*4882a593Smuzhiyun thdev = to_intel_th_parent(thdev);
222*4882a593Smuzhiyun
223*4882a593Smuzhiyun if (WARN_ON_ONCE(!thdev || thdev->type == INTEL_TH_OUTPUT))
224*4882a593Smuzhiyun return NULL;
225*4882a593Smuzhiyun
226*4882a593Smuzhiyun return dev_get_drvdata(thdev->dev.parent);
227*4882a593Smuzhiyun }
228*4882a593Smuzhiyun
229*4882a593Smuzhiyun struct intel_th *
230*4882a593Smuzhiyun intel_th_alloc(struct device *dev, struct intel_th_drvdata *drvdata,
231*4882a593Smuzhiyun struct resource *devres, unsigned int ndevres);
232*4882a593Smuzhiyun void intel_th_free(struct intel_th *th);
233*4882a593Smuzhiyun
234*4882a593Smuzhiyun int intel_th_driver_register(struct intel_th_driver *thdrv);
235*4882a593Smuzhiyun void intel_th_driver_unregister(struct intel_th_driver *thdrv);
236*4882a593Smuzhiyun
237*4882a593Smuzhiyun int intel_th_trace_enable(struct intel_th_device *thdev);
238*4882a593Smuzhiyun int intel_th_trace_switch(struct intel_th_device *thdev);
239*4882a593Smuzhiyun int intel_th_trace_disable(struct intel_th_device *thdev);
240*4882a593Smuzhiyun int intel_th_set_output(struct intel_th_device *thdev,
241*4882a593Smuzhiyun unsigned int master);
242*4882a593Smuzhiyun int intel_th_output_enable(struct intel_th *th, unsigned int otype);
243*4882a593Smuzhiyun
244*4882a593Smuzhiyun enum th_mmio_idx {
245*4882a593Smuzhiyun TH_MMIO_CONFIG = 0,
246*4882a593Smuzhiyun TH_MMIO_SW = 1,
247*4882a593Smuzhiyun TH_MMIO_RTIT = 2,
248*4882a593Smuzhiyun TH_MMIO_END,
249*4882a593Smuzhiyun };
250*4882a593Smuzhiyun
251*4882a593Smuzhiyun #define TH_POSSIBLE_OUTPUTS 8
252*4882a593Smuzhiyun /* Total number of possible subdevices: outputs + GTH + STH */
253*4882a593Smuzhiyun #define TH_SUBDEVICE_MAX (TH_POSSIBLE_OUTPUTS + 2)
254*4882a593Smuzhiyun #define TH_CONFIGURABLE_MASTERS 256
255*4882a593Smuzhiyun #define TH_MSC_MAX 2
256*4882a593Smuzhiyun
257*4882a593Smuzhiyun /* Maximum IRQ vectors */
258*4882a593Smuzhiyun #define TH_NVEC_MAX 8
259*4882a593Smuzhiyun
260*4882a593Smuzhiyun /**
261*4882a593Smuzhiyun * struct intel_th - Intel TH controller
262*4882a593Smuzhiyun * @dev: driver core's device
263*4882a593Smuzhiyun * @thdev: subdevices
264*4882a593Smuzhiyun * @hub: "switch" subdevice (GTH)
265*4882a593Smuzhiyun * @resource: resources of the entire controller
266*4882a593Smuzhiyun * @num_thdevs: number of devices in the @thdev array
267*4882a593Smuzhiyun * @num_resources: number of resources in the @resource array
268*4882a593Smuzhiyun * @irq: irq number
269*4882a593Smuzhiyun * @num_irqs: number of IRQs is use
270*4882a593Smuzhiyun * @id: this Intel TH controller's device ID in the system
271*4882a593Smuzhiyun * @major: device node major for output devices
272*4882a593Smuzhiyun */
273*4882a593Smuzhiyun struct intel_th {
274*4882a593Smuzhiyun struct device *dev;
275*4882a593Smuzhiyun
276*4882a593Smuzhiyun struct intel_th_device *thdev[TH_SUBDEVICE_MAX];
277*4882a593Smuzhiyun struct intel_th_device *hub;
278*4882a593Smuzhiyun struct intel_th_drvdata *drvdata;
279*4882a593Smuzhiyun
280*4882a593Smuzhiyun struct resource resource[TH_MMIO_END];
281*4882a593Smuzhiyun int (*activate)(struct intel_th *);
282*4882a593Smuzhiyun void (*deactivate)(struct intel_th *);
283*4882a593Smuzhiyun unsigned int num_thdevs;
284*4882a593Smuzhiyun unsigned int num_resources;
285*4882a593Smuzhiyun int irq;
286*4882a593Smuzhiyun int num_irqs;
287*4882a593Smuzhiyun
288*4882a593Smuzhiyun int id;
289*4882a593Smuzhiyun int major;
290*4882a593Smuzhiyun #ifdef CONFIG_MODULES
291*4882a593Smuzhiyun struct work_struct request_module_work;
292*4882a593Smuzhiyun #endif /* CONFIG_MODULES */
293*4882a593Smuzhiyun #ifdef CONFIG_INTEL_TH_DEBUG
294*4882a593Smuzhiyun struct dentry *dbg;
295*4882a593Smuzhiyun #endif
296*4882a593Smuzhiyun };
297*4882a593Smuzhiyun
298*4882a593Smuzhiyun static inline struct intel_th_device *
to_intel_th_hub(struct intel_th_device * thdev)299*4882a593Smuzhiyun to_intel_th_hub(struct intel_th_device *thdev)
300*4882a593Smuzhiyun {
301*4882a593Smuzhiyun if (thdev->type == INTEL_TH_SWITCH)
302*4882a593Smuzhiyun return thdev;
303*4882a593Smuzhiyun else if (thdev->type == INTEL_TH_OUTPUT)
304*4882a593Smuzhiyun return to_intel_th_parent(thdev);
305*4882a593Smuzhiyun
306*4882a593Smuzhiyun return to_intel_th(thdev)->hub;
307*4882a593Smuzhiyun }
308*4882a593Smuzhiyun
309*4882a593Smuzhiyun /*
310*4882a593Smuzhiyun * Register windows
311*4882a593Smuzhiyun */
312*4882a593Smuzhiyun enum {
313*4882a593Smuzhiyun /* Global Trace Hub (GTH) */
314*4882a593Smuzhiyun REG_GTH_OFFSET = 0x0000,
315*4882a593Smuzhiyun REG_GTH_LENGTH = 0x2000,
316*4882a593Smuzhiyun
317*4882a593Smuzhiyun /* Timestamp counter unit (TSCU) */
318*4882a593Smuzhiyun REG_TSCU_OFFSET = 0x2000,
319*4882a593Smuzhiyun REG_TSCU_LENGTH = 0x1000,
320*4882a593Smuzhiyun
321*4882a593Smuzhiyun REG_CTS_OFFSET = 0x3000,
322*4882a593Smuzhiyun REG_CTS_LENGTH = 0x1000,
323*4882a593Smuzhiyun
324*4882a593Smuzhiyun /* Software Trace Hub (STH) [0x4000..0x4fff] */
325*4882a593Smuzhiyun REG_STH_OFFSET = 0x4000,
326*4882a593Smuzhiyun REG_STH_LENGTH = 0x2000,
327*4882a593Smuzhiyun
328*4882a593Smuzhiyun /* Memory Storage Unit (MSU) [0xa0000..0xa1fff] */
329*4882a593Smuzhiyun REG_MSU_OFFSET = 0xa0000,
330*4882a593Smuzhiyun REG_MSU_LENGTH = 0x02000,
331*4882a593Smuzhiyun
332*4882a593Smuzhiyun /* Internal MSU trace buffer [0x80000..0x9ffff] */
333*4882a593Smuzhiyun BUF_MSU_OFFSET = 0x80000,
334*4882a593Smuzhiyun BUF_MSU_LENGTH = 0x20000,
335*4882a593Smuzhiyun
336*4882a593Smuzhiyun /* PTI output == same window as GTH */
337*4882a593Smuzhiyun REG_PTI_OFFSET = REG_GTH_OFFSET,
338*4882a593Smuzhiyun REG_PTI_LENGTH = REG_GTH_LENGTH,
339*4882a593Smuzhiyun
340*4882a593Smuzhiyun /* DCI Handler (DCIH) == some window as MSU */
341*4882a593Smuzhiyun REG_DCIH_OFFSET = REG_MSU_OFFSET,
342*4882a593Smuzhiyun REG_DCIH_LENGTH = REG_MSU_LENGTH,
343*4882a593Smuzhiyun };
344*4882a593Smuzhiyun
345*4882a593Smuzhiyun /*
346*4882a593Smuzhiyun * Scratchpad bits: tell firmware and external debuggers
347*4882a593Smuzhiyun * what we are up to.
348*4882a593Smuzhiyun */
349*4882a593Smuzhiyun enum {
350*4882a593Smuzhiyun /* Memory is the primary destination */
351*4882a593Smuzhiyun SCRPD_MEM_IS_PRIM_DEST = BIT(0),
352*4882a593Smuzhiyun /* XHCI DbC is the primary destination */
353*4882a593Smuzhiyun SCRPD_DBC_IS_PRIM_DEST = BIT(1),
354*4882a593Smuzhiyun /* PTI is the primary destination */
355*4882a593Smuzhiyun SCRPD_PTI_IS_PRIM_DEST = BIT(2),
356*4882a593Smuzhiyun /* BSSB is the primary destination */
357*4882a593Smuzhiyun SCRPD_BSSB_IS_PRIM_DEST = BIT(3),
358*4882a593Smuzhiyun /* PTI is the alternate destination */
359*4882a593Smuzhiyun SCRPD_PTI_IS_ALT_DEST = BIT(4),
360*4882a593Smuzhiyun /* BSSB is the alternate destination */
361*4882a593Smuzhiyun SCRPD_BSSB_IS_ALT_DEST = BIT(5),
362*4882a593Smuzhiyun /* DeepSx exit occurred */
363*4882a593Smuzhiyun SCRPD_DEEPSX_EXIT = BIT(6),
364*4882a593Smuzhiyun /* S4 exit occurred */
365*4882a593Smuzhiyun SCRPD_S4_EXIT = BIT(7),
366*4882a593Smuzhiyun /* S5 exit occurred */
367*4882a593Smuzhiyun SCRPD_S5_EXIT = BIT(8),
368*4882a593Smuzhiyun /* MSU controller 0/1 is enabled */
369*4882a593Smuzhiyun SCRPD_MSC0_IS_ENABLED = BIT(9),
370*4882a593Smuzhiyun SCRPD_MSC1_IS_ENABLED = BIT(10),
371*4882a593Smuzhiyun /* Sx exit occurred */
372*4882a593Smuzhiyun SCRPD_SX_EXIT = BIT(11),
373*4882a593Smuzhiyun /* Trigger Unit is enabled */
374*4882a593Smuzhiyun SCRPD_TRIGGER_IS_ENABLED = BIT(12),
375*4882a593Smuzhiyun SCRPD_ODLA_IS_ENABLED = BIT(13),
376*4882a593Smuzhiyun SCRPD_SOCHAP_IS_ENABLED = BIT(14),
377*4882a593Smuzhiyun SCRPD_STH_IS_ENABLED = BIT(15),
378*4882a593Smuzhiyun SCRPD_DCIH_IS_ENABLED = BIT(16),
379*4882a593Smuzhiyun SCRPD_VER_IS_ENABLED = BIT(17),
380*4882a593Smuzhiyun /* External debugger is using Intel TH */
381*4882a593Smuzhiyun SCRPD_DEBUGGER_IN_USE = BIT(24),
382*4882a593Smuzhiyun };
383*4882a593Smuzhiyun
384*4882a593Smuzhiyun #endif
385