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 2339f40346SAlexander Shishkin /** 2439f40346SAlexander Shishkin * struct intel_th_output - descriptor INTEL_TH_OUTPUT type devices 2539f40346SAlexander Shishkin * @port: output port number, assigned by the switch 2639f40346SAlexander Shishkin * @type: GTH_{MSU,CTP,PTI} 274d02ceffSAlexander Shishkin * @scratchpad: scratchpad bits to flag when this output is enabled 2839f40346SAlexander Shishkin * @multiblock: true for multiblock output configuration 2939f40346SAlexander Shishkin * @active: true when this output is enabled 3039f40346SAlexander Shishkin * 3139f40346SAlexander Shishkin * Output port descriptor, used by switch driver to tell which output 3239f40346SAlexander Shishkin * port this output device corresponds to. Filled in at output device's 3339f40346SAlexander Shishkin * probe time by switch::assign(). Passed from output device driver to 3439f40346SAlexander Shishkin * switch related code to enable/disable its port. 3539f40346SAlexander Shishkin */ 3639f40346SAlexander Shishkin struct intel_th_output { 3739f40346SAlexander Shishkin int port; 3839f40346SAlexander Shishkin unsigned int type; 394d02ceffSAlexander Shishkin unsigned int scratchpad; 4039f40346SAlexander Shishkin bool multiblock; 4139f40346SAlexander Shishkin bool active; 4239f40346SAlexander Shishkin }; 4339f40346SAlexander Shishkin 4439f40346SAlexander Shishkin /** 453321371bSAlexander Shishkin * struct intel_th_drvdata - describes hardware capabilities and quirks 463321371bSAlexander Shishkin * @tscu_enable: device needs SW to enable time stamping unit 47*4c5bb6ebSAlexander Shishkin * @has_mintctl: device has interrupt control (MINTCTL) register 48282ffec5SAlexander Shishkin * @host_mode_only: device can only operate in 'host debugger' mode 493321371bSAlexander Shishkin */ 503321371bSAlexander Shishkin struct intel_th_drvdata { 51282ffec5SAlexander Shishkin unsigned int tscu_enable : 1, 52*4c5bb6ebSAlexander Shishkin has_mintctl : 1, 53282ffec5SAlexander Shishkin host_mode_only : 1; 543321371bSAlexander Shishkin }; 553321371bSAlexander Shishkin 563321371bSAlexander Shishkin #define INTEL_TH_CAP(_th, _cap) ((_th)->drvdata ? (_th)->drvdata->_cap : 0) 573321371bSAlexander Shishkin 583321371bSAlexander Shishkin /** 5939f40346SAlexander Shishkin * struct intel_th_device - device on the intel_th bus 6039f40346SAlexander Shishkin * @dev: device 613321371bSAlexander Shishkin * @drvdata: hardware capabilities/quirks 6239f40346SAlexander Shishkin * @resource: array of resources available to this device 6339f40346SAlexander Shishkin * @num_resources: number of resources in @resource array 6439f40346SAlexander Shishkin * @type: INTEL_TH_{SOURCE,OUTPUT,SWITCH} 6539f40346SAlexander Shishkin * @id: device instance or -1 66c49a7591SAlexander Shishkin * @host_mode: Intel TH is controlled by an external debug host 6739f40346SAlexander Shishkin * @output: output descriptor for INTEL_TH_OUTPUT devices 6839f40346SAlexander Shishkin * @name: device name to match the driver 6939f40346SAlexander Shishkin */ 7039f40346SAlexander Shishkin struct intel_th_device { 7139f40346SAlexander Shishkin struct device dev; 723321371bSAlexander Shishkin struct intel_th_drvdata *drvdata; 7339f40346SAlexander Shishkin struct resource *resource; 7439f40346SAlexander Shishkin unsigned int num_resources; 7539f40346SAlexander Shishkin unsigned int type; 7639f40346SAlexander Shishkin int id; 7739f40346SAlexander Shishkin 78c49a7591SAlexander Shishkin /* INTEL_TH_SWITCH specific */ 79c49a7591SAlexander Shishkin bool host_mode; 80c49a7591SAlexander Shishkin 8139f40346SAlexander Shishkin /* INTEL_TH_OUTPUT specific */ 8239f40346SAlexander Shishkin struct intel_th_output output; 8339f40346SAlexander Shishkin 8439f40346SAlexander Shishkin char name[]; 8539f40346SAlexander Shishkin }; 8639f40346SAlexander Shishkin 8739f40346SAlexander Shishkin #define to_intel_th_device(_d) \ 8839f40346SAlexander Shishkin container_of((_d), struct intel_th_device, dev) 8939f40346SAlexander Shishkin 9039f40346SAlexander Shishkin /** 9139f40346SAlexander Shishkin * intel_th_device_get_resource() - obtain @num'th resource of type @type 9239f40346SAlexander Shishkin * @thdev: the device to search the resource for 9339f40346SAlexander Shishkin * @type: resource type 9439f40346SAlexander Shishkin * @num: number of the resource 9539f40346SAlexander Shishkin */ 9639f40346SAlexander Shishkin static inline struct resource * 9739f40346SAlexander Shishkin intel_th_device_get_resource(struct intel_th_device *thdev, unsigned int type, 9839f40346SAlexander Shishkin unsigned int num) 9939f40346SAlexander Shishkin { 10039f40346SAlexander Shishkin int i; 10139f40346SAlexander Shishkin 10239f40346SAlexander Shishkin for (i = 0; i < thdev->num_resources; i++) 10339f40346SAlexander Shishkin if (resource_type(&thdev->resource[i]) == type && !num--) 10439f40346SAlexander Shishkin return &thdev->resource[i]; 10539f40346SAlexander Shishkin 10639f40346SAlexander Shishkin return NULL; 10739f40346SAlexander Shishkin } 10839f40346SAlexander Shishkin 1095376be63SAlexander Shishkin /* 1105376be63SAlexander Shishkin * GTH, output ports configuration 1115376be63SAlexander Shishkin */ 1125376be63SAlexander Shishkin enum { 1135376be63SAlexander Shishkin GTH_NONE = 0, 1145376be63SAlexander Shishkin GTH_MSU, /* memory/usb */ 1155376be63SAlexander Shishkin GTH_CTP, /* Common Trace Port */ 11692758af3SAlexander Shishkin GTH_LPP, /* Low Power Path */ 11792758af3SAlexander Shishkin GTH_PTI, /* MIPI-PTI */ 1185376be63SAlexander Shishkin }; 1195376be63SAlexander Shishkin 12039f40346SAlexander Shishkin /** 12139f40346SAlexander Shishkin * intel_th_output_assigned() - if an output device is assigned to a switch port 12239f40346SAlexander Shishkin * @thdev: the output device 12339f40346SAlexander Shishkin * 12439f40346SAlexander Shishkin * Return: true if the device is INTEL_TH_OUTPUT *and* is assigned a port 12539f40346SAlexander Shishkin */ 12639f40346SAlexander Shishkin static inline bool 12739f40346SAlexander Shishkin intel_th_output_assigned(struct intel_th_device *thdev) 12839f40346SAlexander Shishkin { 12939f40346SAlexander Shishkin return thdev->type == INTEL_TH_OUTPUT && 1305376be63SAlexander Shishkin (thdev->output.port >= 0 || 1315376be63SAlexander Shishkin thdev->output.type == GTH_NONE); 13239f40346SAlexander Shishkin } 13339f40346SAlexander Shishkin 13439f40346SAlexander Shishkin /** 13539f40346SAlexander Shishkin * struct intel_th_driver - driver for an intel_th_device device 13639f40346SAlexander Shishkin * @driver: generic driver 13739f40346SAlexander Shishkin * @probe: probe method 13839f40346SAlexander Shishkin * @remove: remove method 13939f40346SAlexander Shishkin * @assign: match a given output type device against available outputs 14039f40346SAlexander Shishkin * @unassign: deassociate an output type device from an output port 14139f40346SAlexander Shishkin * @enable: enable tracing for a given output device 14239f40346SAlexander Shishkin * @disable: disable tracing for a given output device 143bd581f23SAlexander Shishkin * @irq: interrupt callback 144bd581f23SAlexander Shishkin * @activate: enable tracing on the output's side 145bd581f23SAlexander Shishkin * @deactivate: disable tracing on the output's side 14639f40346SAlexander Shishkin * @fops: file operations for device nodes 147b5edbf1eSAlexander Shishkin * @attr_group: attributes provided by the driver 14839f40346SAlexander Shishkin * 14939f40346SAlexander Shishkin * Callbacks @probe and @remove are required for all device types. 15039f40346SAlexander Shishkin * Switch device driver needs to fill in @assign, @enable and @disable 15139f40346SAlexander Shishkin * callbacks. 15239f40346SAlexander Shishkin */ 15339f40346SAlexander Shishkin struct intel_th_driver { 15439f40346SAlexander Shishkin struct device_driver driver; 15539f40346SAlexander Shishkin int (*probe)(struct intel_th_device *thdev); 15639f40346SAlexander Shishkin void (*remove)(struct intel_th_device *thdev); 15739f40346SAlexander Shishkin /* switch (GTH) ops */ 15839f40346SAlexander Shishkin int (*assign)(struct intel_th_device *thdev, 15939f40346SAlexander Shishkin struct intel_th_device *othdev); 16039f40346SAlexander Shishkin void (*unassign)(struct intel_th_device *thdev, 16139f40346SAlexander Shishkin struct intel_th_device *othdev); 16239f40346SAlexander Shishkin void (*enable)(struct intel_th_device *thdev, 16339f40346SAlexander Shishkin struct intel_th_output *output); 16439f40346SAlexander Shishkin void (*disable)(struct intel_th_device *thdev, 16539f40346SAlexander Shishkin struct intel_th_output *output); 16639f40346SAlexander Shishkin /* output ops */ 167aac8da65SAlexander Shishkin irqreturn_t (*irq)(struct intel_th_device *thdev); 16839f40346SAlexander Shishkin int (*activate)(struct intel_th_device *thdev); 16939f40346SAlexander Shishkin void (*deactivate)(struct intel_th_device *thdev); 17039f40346SAlexander Shishkin /* file_operations for those who want a device node */ 17139f40346SAlexander Shishkin const struct file_operations *fops; 172b5edbf1eSAlexander Shishkin /* optional attributes */ 173b5edbf1eSAlexander Shishkin struct attribute_group *attr_group; 17439f40346SAlexander Shishkin 17539f40346SAlexander Shishkin /* source ops */ 17639f40346SAlexander Shishkin int (*set_output)(struct intel_th_device *thdev, 17739f40346SAlexander Shishkin unsigned int master); 17839f40346SAlexander Shishkin }; 17939f40346SAlexander Shishkin 18039f40346SAlexander Shishkin #define to_intel_th_driver(_d) \ 18139f40346SAlexander Shishkin container_of((_d), struct intel_th_driver, driver) 18239f40346SAlexander Shishkin 183f18a9531SAlexander Shishkin #define to_intel_th_driver_or_null(_d) \ 184f18a9531SAlexander Shishkin ((_d) ? to_intel_th_driver(_d) : NULL) 185f18a9531SAlexander Shishkin 1868edc514bSAlexander Shishkin /* 1878edc514bSAlexander Shishkin * Subdevice tree structure is as follows: 1888edc514bSAlexander Shishkin * + struct intel_th device (pci; dev_{get,set}_drvdata() 1898edc514bSAlexander Shishkin * + struct intel_th_device INTEL_TH_SWITCH (GTH) 1908edc514bSAlexander Shishkin * + struct intel_th_device INTEL_TH_OUTPUT (MSU, PTI) 1918edc514bSAlexander Shishkin * + struct intel_th_device INTEL_TH_SOURCE (STH) 1928edc514bSAlexander Shishkin * 1938edc514bSAlexander Shishkin * In other words, INTEL_TH_OUTPUT devices are children of INTEL_TH_SWITCH; 1948edc514bSAlexander Shishkin * INTEL_TH_SWITCH and INTEL_TH_SOURCE are children of the intel_th device. 1958edc514bSAlexander Shishkin */ 19639f40346SAlexander Shishkin static inline struct intel_th_device * 1975e06723aSAlexander Shishkin to_intel_th_parent(struct intel_th_device *thdev) 19839f40346SAlexander Shishkin { 19939f40346SAlexander Shishkin struct device *parent = thdev->dev.parent; 20039f40346SAlexander Shishkin 20139f40346SAlexander Shishkin if (!parent) 20239f40346SAlexander Shishkin return NULL; 20339f40346SAlexander Shishkin 20439f40346SAlexander Shishkin return to_intel_th_device(parent); 20539f40346SAlexander Shishkin } 20639f40346SAlexander Shishkin 2075e06723aSAlexander Shishkin static inline struct intel_th *to_intel_th(struct intel_th_device *thdev) 2085e06723aSAlexander Shishkin { 2098edc514bSAlexander Shishkin if (thdev->type == INTEL_TH_OUTPUT) 2108edc514bSAlexander Shishkin thdev = to_intel_th_parent(thdev); 2115e06723aSAlexander Shishkin 2128edc514bSAlexander Shishkin if (WARN_ON_ONCE(!thdev || thdev->type == INTEL_TH_OUTPUT)) 2135e06723aSAlexander Shishkin return NULL; 2145e06723aSAlexander Shishkin 2155e06723aSAlexander Shishkin return dev_get_drvdata(thdev->dev.parent); 2165e06723aSAlexander Shishkin } 2175e06723aSAlexander Shishkin 21839f40346SAlexander Shishkin struct intel_th * 2193321371bSAlexander Shishkin intel_th_alloc(struct device *dev, struct intel_th_drvdata *drvdata, 22062a59302SAlexander Shishkin struct resource *devres, unsigned int ndevres); 22139f40346SAlexander Shishkin void intel_th_free(struct intel_th *th); 22239f40346SAlexander Shishkin 22339f40346SAlexander Shishkin int intel_th_driver_register(struct intel_th_driver *thdrv); 22439f40346SAlexander Shishkin void intel_th_driver_unregister(struct intel_th_driver *thdrv); 22539f40346SAlexander Shishkin 22639f40346SAlexander Shishkin int intel_th_trace_enable(struct intel_th_device *thdev); 22739f40346SAlexander Shishkin int intel_th_trace_disable(struct intel_th_device *thdev); 22839f40346SAlexander Shishkin int intel_th_set_output(struct intel_th_device *thdev, 22939f40346SAlexander Shishkin unsigned int master); 230a753bfcfSAlexander Shishkin int intel_th_output_enable(struct intel_th *th, unsigned int otype); 23139f40346SAlexander Shishkin 232db73a059SAlexander Shishkin enum th_mmio_idx { 23339f40346SAlexander Shishkin TH_MMIO_CONFIG = 0, 234db73a059SAlexander Shishkin TH_MMIO_SW = 1, 235fc027f4cSAlexander Shishkin TH_MMIO_RTIT = 2, 23639f40346SAlexander Shishkin TH_MMIO_END, 23739f40346SAlexander Shishkin }; 23839f40346SAlexander Shishkin 23939f40346SAlexander Shishkin #define TH_POSSIBLE_OUTPUTS 8 240a753bfcfSAlexander Shishkin /* Total number of possible subdevices: outputs + GTH + STH */ 241a753bfcfSAlexander Shishkin #define TH_SUBDEVICE_MAX (TH_POSSIBLE_OUTPUTS + 2) 24239f40346SAlexander Shishkin #define TH_CONFIGURABLE_MASTERS 256 24339f40346SAlexander Shishkin #define TH_MSC_MAX 2 24439f40346SAlexander Shishkin 2457b7036d4SAlexander Shishkin /* Maximum IRQ vectors */ 2467b7036d4SAlexander Shishkin #define TH_NVEC_MAX 8 2477b7036d4SAlexander Shishkin 24839f40346SAlexander Shishkin /** 24939f40346SAlexander Shishkin * struct intel_th - Intel TH controller 25039f40346SAlexander Shishkin * @dev: driver core's device 25139f40346SAlexander Shishkin * @thdev: subdevices 25239f40346SAlexander Shishkin * @hub: "switch" subdevice (GTH) 253a753bfcfSAlexander Shishkin * @resource: resources of the entire controller 254a753bfcfSAlexander Shishkin * @num_thdevs: number of devices in the @thdev array 255db73a059SAlexander Shishkin * @num_resources: number of resources in the @resource array 256a753bfcfSAlexander Shishkin * @irq: irq number 25739f40346SAlexander Shishkin * @id: this Intel TH controller's device ID in the system 25839f40346SAlexander Shishkin * @major: device node major for output devices 25939f40346SAlexander Shishkin */ 26039f40346SAlexander Shishkin struct intel_th { 26139f40346SAlexander Shishkin struct device *dev; 26239f40346SAlexander Shishkin 26339f40346SAlexander Shishkin struct intel_th_device *thdev[TH_SUBDEVICE_MAX]; 26439f40346SAlexander Shishkin struct intel_th_device *hub; 2653321371bSAlexander Shishkin struct intel_th_drvdata *drvdata; 26639f40346SAlexander Shishkin 267db73a059SAlexander Shishkin struct resource resource[TH_MMIO_END]; 26829e15e83SAlexander Shishkin int (*activate)(struct intel_th *); 26929e15e83SAlexander Shishkin void (*deactivate)(struct intel_th *); 270a753bfcfSAlexander Shishkin unsigned int num_thdevs; 271a753bfcfSAlexander Shishkin unsigned int num_resources; 272a753bfcfSAlexander Shishkin int irq; 273a753bfcfSAlexander Shishkin 27439f40346SAlexander Shishkin int id; 27539f40346SAlexander Shishkin int major; 276a36aa80fSAlexander Shishkin #ifdef CONFIG_MODULES 277a36aa80fSAlexander Shishkin struct work_struct request_module_work; 278a36aa80fSAlexander Shishkin #endif /* CONFIG_MODULES */ 27939f40346SAlexander Shishkin #ifdef CONFIG_INTEL_TH_DEBUG 28039f40346SAlexander Shishkin struct dentry *dbg; 28139f40346SAlexander Shishkin #endif 28239f40346SAlexander Shishkin }; 28339f40346SAlexander Shishkin 2848edc514bSAlexander Shishkin static inline struct intel_th_device * 2858edc514bSAlexander Shishkin to_intel_th_hub(struct intel_th_device *thdev) 2868edc514bSAlexander Shishkin { 2878edc514bSAlexander Shishkin if (thdev->type == INTEL_TH_SWITCH) 2888edc514bSAlexander Shishkin return thdev; 2898edc514bSAlexander Shishkin else if (thdev->type == INTEL_TH_OUTPUT) 2908edc514bSAlexander Shishkin return to_intel_th_parent(thdev); 2918edc514bSAlexander Shishkin 2928edc514bSAlexander Shishkin return to_intel_th(thdev)->hub; 2938edc514bSAlexander Shishkin } 2948edc514bSAlexander Shishkin 29539f40346SAlexander Shishkin /* 29639f40346SAlexander Shishkin * Register windows 29739f40346SAlexander Shishkin */ 29839f40346SAlexander Shishkin enum { 29939f40346SAlexander Shishkin /* Global Trace Hub (GTH) */ 30039f40346SAlexander Shishkin REG_GTH_OFFSET = 0x0000, 30139f40346SAlexander Shishkin REG_GTH_LENGTH = 0x2000, 30239f40346SAlexander Shishkin 303a0e7df33SAlexander Shishkin /* Timestamp counter unit (TSCU) */ 304a0e7df33SAlexander Shishkin REG_TSCU_OFFSET = 0x2000, 305a0e7df33SAlexander Shishkin REG_TSCU_LENGTH = 0x1000, 306a0e7df33SAlexander Shishkin 30739f40346SAlexander Shishkin /* Software Trace Hub (STH) [0x4000..0x4fff] */ 30839f40346SAlexander Shishkin REG_STH_OFFSET = 0x4000, 30939f40346SAlexander Shishkin REG_STH_LENGTH = 0x2000, 31039f40346SAlexander Shishkin 31139f40346SAlexander Shishkin /* Memory Storage Unit (MSU) [0xa0000..0xa1fff] */ 31239f40346SAlexander Shishkin REG_MSU_OFFSET = 0xa0000, 31339f40346SAlexander Shishkin REG_MSU_LENGTH = 0x02000, 31439f40346SAlexander Shishkin 31539f40346SAlexander Shishkin /* Internal MSU trace buffer [0x80000..0x9ffff] */ 31639f40346SAlexander Shishkin BUF_MSU_OFFSET = 0x80000, 31739f40346SAlexander Shishkin BUF_MSU_LENGTH = 0x20000, 31839f40346SAlexander Shishkin 31939f40346SAlexander Shishkin /* PTI output == same window as GTH */ 32039f40346SAlexander Shishkin REG_PTI_OFFSET = REG_GTH_OFFSET, 32139f40346SAlexander Shishkin REG_PTI_LENGTH = REG_GTH_LENGTH, 32239f40346SAlexander Shishkin 32339f40346SAlexander Shishkin /* DCI Handler (DCIH) == some window as MSU */ 32439f40346SAlexander Shishkin REG_DCIH_OFFSET = REG_MSU_OFFSET, 32539f40346SAlexander Shishkin REG_DCIH_LENGTH = REG_MSU_LENGTH, 32639f40346SAlexander Shishkin }; 32739f40346SAlexander Shishkin 32839f40346SAlexander Shishkin /* 3294d02ceffSAlexander Shishkin * Scratchpad bits: tell firmware and external debuggers 3304d02ceffSAlexander Shishkin * what we are up to. 3314d02ceffSAlexander Shishkin */ 3324d02ceffSAlexander Shishkin enum { 3334d02ceffSAlexander Shishkin /* Memory is the primary destination */ 3344d02ceffSAlexander Shishkin SCRPD_MEM_IS_PRIM_DEST = BIT(0), 3354d02ceffSAlexander Shishkin /* XHCI DbC is the primary destination */ 3364d02ceffSAlexander Shishkin SCRPD_DBC_IS_PRIM_DEST = BIT(1), 3374d02ceffSAlexander Shishkin /* PTI is the primary destination */ 3384d02ceffSAlexander Shishkin SCRPD_PTI_IS_PRIM_DEST = BIT(2), 3394d02ceffSAlexander Shishkin /* BSSB is the primary destination */ 3404d02ceffSAlexander Shishkin SCRPD_BSSB_IS_PRIM_DEST = BIT(3), 3414d02ceffSAlexander Shishkin /* PTI is the alternate destination */ 3424d02ceffSAlexander Shishkin SCRPD_PTI_IS_ALT_DEST = BIT(4), 3434d02ceffSAlexander Shishkin /* BSSB is the alternate destination */ 3444d02ceffSAlexander Shishkin SCRPD_BSSB_IS_ALT_DEST = BIT(5), 3454d02ceffSAlexander Shishkin /* DeepSx exit occurred */ 3464d02ceffSAlexander Shishkin SCRPD_DEEPSX_EXIT = BIT(6), 3474d02ceffSAlexander Shishkin /* S4 exit occurred */ 3484d02ceffSAlexander Shishkin SCRPD_S4_EXIT = BIT(7), 3494d02ceffSAlexander Shishkin /* S5 exit occurred */ 3504d02ceffSAlexander Shishkin SCRPD_S5_EXIT = BIT(8), 3514d02ceffSAlexander Shishkin /* MSU controller 0/1 is enabled */ 3524d02ceffSAlexander Shishkin SCRPD_MSC0_IS_ENABLED = BIT(9), 3534d02ceffSAlexander Shishkin SCRPD_MSC1_IS_ENABLED = BIT(10), 3544d02ceffSAlexander Shishkin /* Sx exit occurred */ 3554d02ceffSAlexander Shishkin SCRPD_SX_EXIT = BIT(11), 3564d02ceffSAlexander Shishkin /* Trigger Unit is enabled */ 3574d02ceffSAlexander Shishkin SCRPD_TRIGGER_IS_ENABLED = BIT(12), 3584d02ceffSAlexander Shishkin SCRPD_ODLA_IS_ENABLED = BIT(13), 3594d02ceffSAlexander Shishkin SCRPD_SOCHAP_IS_ENABLED = BIT(14), 3604d02ceffSAlexander Shishkin SCRPD_STH_IS_ENABLED = BIT(15), 3614d02ceffSAlexander Shishkin SCRPD_DCIH_IS_ENABLED = BIT(16), 3624d02ceffSAlexander Shishkin SCRPD_VER_IS_ENABLED = BIT(17), 3634d02ceffSAlexander Shishkin /* External debugger is using Intel TH */ 3644d02ceffSAlexander Shishkin SCRPD_DEBUGGER_IN_USE = BIT(24), 3654d02ceffSAlexander Shishkin }; 3664d02ceffSAlexander Shishkin 36739f40346SAlexander Shishkin #endif 368