150352fa7SAlexander Shishkin /* SPDX-License-Identifier: GPL-2.0 */ 239f40346SAlexander Shishkin /* 339f40346SAlexander Shishkin * Intel(R) Trace Hub data structures 439f40346SAlexander Shishkin * 539f40346SAlexander Shishkin * Copyright (C) 2014-2015 Intel Corporation. 639f40346SAlexander Shishkin */ 739f40346SAlexander Shishkin 839f40346SAlexander Shishkin #ifndef __INTEL_TH_H__ 939f40346SAlexander Shishkin #define __INTEL_TH_H__ 1039f40346SAlexander Shishkin 11aac8da65SAlexander Shishkin #include <linux/irqreturn.h> 12aac8da65SAlexander Shishkin 1339f40346SAlexander Shishkin /* intel_th_device device types */ 1439f40346SAlexander Shishkin enum { 1539f40346SAlexander Shishkin /* Devices that generate trace data */ 1639f40346SAlexander Shishkin INTEL_TH_SOURCE = 0, 1739f40346SAlexander Shishkin /* Output ports (MSC, PTI) */ 1839f40346SAlexander Shishkin INTEL_TH_OUTPUT, 1939f40346SAlexander Shishkin /* Switch, the Global Trace Hub (GTH) */ 2039f40346SAlexander Shishkin INTEL_TH_SWITCH, 2139f40346SAlexander Shishkin }; 2239f40346SAlexander Shishkin 23*8d415512SAlexander Shishkin struct intel_th_device; 24*8d415512SAlexander Shishkin 2539f40346SAlexander Shishkin /** 2639f40346SAlexander Shishkin * struct intel_th_output - descriptor INTEL_TH_OUTPUT type devices 2739f40346SAlexander Shishkin * @port: output port number, assigned by the switch 2839f40346SAlexander Shishkin * @type: GTH_{MSU,CTP,PTI} 294d02ceffSAlexander Shishkin * @scratchpad: scratchpad bits to flag when this output is enabled 3039f40346SAlexander Shishkin * @multiblock: true for multiblock output configuration 3139f40346SAlexander Shishkin * @active: true when this output is enabled 32*8d415512SAlexander Shishkin * @wait_empty: wait for device pipeline to be empty 3339f40346SAlexander Shishkin * 3439f40346SAlexander Shishkin * Output port descriptor, used by switch driver to tell which output 3539f40346SAlexander Shishkin * port this output device corresponds to. Filled in at output device's 3639f40346SAlexander Shishkin * probe time by switch::assign(). Passed from output device driver to 3739f40346SAlexander Shishkin * switch related code to enable/disable its port. 3839f40346SAlexander Shishkin */ 3939f40346SAlexander Shishkin struct intel_th_output { 4039f40346SAlexander Shishkin int port; 4139f40346SAlexander Shishkin unsigned int type; 424d02ceffSAlexander Shishkin unsigned int scratchpad; 4339f40346SAlexander Shishkin bool multiblock; 4439f40346SAlexander Shishkin bool active; 4539f40346SAlexander Shishkin }; 4639f40346SAlexander Shishkin 4739f40346SAlexander Shishkin /** 483321371bSAlexander Shishkin * struct intel_th_drvdata - describes hardware capabilities and quirks 493321371bSAlexander Shishkin * @tscu_enable: device needs SW to enable time stamping unit 504c5bb6ebSAlexander Shishkin * @has_mintctl: device has interrupt control (MINTCTL) register 51282ffec5SAlexander Shishkin * @host_mode_only: device can only operate in 'host debugger' mode 523321371bSAlexander Shishkin */ 533321371bSAlexander Shishkin struct intel_th_drvdata { 54282ffec5SAlexander Shishkin unsigned int tscu_enable : 1, 554c5bb6ebSAlexander Shishkin has_mintctl : 1, 56282ffec5SAlexander Shishkin host_mode_only : 1; 573321371bSAlexander Shishkin }; 583321371bSAlexander Shishkin 593321371bSAlexander Shishkin #define INTEL_TH_CAP(_th, _cap) ((_th)->drvdata ? (_th)->drvdata->_cap : 0) 603321371bSAlexander Shishkin 613321371bSAlexander Shishkin /** 6239f40346SAlexander Shishkin * struct intel_th_device - device on the intel_th bus 6339f40346SAlexander Shishkin * @dev: device 643321371bSAlexander Shishkin * @drvdata: hardware capabilities/quirks 6539f40346SAlexander Shishkin * @resource: array of resources available to this device 6639f40346SAlexander Shishkin * @num_resources: number of resources in @resource array 6739f40346SAlexander Shishkin * @type: INTEL_TH_{SOURCE,OUTPUT,SWITCH} 6839f40346SAlexander Shishkin * @id: device instance or -1 69c49a7591SAlexander Shishkin * @host_mode: Intel TH is controlled by an external debug host 7039f40346SAlexander Shishkin * @output: output descriptor for INTEL_TH_OUTPUT devices 7139f40346SAlexander Shishkin * @name: device name to match the driver 7239f40346SAlexander Shishkin */ 7339f40346SAlexander Shishkin struct intel_th_device { 7439f40346SAlexander Shishkin struct device dev; 753321371bSAlexander Shishkin struct intel_th_drvdata *drvdata; 7639f40346SAlexander Shishkin struct resource *resource; 7739f40346SAlexander Shishkin unsigned int num_resources; 7839f40346SAlexander Shishkin unsigned int type; 7939f40346SAlexander Shishkin int id; 8039f40346SAlexander Shishkin 81c49a7591SAlexander Shishkin /* INTEL_TH_SWITCH specific */ 82c49a7591SAlexander Shishkin bool host_mode; 83c49a7591SAlexander Shishkin 8439f40346SAlexander Shishkin /* INTEL_TH_OUTPUT specific */ 8539f40346SAlexander Shishkin struct intel_th_output output; 8639f40346SAlexander Shishkin 8739f40346SAlexander Shishkin char name[]; 8839f40346SAlexander Shishkin }; 8939f40346SAlexander Shishkin 9039f40346SAlexander Shishkin #define to_intel_th_device(_d) \ 9139f40346SAlexander Shishkin container_of((_d), struct intel_th_device, dev) 9239f40346SAlexander Shishkin 9339f40346SAlexander Shishkin /** 9439f40346SAlexander Shishkin * intel_th_device_get_resource() - obtain @num'th resource of type @type 9539f40346SAlexander Shishkin * @thdev: the device to search the resource for 9639f40346SAlexander Shishkin * @type: resource type 9739f40346SAlexander Shishkin * @num: number of the resource 9839f40346SAlexander Shishkin */ 9939f40346SAlexander Shishkin static inline struct resource * 10039f40346SAlexander Shishkin intel_th_device_get_resource(struct intel_th_device *thdev, unsigned int type, 10139f40346SAlexander Shishkin unsigned int num) 10239f40346SAlexander Shishkin { 10339f40346SAlexander Shishkin int i; 10439f40346SAlexander Shishkin 10539f40346SAlexander Shishkin for (i = 0; i < thdev->num_resources; i++) 10639f40346SAlexander Shishkin if (resource_type(&thdev->resource[i]) == type && !num--) 10739f40346SAlexander Shishkin return &thdev->resource[i]; 10839f40346SAlexander Shishkin 10939f40346SAlexander Shishkin return NULL; 11039f40346SAlexander Shishkin } 11139f40346SAlexander Shishkin 1125376be63SAlexander Shishkin /* 1135376be63SAlexander Shishkin * GTH, output ports configuration 1145376be63SAlexander Shishkin */ 1155376be63SAlexander Shishkin enum { 1165376be63SAlexander Shishkin GTH_NONE = 0, 1175376be63SAlexander Shishkin GTH_MSU, /* memory/usb */ 1185376be63SAlexander Shishkin GTH_CTP, /* Common Trace Port */ 11992758af3SAlexander Shishkin GTH_LPP, /* Low Power Path */ 12092758af3SAlexander Shishkin GTH_PTI, /* MIPI-PTI */ 1215376be63SAlexander Shishkin }; 1225376be63SAlexander Shishkin 12339f40346SAlexander Shishkin /** 12439f40346SAlexander Shishkin * intel_th_output_assigned() - if an output device is assigned to a switch port 12539f40346SAlexander Shishkin * @thdev: the output device 12639f40346SAlexander Shishkin * 12739f40346SAlexander Shishkin * Return: true if the device is INTEL_TH_OUTPUT *and* is assigned a port 12839f40346SAlexander Shishkin */ 12939f40346SAlexander Shishkin static inline bool 13039f40346SAlexander Shishkin intel_th_output_assigned(struct intel_th_device *thdev) 13139f40346SAlexander Shishkin { 13239f40346SAlexander Shishkin return thdev->type == INTEL_TH_OUTPUT && 1335376be63SAlexander Shishkin (thdev->output.port >= 0 || 1345376be63SAlexander Shishkin thdev->output.type == GTH_NONE); 13539f40346SAlexander Shishkin } 13639f40346SAlexander Shishkin 13739f40346SAlexander Shishkin /** 13839f40346SAlexander Shishkin * struct intel_th_driver - driver for an intel_th_device device 13939f40346SAlexander Shishkin * @driver: generic driver 14039f40346SAlexander Shishkin * @probe: probe method 14139f40346SAlexander Shishkin * @remove: remove method 14239f40346SAlexander Shishkin * @assign: match a given output type device against available outputs 14339f40346SAlexander Shishkin * @unassign: deassociate an output type device from an output port 14439f40346SAlexander Shishkin * @enable: enable tracing for a given output device 14539f40346SAlexander Shishkin * @disable: disable tracing for a given output device 146bd581f23SAlexander Shishkin * @irq: interrupt callback 147bd581f23SAlexander Shishkin * @activate: enable tracing on the output's side 148bd581f23SAlexander Shishkin * @deactivate: disable tracing on the output's side 14939f40346SAlexander Shishkin * @fops: file operations for device nodes 150b5edbf1eSAlexander Shishkin * @attr_group: attributes provided by the driver 15139f40346SAlexander Shishkin * 15239f40346SAlexander Shishkin * Callbacks @probe and @remove are required for all device types. 15339f40346SAlexander Shishkin * Switch device driver needs to fill in @assign, @enable and @disable 15439f40346SAlexander Shishkin * callbacks. 15539f40346SAlexander Shishkin */ 15639f40346SAlexander Shishkin struct intel_th_driver { 15739f40346SAlexander Shishkin struct device_driver driver; 15839f40346SAlexander Shishkin int (*probe)(struct intel_th_device *thdev); 15939f40346SAlexander Shishkin void (*remove)(struct intel_th_device *thdev); 16039f40346SAlexander Shishkin /* switch (GTH) ops */ 16139f40346SAlexander Shishkin int (*assign)(struct intel_th_device *thdev, 16239f40346SAlexander Shishkin struct intel_th_device *othdev); 16339f40346SAlexander Shishkin void (*unassign)(struct intel_th_device *thdev, 16439f40346SAlexander Shishkin struct intel_th_device *othdev); 16539f40346SAlexander Shishkin void (*enable)(struct intel_th_device *thdev, 16639f40346SAlexander Shishkin struct intel_th_output *output); 16739f40346SAlexander Shishkin void (*disable)(struct intel_th_device *thdev, 16839f40346SAlexander Shishkin struct intel_th_output *output); 16939f40346SAlexander Shishkin /* output ops */ 170aac8da65SAlexander Shishkin irqreturn_t (*irq)(struct intel_th_device *thdev); 171*8d415512SAlexander Shishkin void (*wait_empty)(struct intel_th_device *thdev); 17239f40346SAlexander Shishkin int (*activate)(struct intel_th_device *thdev); 17339f40346SAlexander Shishkin void (*deactivate)(struct intel_th_device *thdev); 17439f40346SAlexander Shishkin /* file_operations for those who want a device node */ 17539f40346SAlexander Shishkin const struct file_operations *fops; 176b5edbf1eSAlexander Shishkin /* optional attributes */ 177b5edbf1eSAlexander Shishkin struct attribute_group *attr_group; 17839f40346SAlexander Shishkin 17939f40346SAlexander Shishkin /* source ops */ 18039f40346SAlexander Shishkin int (*set_output)(struct intel_th_device *thdev, 18139f40346SAlexander Shishkin unsigned int master); 18239f40346SAlexander Shishkin }; 18339f40346SAlexander Shishkin 18439f40346SAlexander Shishkin #define to_intel_th_driver(_d) \ 18539f40346SAlexander Shishkin container_of((_d), struct intel_th_driver, driver) 18639f40346SAlexander Shishkin 187f18a9531SAlexander Shishkin #define to_intel_th_driver_or_null(_d) \ 188f18a9531SAlexander Shishkin ((_d) ? to_intel_th_driver(_d) : NULL) 189f18a9531SAlexander Shishkin 1908edc514bSAlexander Shishkin /* 1918edc514bSAlexander Shishkin * Subdevice tree structure is as follows: 1928edc514bSAlexander Shishkin * + struct intel_th device (pci; dev_{get,set}_drvdata() 1938edc514bSAlexander Shishkin * + struct intel_th_device INTEL_TH_SWITCH (GTH) 1948edc514bSAlexander Shishkin * + struct intel_th_device INTEL_TH_OUTPUT (MSU, PTI) 1958edc514bSAlexander Shishkin * + struct intel_th_device INTEL_TH_SOURCE (STH) 1968edc514bSAlexander Shishkin * 1978edc514bSAlexander Shishkin * In other words, INTEL_TH_OUTPUT devices are children of INTEL_TH_SWITCH; 1988edc514bSAlexander Shishkin * INTEL_TH_SWITCH and INTEL_TH_SOURCE are children of the intel_th device. 1998edc514bSAlexander Shishkin */ 20039f40346SAlexander Shishkin static inline struct intel_th_device * 2015e06723aSAlexander Shishkin to_intel_th_parent(struct intel_th_device *thdev) 20239f40346SAlexander Shishkin { 20339f40346SAlexander Shishkin struct device *parent = thdev->dev.parent; 20439f40346SAlexander Shishkin 20539f40346SAlexander Shishkin if (!parent) 20639f40346SAlexander Shishkin return NULL; 20739f40346SAlexander Shishkin 20839f40346SAlexander Shishkin return to_intel_th_device(parent); 20939f40346SAlexander Shishkin } 21039f40346SAlexander Shishkin 2115e06723aSAlexander Shishkin static inline struct intel_th *to_intel_th(struct intel_th_device *thdev) 2125e06723aSAlexander Shishkin { 2138edc514bSAlexander Shishkin if (thdev->type == INTEL_TH_OUTPUT) 2148edc514bSAlexander Shishkin thdev = to_intel_th_parent(thdev); 2155e06723aSAlexander Shishkin 2168edc514bSAlexander Shishkin if (WARN_ON_ONCE(!thdev || thdev->type == INTEL_TH_OUTPUT)) 2175e06723aSAlexander Shishkin return NULL; 2185e06723aSAlexander Shishkin 2195e06723aSAlexander Shishkin return dev_get_drvdata(thdev->dev.parent); 2205e06723aSAlexander Shishkin } 2215e06723aSAlexander Shishkin 22239f40346SAlexander Shishkin struct intel_th * 2233321371bSAlexander Shishkin intel_th_alloc(struct device *dev, struct intel_th_drvdata *drvdata, 22462a59302SAlexander Shishkin struct resource *devres, unsigned int ndevres); 22539f40346SAlexander Shishkin void intel_th_free(struct intel_th *th); 22639f40346SAlexander Shishkin 22739f40346SAlexander Shishkin int intel_th_driver_register(struct intel_th_driver *thdrv); 22839f40346SAlexander Shishkin void intel_th_driver_unregister(struct intel_th_driver *thdrv); 22939f40346SAlexander Shishkin 23039f40346SAlexander Shishkin int intel_th_trace_enable(struct intel_th_device *thdev); 23139f40346SAlexander Shishkin int intel_th_trace_disable(struct intel_th_device *thdev); 23239f40346SAlexander Shishkin int intel_th_set_output(struct intel_th_device *thdev, 23339f40346SAlexander Shishkin unsigned int master); 234a753bfcfSAlexander Shishkin int intel_th_output_enable(struct intel_th *th, unsigned int otype); 23539f40346SAlexander Shishkin 236db73a059SAlexander Shishkin enum th_mmio_idx { 23739f40346SAlexander Shishkin TH_MMIO_CONFIG = 0, 238db73a059SAlexander Shishkin TH_MMIO_SW = 1, 239fc027f4cSAlexander Shishkin TH_MMIO_RTIT = 2, 24039f40346SAlexander Shishkin TH_MMIO_END, 24139f40346SAlexander Shishkin }; 24239f40346SAlexander Shishkin 24339f40346SAlexander Shishkin #define TH_POSSIBLE_OUTPUTS 8 244a753bfcfSAlexander Shishkin /* Total number of possible subdevices: outputs + GTH + STH */ 245a753bfcfSAlexander Shishkin #define TH_SUBDEVICE_MAX (TH_POSSIBLE_OUTPUTS + 2) 24639f40346SAlexander Shishkin #define TH_CONFIGURABLE_MASTERS 256 24739f40346SAlexander Shishkin #define TH_MSC_MAX 2 24839f40346SAlexander Shishkin 2497b7036d4SAlexander Shishkin /* Maximum IRQ vectors */ 2507b7036d4SAlexander Shishkin #define TH_NVEC_MAX 8 2517b7036d4SAlexander Shishkin 25239f40346SAlexander Shishkin /** 25339f40346SAlexander Shishkin * struct intel_th - Intel TH controller 25439f40346SAlexander Shishkin * @dev: driver core's device 25539f40346SAlexander Shishkin * @thdev: subdevices 25639f40346SAlexander Shishkin * @hub: "switch" subdevice (GTH) 257a753bfcfSAlexander Shishkin * @resource: resources of the entire controller 258a753bfcfSAlexander Shishkin * @num_thdevs: number of devices in the @thdev array 259db73a059SAlexander Shishkin * @num_resources: number of resources in the @resource array 260a753bfcfSAlexander Shishkin * @irq: irq number 26139f40346SAlexander Shishkin * @id: this Intel TH controller's device ID in the system 26239f40346SAlexander Shishkin * @major: device node major for output devices 26339f40346SAlexander Shishkin */ 26439f40346SAlexander Shishkin struct intel_th { 26539f40346SAlexander Shishkin struct device *dev; 26639f40346SAlexander Shishkin 26739f40346SAlexander Shishkin struct intel_th_device *thdev[TH_SUBDEVICE_MAX]; 26839f40346SAlexander Shishkin struct intel_th_device *hub; 2693321371bSAlexander Shishkin struct intel_th_drvdata *drvdata; 27039f40346SAlexander Shishkin 271db73a059SAlexander Shishkin struct resource resource[TH_MMIO_END]; 27229e15e83SAlexander Shishkin int (*activate)(struct intel_th *); 27329e15e83SAlexander Shishkin void (*deactivate)(struct intel_th *); 274a753bfcfSAlexander Shishkin unsigned int num_thdevs; 275a753bfcfSAlexander Shishkin unsigned int num_resources; 276a753bfcfSAlexander Shishkin int irq; 277a753bfcfSAlexander Shishkin 27839f40346SAlexander Shishkin int id; 27939f40346SAlexander Shishkin int major; 280a36aa80fSAlexander Shishkin #ifdef CONFIG_MODULES 281a36aa80fSAlexander Shishkin struct work_struct request_module_work; 282a36aa80fSAlexander Shishkin #endif /* CONFIG_MODULES */ 28339f40346SAlexander Shishkin #ifdef CONFIG_INTEL_TH_DEBUG 28439f40346SAlexander Shishkin struct dentry *dbg; 28539f40346SAlexander Shishkin #endif 28639f40346SAlexander Shishkin }; 28739f40346SAlexander Shishkin 2888edc514bSAlexander Shishkin static inline struct intel_th_device * 2898edc514bSAlexander Shishkin to_intel_th_hub(struct intel_th_device *thdev) 2908edc514bSAlexander Shishkin { 2918edc514bSAlexander Shishkin if (thdev->type == INTEL_TH_SWITCH) 2928edc514bSAlexander Shishkin return thdev; 2938edc514bSAlexander Shishkin else if (thdev->type == INTEL_TH_OUTPUT) 2948edc514bSAlexander Shishkin return to_intel_th_parent(thdev); 2958edc514bSAlexander Shishkin 2968edc514bSAlexander Shishkin return to_intel_th(thdev)->hub; 2978edc514bSAlexander Shishkin } 2988edc514bSAlexander Shishkin 29939f40346SAlexander Shishkin /* 30039f40346SAlexander Shishkin * Register windows 30139f40346SAlexander Shishkin */ 30239f40346SAlexander Shishkin enum { 30339f40346SAlexander Shishkin /* Global Trace Hub (GTH) */ 30439f40346SAlexander Shishkin REG_GTH_OFFSET = 0x0000, 30539f40346SAlexander Shishkin REG_GTH_LENGTH = 0x2000, 30639f40346SAlexander Shishkin 307a0e7df33SAlexander Shishkin /* Timestamp counter unit (TSCU) */ 308a0e7df33SAlexander Shishkin REG_TSCU_OFFSET = 0x2000, 309a0e7df33SAlexander Shishkin REG_TSCU_LENGTH = 0x1000, 310a0e7df33SAlexander Shishkin 31139f40346SAlexander Shishkin /* Software Trace Hub (STH) [0x4000..0x4fff] */ 31239f40346SAlexander Shishkin REG_STH_OFFSET = 0x4000, 31339f40346SAlexander Shishkin REG_STH_LENGTH = 0x2000, 31439f40346SAlexander Shishkin 31539f40346SAlexander Shishkin /* Memory Storage Unit (MSU) [0xa0000..0xa1fff] */ 31639f40346SAlexander Shishkin REG_MSU_OFFSET = 0xa0000, 31739f40346SAlexander Shishkin REG_MSU_LENGTH = 0x02000, 31839f40346SAlexander Shishkin 31939f40346SAlexander Shishkin /* Internal MSU trace buffer [0x80000..0x9ffff] */ 32039f40346SAlexander Shishkin BUF_MSU_OFFSET = 0x80000, 32139f40346SAlexander Shishkin BUF_MSU_LENGTH = 0x20000, 32239f40346SAlexander Shishkin 32339f40346SAlexander Shishkin /* PTI output == same window as GTH */ 32439f40346SAlexander Shishkin REG_PTI_OFFSET = REG_GTH_OFFSET, 32539f40346SAlexander Shishkin REG_PTI_LENGTH = REG_GTH_LENGTH, 32639f40346SAlexander Shishkin 32739f40346SAlexander Shishkin /* DCI Handler (DCIH) == some window as MSU */ 32839f40346SAlexander Shishkin REG_DCIH_OFFSET = REG_MSU_OFFSET, 32939f40346SAlexander Shishkin REG_DCIH_LENGTH = REG_MSU_LENGTH, 33039f40346SAlexander Shishkin }; 33139f40346SAlexander Shishkin 33239f40346SAlexander Shishkin /* 3334d02ceffSAlexander Shishkin * Scratchpad bits: tell firmware and external debuggers 3344d02ceffSAlexander Shishkin * what we are up to. 3354d02ceffSAlexander Shishkin */ 3364d02ceffSAlexander Shishkin enum { 3374d02ceffSAlexander Shishkin /* Memory is the primary destination */ 3384d02ceffSAlexander Shishkin SCRPD_MEM_IS_PRIM_DEST = BIT(0), 3394d02ceffSAlexander Shishkin /* XHCI DbC is the primary destination */ 3404d02ceffSAlexander Shishkin SCRPD_DBC_IS_PRIM_DEST = BIT(1), 3414d02ceffSAlexander Shishkin /* PTI is the primary destination */ 3424d02ceffSAlexander Shishkin SCRPD_PTI_IS_PRIM_DEST = BIT(2), 3434d02ceffSAlexander Shishkin /* BSSB is the primary destination */ 3444d02ceffSAlexander Shishkin SCRPD_BSSB_IS_PRIM_DEST = BIT(3), 3454d02ceffSAlexander Shishkin /* PTI is the alternate destination */ 3464d02ceffSAlexander Shishkin SCRPD_PTI_IS_ALT_DEST = BIT(4), 3474d02ceffSAlexander Shishkin /* BSSB is the alternate destination */ 3484d02ceffSAlexander Shishkin SCRPD_BSSB_IS_ALT_DEST = BIT(5), 3494d02ceffSAlexander Shishkin /* DeepSx exit occurred */ 3504d02ceffSAlexander Shishkin SCRPD_DEEPSX_EXIT = BIT(6), 3514d02ceffSAlexander Shishkin /* S4 exit occurred */ 3524d02ceffSAlexander Shishkin SCRPD_S4_EXIT = BIT(7), 3534d02ceffSAlexander Shishkin /* S5 exit occurred */ 3544d02ceffSAlexander Shishkin SCRPD_S5_EXIT = BIT(8), 3554d02ceffSAlexander Shishkin /* MSU controller 0/1 is enabled */ 3564d02ceffSAlexander Shishkin SCRPD_MSC0_IS_ENABLED = BIT(9), 3574d02ceffSAlexander Shishkin SCRPD_MSC1_IS_ENABLED = BIT(10), 3584d02ceffSAlexander Shishkin /* Sx exit occurred */ 3594d02ceffSAlexander Shishkin SCRPD_SX_EXIT = BIT(11), 3604d02ceffSAlexander Shishkin /* Trigger Unit is enabled */ 3614d02ceffSAlexander Shishkin SCRPD_TRIGGER_IS_ENABLED = BIT(12), 3624d02ceffSAlexander Shishkin SCRPD_ODLA_IS_ENABLED = BIT(13), 3634d02ceffSAlexander Shishkin SCRPD_SOCHAP_IS_ENABLED = BIT(14), 3644d02ceffSAlexander Shishkin SCRPD_STH_IS_ENABLED = BIT(15), 3654d02ceffSAlexander Shishkin SCRPD_DCIH_IS_ENABLED = BIT(16), 3664d02ceffSAlexander Shishkin SCRPD_VER_IS_ENABLED = BIT(17), 3674d02ceffSAlexander Shishkin /* External debugger is using Intel TH */ 3684d02ceffSAlexander Shishkin SCRPD_DEBUGGER_IN_USE = BIT(24), 3694d02ceffSAlexander Shishkin }; 3704d02ceffSAlexander Shishkin 37139f40346SAlexander Shishkin #endif 372