License cleanup: add SPDX GPL-2.0 license identifier to files with no license
Many source files in the tree are missing licensing information, which
makes it harder for compliance tools to determine the correct license.
By default all files without license information are under the default
license of the kernel, which is GPL version 2.
Update the files which contain no license information with the 'GPL-2.0'
SPDX license identifier. The SPDX identifier is a legally binding
shorthand, which can be used instead of the full boiler plate text.
This patch is based on work done by Thomas Gleixner and Kate Stewart and
Philippe Ombredanne.
How this work was done:
Patches were generated and checked against linux-4.14-rc6 for a subset of
the use cases:
- file had no licensing information it it.
- file was a */uapi/* one with no licensing information in it,
- file was a */uapi/* one with existing licensing information,
Further patches will be generated in subsequent months to fix up cases
where non-standard license headers were used, and references to license
had to be inferred by heuristics based on keywords.
The analysis to determine which SPDX License Identifier to be applied to
a file was done in a spreadsheet of side by side results from of the
output of two independent scanners (ScanCode & Windriver) producing SPDX
tag:value files created by Philippe Ombredanne. Philippe prepared the
base worksheet, and did an initial spot review of a few 1000 files.
The 4.13 kernel was the starting point of the analysis with 60,537 files
assessed. Kate Stewart did a file by file comparison of the scanner
results in the spreadsheet to determine which SPDX license identifier(s)
to be applied to the file. She confirmed any determination that was not
immediately clear with lawyers working with the Linux Foundation.
Criteria used to select files for SPDX license identifier tagging was:
- Files considered eligible had to be source code files.
- Make and config files were included as candidates if they contained >5
lines of source
- File already had some variant of a license header in it (even if <5
lines).
All documentation files were explicitly excluded.
The following heuristics were used to determine which SPDX license
identifiers to apply.
- when both scanners couldn't find any license traces, file was
considered to have no license information in it, and the top level
COPYING file license applied.
For non */uapi/* files that summary was:
SPDX license identifier # files
---------------------------------------------------|-------
GPL-2.0 11139
and resulted in the first patch in this series.
If that file was a */uapi/* path one, it was "GPL-2.0 WITH
Linux-syscall-note" otherwise it was "GPL-2.0". Results of that was:
SPDX license identifier # files
---------------------------------------------------|-------
GPL-2.0 WITH Linux-syscall-note 930
and resulted in the second patch in this series.
- if a file had some form of licensing information in it, and was one
of the */uapi/* ones, it was denoted with the Linux-syscall-note if
any GPL family license was found in the file or had no licensing in
it (per prior point). Results summary:
SPDX license identifier # files
---------------------------------------------------|------
GPL-2.0 WITH Linux-syscall-note 270
GPL-2.0+ WITH Linux-syscall-note 169
((GPL-2.0 WITH Linux-syscall-note) OR BSD-2-Clause) 21
((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause) 17
LGPL-2.1+ WITH Linux-syscall-note 15
GPL-1.0+ WITH Linux-syscall-note 14
((GPL-2.0+ WITH Linux-syscall-note) OR BSD-3-Clause) 5
LGPL-2.0+ WITH Linux-syscall-note 4
LGPL-2.1 WITH Linux-syscall-note 3
((GPL-2.0 WITH Linux-syscall-note) OR MIT) 3
((GPL-2.0 WITH Linux-syscall-note) AND MIT) 1
and that resulted in the third patch in this series.
- when the two scanners agreed on the detected license(s), that became
the concluded license(s).
- when there was disagreement between the two scanners (one detected a
license but the other didn't, or they both detected different
licenses) a manual inspection of the file occurred.
- In most cases a manual inspection of the information in the file
resulted in a clear resolution of the license that should apply (and
which scanner probably needed to revisit its heuristics).
- When it was not immediately clear, the license identifier was
confirmed with lawyers working with the Linux Foundation.
- If there was any question as to the appropriate license identifier,
the file was flagged for further research and to be revisited later
in time.
In total, over 70 hours of logged manual review was done on the
spreadsheet to determine the SPDX license identifiers to apply to the
source files by Kate, Philippe, Thomas and, in some cases, confirmation
by lawyers working with the Linux Foundation.
Kate also obtained a third independent scan of the 4.13 code base from
FOSSology, and compared selected files where the other two scanners
disagreed against that SPDX file, to see if there was new insights. The
Windriver scanner is based on an older version of FOSSology in part, so
they are related.
Thomas did random spot checks in about 500 files from the spreadsheets
for the uapi headers and agreed with SPDX license identifier in the
files he inspected. For the non-uapi files Thomas did random spot checks
in about 15000 files.
In initial set of patches against 4.14-rc6, 3 files were found to have
copy/paste license identifier errors, and have been fixed to reflect the
correct identifier.
Additionally Philippe spent 10 hours this week doing a detailed manual
inspection and review of the 12,461 patched files from the initial patch
version early this week with:
- a full scancode scan run, collecting the matched texts, detected
license ids and scores
- reviewing anything where there was a license detected (about 500+
files) to ensure that the applied SPDX license was correct
- reviewing anything where there was no detection but the patch license
was not GPL-2.0 WITH Linux-syscall-note to ensure that the applied
SPDX license was correct
This produced a worksheet with 20 files needing minor correction. This
worksheet was then exported into 3 different .csv files for the
different types of files to be modified.
These .csv files were then reviewed by Greg. Thomas wrote a script to
parse the csv files and add the proper SPDX tag to the file, in the
format that the file expected. This script was further refined by Greg
based on the output to detect more types of files automatically and to
distinguish between header and source .c files (which need different
comment types.) Finally Greg ran the script using the .csv files to
generate the patches.
Reviewed-by: Kate Stewart <kstewart@linuxfoundation.org>
Reviewed-by: Philippe Ombredanne <pombredanne@nexb.com>
Reviewed-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2017-11-01 14:07:57 +00:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0 */
|
2014-06-03 20:04:01 +00:00
|
|
|
/*
|
2018-10-01 09:31:22 +00:00
|
|
|
* Thunderbolt driver - Port/Switch config area registers
|
2014-06-03 20:04:01 +00:00
|
|
|
*
|
|
|
|
* Every thunderbolt device consists (logically) of a switch with multiple
|
|
|
|
* ports. Every port contains up to four config regions (HOPS, PORT, SWITCH,
|
|
|
|
* COUNTERS) which are used to configure the device.
|
|
|
|
*
|
|
|
|
* Copyright (c) 2014 Andreas Noever <andreas.noever@gmail.com>
|
2018-10-01 09:31:22 +00:00
|
|
|
* Copyright (C) 2018, Intel Corporation
|
2014-06-03 20:04:01 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef _TB_REGS
|
|
|
|
#define _TB_REGS
|
|
|
|
|
|
|
|
#include <linux/types.h>
|
|
|
|
|
|
|
|
|
|
|
|
#define TB_ROUTE_SHIFT 8 /* number of bits in a port entry of a route */
|
|
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
* TODO: should be 63? But we do not know how to receive frames larger than 256
|
|
|
|
* bytes at the frame level. (header + checksum = 16, 60*4 = 240)
|
|
|
|
*/
|
|
|
|
#define TB_MAX_CONFIG_RW_LENGTH 60
|
|
|
|
|
2017-06-06 12:24:58 +00:00
|
|
|
enum tb_switch_cap {
|
2019-12-17 12:33:43 +00:00
|
|
|
TB_SWITCH_CAP_TMU = 0x03,
|
2017-06-06 12:24:58 +00:00
|
|
|
TB_SWITCH_CAP_VSE = 0x05,
|
|
|
|
};
|
|
|
|
|
|
|
|
enum tb_switch_vse_cap {
|
|
|
|
TB_VSE_CAP_PLUG_EVENTS = 0x01, /* also EEPROM */
|
|
|
|
TB_VSE_CAP_TIME2 = 0x03,
|
2021-12-17 01:16:42 +00:00
|
|
|
TB_VSE_CAP_CP_LP = 0x04,
|
2017-06-06 12:24:58 +00:00
|
|
|
TB_VSE_CAP_LINK_CONTROLLER = 0x06, /* also IECS */
|
|
|
|
};
|
|
|
|
|
|
|
|
enum tb_port_cap {
|
|
|
|
TB_PORT_CAP_PHY = 0x01,
|
2020-06-29 17:30:52 +00:00
|
|
|
TB_PORT_CAP_POWER = 0x02,
|
2017-06-06 12:24:58 +00:00
|
|
|
TB_PORT_CAP_TIME1 = 0x03,
|
|
|
|
TB_PORT_CAP_ADAP = 0x04,
|
|
|
|
TB_PORT_CAP_VSE = 0x05,
|
2019-12-17 12:33:40 +00:00
|
|
|
TB_PORT_CAP_USB4 = 0x06,
|
2014-06-03 20:04:01 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
enum tb_port_state {
|
|
|
|
TB_PORT_DISABLED = 0, /* tb_cap_phy.disable == 1 */
|
|
|
|
TB_PORT_CONNECTING = 1, /* retry */
|
|
|
|
TB_PORT_UP = 2,
|
2022-03-23 14:13:32 +00:00
|
|
|
TB_PORT_TX_CL0S = 3,
|
|
|
|
TB_PORT_RX_CL0S = 4,
|
|
|
|
TB_PORT_CL1 = 5,
|
|
|
|
TB_PORT_CL2 = 6,
|
2014-06-03 20:04:01 +00:00
|
|
|
TB_PORT_UNPLUGGED = 7,
|
|
|
|
};
|
|
|
|
|
|
|
|
/* capability headers */
|
|
|
|
|
|
|
|
struct tb_cap_basic {
|
|
|
|
u8 next;
|
|
|
|
/* enum tb_cap cap:8; prevent "narrower than values of its type" */
|
|
|
|
u8 cap; /* if cap == 0x05 then we have a extended capability */
|
|
|
|
} __packed;
|
|
|
|
|
2017-06-06 12:24:58 +00:00
|
|
|
/**
|
|
|
|
* struct tb_cap_extended_short - Switch extended short capability
|
|
|
|
* @next: Pointer to the next capability. If @next and @length are zero
|
|
|
|
* then we have a long cap.
|
|
|
|
* @cap: Base capability ID (see &enum tb_switch_cap)
|
|
|
|
* @vsec_id: Vendor specific capability ID (see &enum switch_vse_cap)
|
|
|
|
* @length: Length of this capability
|
|
|
|
*/
|
2014-06-03 20:04:01 +00:00
|
|
|
struct tb_cap_extended_short {
|
2017-06-06 12:24:58 +00:00
|
|
|
u8 next;
|
|
|
|
u8 cap;
|
|
|
|
u8 vsec_id;
|
2014-06-03 20:04:01 +00:00
|
|
|
u8 length;
|
|
|
|
} __packed;
|
|
|
|
|
2017-06-06 12:24:58 +00:00
|
|
|
/**
|
|
|
|
* struct tb_cap_extended_long - Switch extended long capability
|
|
|
|
* @zero1: This field should be zero
|
|
|
|
* @cap: Base capability ID (see &enum tb_switch_cap)
|
|
|
|
* @vsec_id: Vendor specific capability ID (see &enum switch_vse_cap)
|
|
|
|
* @zero2: This field should be zero
|
|
|
|
* @next: Pointer to the next capability
|
|
|
|
* @length: Length of this capability
|
|
|
|
*/
|
2014-06-03 20:04:01 +00:00
|
|
|
struct tb_cap_extended_long {
|
|
|
|
u8 zero1;
|
2017-06-06 12:24:58 +00:00
|
|
|
u8 cap;
|
|
|
|
u8 vsec_id;
|
2014-06-03 20:04:01 +00:00
|
|
|
u8 zero2;
|
|
|
|
u16 next;
|
|
|
|
u16 length;
|
|
|
|
} __packed;
|
|
|
|
|
2020-06-29 17:11:38 +00:00
|
|
|
/**
|
|
|
|
* struct tb_cap_any - Structure capable of hold every capability
|
|
|
|
* @basic: Basic capability
|
|
|
|
* @extended_short: Vendor specific capability
|
|
|
|
* @extended_long: Vendor specific extended capability
|
|
|
|
*/
|
|
|
|
struct tb_cap_any {
|
|
|
|
union {
|
|
|
|
struct tb_cap_basic basic;
|
|
|
|
struct tb_cap_extended_short extended_short;
|
|
|
|
struct tb_cap_extended_long extended_long;
|
|
|
|
};
|
|
|
|
} __packed;
|
|
|
|
|
2014-06-03 20:04:01 +00:00
|
|
|
/* capabilities */
|
|
|
|
|
|
|
|
struct tb_cap_link_controller {
|
|
|
|
struct tb_cap_extended_long cap_header;
|
|
|
|
u32 count:4; /* number of link controllers */
|
|
|
|
u32 unknown1:4;
|
|
|
|
u32 base_offset:8; /*
|
|
|
|
* offset (into this capability) of the configuration
|
|
|
|
* area of the first link controller
|
|
|
|
*/
|
|
|
|
u32 length:12; /* link controller configuration area length */
|
|
|
|
u32 unknown2:4; /* TODO check that length is correct */
|
|
|
|
} __packed;
|
|
|
|
|
|
|
|
struct tb_cap_phy {
|
|
|
|
struct tb_cap_basic cap_header;
|
|
|
|
u32 unknown1:16;
|
|
|
|
u32 unknown2:14;
|
|
|
|
bool disable:1;
|
|
|
|
u32 unknown3:11;
|
|
|
|
enum tb_port_state state:4;
|
|
|
|
u32 unknown4:2;
|
|
|
|
} __packed;
|
|
|
|
|
|
|
|
struct tb_eeprom_ctl {
|
2022-03-03 13:13:28 +00:00
|
|
|
bool fl_sk:1; /* send pulse to transfer one bit */
|
|
|
|
bool fl_cs:1; /* set to 0 before access */
|
|
|
|
bool fl_di:1; /* to eeprom */
|
|
|
|
bool fl_do:1; /* from eeprom */
|
|
|
|
bool bit_banging_enable:1; /* set to 1 before access */
|
2014-06-03 20:04:01 +00:00
|
|
|
bool not_present:1; /* should be 0 */
|
|
|
|
bool unknown1:1;
|
|
|
|
bool present:1; /* should be 1 */
|
|
|
|
u32 unknown2:24;
|
|
|
|
} __packed;
|
|
|
|
|
|
|
|
struct tb_cap_plug_events {
|
|
|
|
struct tb_cap_extended_short cap_header;
|
2022-03-03 13:13:27 +00:00
|
|
|
u32 __unknown1:2; /* VSC_CS_1 */
|
|
|
|
u32 plug_events:5; /* VSC_CS_1 */
|
|
|
|
u32 __unknown2:25; /* VSC_CS_1 */
|
|
|
|
u32 vsc_cs_2;
|
|
|
|
u32 vsc_cs_3;
|
2014-06-03 20:04:01 +00:00
|
|
|
struct tb_eeprom_ctl eeprom_ctl;
|
2022-03-03 13:13:27 +00:00
|
|
|
u32 __unknown5[7]; /* VSC_CS_5 -> VSC_CS_11 */
|
|
|
|
u32 drom_offset; /* VSC_CS_12: 32 bit register, but eeprom addresses are 16 bit */
|
2014-06-03 20:04:01 +00:00
|
|
|
} __packed;
|
|
|
|
|
|
|
|
/* device headers */
|
|
|
|
|
|
|
|
/* Present on port 0 in TB_CFG_SWITCH at address zero. */
|
|
|
|
struct tb_regs_switch_header {
|
|
|
|
/* DWORD 0 */
|
|
|
|
u16 vendor_id;
|
|
|
|
u16 device_id;
|
|
|
|
/* DWORD 1 */
|
|
|
|
u32 first_cap_offset:8;
|
|
|
|
u32 upstream_port_number:6;
|
|
|
|
u32 max_port_number:6;
|
|
|
|
u32 depth:3;
|
|
|
|
u32 __unknown1:1;
|
|
|
|
u32 revision:8;
|
|
|
|
/* DWORD 2 */
|
|
|
|
u32 route_lo;
|
|
|
|
/* DWORD 3 */
|
|
|
|
u32 route_hi:31;
|
|
|
|
bool enabled:1;
|
|
|
|
/* DWORD 4 */
|
|
|
|
u32 plug_events_delay:8; /*
|
|
|
|
* RW, pause between plug events in
|
|
|
|
* milliseconds. Writing 0x00 is interpreted
|
|
|
|
* as 255ms.
|
|
|
|
*/
|
2019-12-17 12:33:40 +00:00
|
|
|
u32 cmuv:8;
|
|
|
|
u32 __unknown4:8;
|
2014-06-03 20:04:01 +00:00
|
|
|
u32 thunderbolt_version:8;
|
|
|
|
} __packed;
|
|
|
|
|
2019-12-17 12:33:40 +00:00
|
|
|
/* USB4 version 1.0 */
|
|
|
|
#define USB4_VERSION_1_0 0x20
|
|
|
|
|
|
|
|
#define ROUTER_CS_1 0x01
|
|
|
|
#define ROUTER_CS_4 0x04
|
|
|
|
#define ROUTER_CS_5 0x05
|
|
|
|
#define ROUTER_CS_5_SLP BIT(0)
|
2019-12-06 16:36:07 +00:00
|
|
|
#define ROUTER_CS_5_WOP BIT(1)
|
|
|
|
#define ROUTER_CS_5_WOU BIT(2)
|
2021-01-14 14:44:17 +00:00
|
|
|
#define ROUTER_CS_5_WOD BIT(3)
|
2019-12-17 12:33:40 +00:00
|
|
|
#define ROUTER_CS_5_C3S BIT(23)
|
|
|
|
#define ROUTER_CS_5_PTO BIT(24)
|
2019-12-17 12:33:44 +00:00
|
|
|
#define ROUTER_CS_5_UTO BIT(25)
|
2019-12-17 12:33:40 +00:00
|
|
|
#define ROUTER_CS_5_HCO BIT(26)
|
|
|
|
#define ROUTER_CS_5_CV BIT(31)
|
|
|
|
#define ROUTER_CS_6 0x06
|
|
|
|
#define ROUTER_CS_6_SLPR BIT(0)
|
|
|
|
#define ROUTER_CS_6_TNS BIT(1)
|
2019-12-06 16:36:07 +00:00
|
|
|
#define ROUTER_CS_6_WOPS BIT(2)
|
|
|
|
#define ROUTER_CS_6_WOUS BIT(3)
|
2019-12-17 12:33:40 +00:00
|
|
|
#define ROUTER_CS_6_HCI BIT(18)
|
|
|
|
#define ROUTER_CS_6_CR BIT(25)
|
|
|
|
#define ROUTER_CS_7 0x07
|
|
|
|
#define ROUTER_CS_9 0x09
|
|
|
|
#define ROUTER_CS_25 0x19
|
|
|
|
#define ROUTER_CS_26 0x1a
|
2020-11-10 08:34:07 +00:00
|
|
|
#define ROUTER_CS_26_OPCODE_MASK GENMASK(15, 0)
|
2019-12-17 12:33:40 +00:00
|
|
|
#define ROUTER_CS_26_STATUS_MASK GENMASK(29, 24)
|
|
|
|
#define ROUTER_CS_26_STATUS_SHIFT 24
|
|
|
|
#define ROUTER_CS_26_ONS BIT(30)
|
|
|
|
#define ROUTER_CS_26_OV BIT(31)
|
|
|
|
|
2020-11-12 13:45:18 +00:00
|
|
|
/* USB4 router operations opcodes */
|
|
|
|
enum usb4_switch_op {
|
|
|
|
USB4_SWITCH_OP_QUERY_DP_RESOURCE = 0x10,
|
|
|
|
USB4_SWITCH_OP_ALLOC_DP_RESOURCE = 0x11,
|
|
|
|
USB4_SWITCH_OP_DEALLOC_DP_RESOURCE = 0x12,
|
|
|
|
USB4_SWITCH_OP_NVM_WRITE = 0x20,
|
|
|
|
USB4_SWITCH_OP_NVM_AUTH = 0x21,
|
|
|
|
USB4_SWITCH_OP_NVM_READ = 0x22,
|
|
|
|
USB4_SWITCH_OP_NVM_SET_OFFSET = 0x23,
|
|
|
|
USB4_SWITCH_OP_DROM_READ = 0x24,
|
|
|
|
USB4_SWITCH_OP_NVM_SECTOR_SIZE = 0x25,
|
2021-03-10 11:34:12 +00:00
|
|
|
USB4_SWITCH_OP_BUFFER_ALLOC = 0x33,
|
2020-11-12 13:45:18 +00:00
|
|
|
};
|
|
|
|
|
2019-12-17 12:33:43 +00:00
|
|
|
/* Router TMU configuration */
|
|
|
|
#define TMU_RTR_CS_0 0x00
|
2022-05-26 10:59:20 +00:00
|
|
|
#define TMU_RTR_CS_0_FREQ_WIND_MASK GENMASK(26, 16)
|
2019-12-17 12:33:43 +00:00
|
|
|
#define TMU_RTR_CS_0_TD BIT(27)
|
|
|
|
#define TMU_RTR_CS_0_UCAP BIT(30)
|
|
|
|
#define TMU_RTR_CS_1 0x01
|
|
|
|
#define TMU_RTR_CS_1_LOCAL_TIME_NS_MASK GENMASK(31, 16)
|
|
|
|
#define TMU_RTR_CS_1_LOCAL_TIME_NS_SHIFT 16
|
|
|
|
#define TMU_RTR_CS_2 0x02
|
|
|
|
#define TMU_RTR_CS_3 0x03
|
|
|
|
#define TMU_RTR_CS_3_LOCAL_TIME_NS_MASK GENMASK(15, 0)
|
|
|
|
#define TMU_RTR_CS_3_TS_PACKET_INTERVAL_MASK GENMASK(31, 16)
|
|
|
|
#define TMU_RTR_CS_3_TS_PACKET_INTERVAL_SHIFT 16
|
2022-05-26 10:59:20 +00:00
|
|
|
#define TMU_RTR_CS_15 0xf
|
|
|
|
#define TMU_RTR_CS_15_FREQ_AVG_MASK GENMASK(5, 0)
|
|
|
|
#define TMU_RTR_CS_15_DELAY_AVG_MASK GENMASK(11, 6)
|
|
|
|
#define TMU_RTR_CS_15_OFFSET_AVG_MASK GENMASK(17, 12)
|
|
|
|
#define TMU_RTR_CS_15_ERROR_AVG_MASK GENMASK(23, 18)
|
2019-12-17 12:33:43 +00:00
|
|
|
#define TMU_RTR_CS_22 0x16
|
|
|
|
#define TMU_RTR_CS_24 0x18
|
2021-12-17 01:16:38 +00:00
|
|
|
#define TMU_RTR_CS_25 0x19
|
2019-12-17 12:33:43 +00:00
|
|
|
|
2014-06-03 20:04:01 +00:00
|
|
|
enum tb_port_type {
|
|
|
|
TB_TYPE_INACTIVE = 0x000000,
|
|
|
|
TB_TYPE_PORT = 0x000001,
|
|
|
|
TB_TYPE_NHI = 0x000002,
|
|
|
|
/* TB_TYPE_ETHERNET = 0x020000, lower order bits are not known */
|
|
|
|
/* TB_TYPE_SATA = 0x080000, lower order bits are not known */
|
|
|
|
TB_TYPE_DP_HDMI_IN = 0x0e0101,
|
|
|
|
TB_TYPE_DP_HDMI_OUT = 0x0e0102,
|
|
|
|
TB_TYPE_PCIE_DOWN = 0x100101,
|
|
|
|
TB_TYPE_PCIE_UP = 0x100102,
|
2019-12-17 12:33:44 +00:00
|
|
|
TB_TYPE_USB3_DOWN = 0x200101,
|
|
|
|
TB_TYPE_USB3_UP = 0x200102,
|
2014-06-03 20:04:01 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
/* Present on every port in TB_CF_PORT at address zero. */
|
|
|
|
struct tb_regs_port_header {
|
|
|
|
/* DWORD 0 */
|
|
|
|
u16 vendor_id;
|
|
|
|
u16 device_id;
|
|
|
|
/* DWORD 1 */
|
|
|
|
u32 first_cap_offset:8;
|
|
|
|
u32 max_counters:11;
|
2020-06-29 17:30:52 +00:00
|
|
|
u32 counters_support:1;
|
|
|
|
u32 __unknown1:4;
|
2014-06-03 20:04:01 +00:00
|
|
|
u32 revision:8;
|
|
|
|
/* DWORD 2 */
|
|
|
|
enum tb_port_type type:24;
|
|
|
|
u32 thunderbolt_version:8;
|
|
|
|
/* DWORD 3 */
|
|
|
|
u32 __unknown2:20;
|
|
|
|
u32 port_number:6;
|
|
|
|
u32 __unknown3:6;
|
|
|
|
/* DWORD 4 */
|
|
|
|
u32 nfc_credits;
|
|
|
|
/* DWORD 5 */
|
|
|
|
u32 max_in_hop_id:11;
|
|
|
|
u32 max_out_hop_id:11;
|
2018-07-25 08:03:15 +00:00
|
|
|
u32 __unknown4:10;
|
2014-06-03 20:04:01 +00:00
|
|
|
/* DWORD 6 */
|
|
|
|
u32 __unknown5;
|
|
|
|
/* DWORD 7 */
|
|
|
|
u32 __unknown6;
|
|
|
|
|
|
|
|
} __packed;
|
|
|
|
|
2019-09-06 08:59:00 +00:00
|
|
|
/* Basic adapter configuration registers */
|
|
|
|
#define ADP_CS_4 0x04
|
|
|
|
#define ADP_CS_4_NFC_BUFFERS_MASK GENMASK(9, 0)
|
|
|
|
#define ADP_CS_4_TOTAL_BUFFERS_MASK GENMASK(29, 20)
|
|
|
|
#define ADP_CS_4_TOTAL_BUFFERS_SHIFT 20
|
2019-12-17 12:33:40 +00:00
|
|
|
#define ADP_CS_4_LCK BIT(31)
|
2019-09-06 08:59:00 +00:00
|
|
|
#define ADP_CS_5 0x05
|
|
|
|
#define ADP_CS_5_LCA_MASK GENMASK(28, 22)
|
|
|
|
#define ADP_CS_5_LCA_SHIFT 22
|
2022-09-26 14:33:50 +00:00
|
|
|
#define ADP_CS_5_DHP BIT(31)
|
2018-09-17 13:30:49 +00:00
|
|
|
|
2019-12-17 12:33:43 +00:00
|
|
|
/* TMU adapter registers */
|
|
|
|
#define TMU_ADP_CS_3 0x03
|
|
|
|
#define TMU_ADP_CS_3_UDM BIT(29)
|
2021-12-17 01:16:38 +00:00
|
|
|
#define TMU_ADP_CS_6 0x06
|
|
|
|
#define TMU_ADP_CS_6_DTS BIT(1)
|
2019-12-17 12:33:43 +00:00
|
|
|
|
2019-03-21 17:03:00 +00:00
|
|
|
/* Lane adapter registers */
|
|
|
|
#define LANE_ADP_CS_0 0x00
|
2022-02-13 14:44:45 +00:00
|
|
|
#define LANE_ADP_CS_0_SUPPORTED_SPEED_MASK GENMASK(19, 16)
|
|
|
|
#define LANE_ADP_CS_0_SUPPORTED_SPEED_SHIFT 16
|
2019-03-21 17:03:00 +00:00
|
|
|
#define LANE_ADP_CS_0_SUPPORTED_WIDTH_MASK GENMASK(25, 20)
|
|
|
|
#define LANE_ADP_CS_0_SUPPORTED_WIDTH_SHIFT 20
|
2022-02-13 14:44:45 +00:00
|
|
|
#define LANE_ADP_CS_0_SUPPORTED_WIDTH_DUAL 0x2
|
2021-12-17 01:16:39 +00:00
|
|
|
#define LANE_ADP_CS_0_CL0S_SUPPORT BIT(26)
|
|
|
|
#define LANE_ADP_CS_0_CL1_SUPPORT BIT(27)
|
2022-08-30 09:12:40 +00:00
|
|
|
#define LANE_ADP_CS_0_CL2_SUPPORT BIT(28)
|
2019-03-21 17:03:00 +00:00
|
|
|
#define LANE_ADP_CS_1 0x01
|
2022-02-13 14:44:45 +00:00
|
|
|
#define LANE_ADP_CS_1_TARGET_SPEED_MASK GENMASK(3, 0)
|
|
|
|
#define LANE_ADP_CS_1_TARGET_SPEED_GEN3 0xc
|
2019-03-21 17:03:00 +00:00
|
|
|
#define LANE_ADP_CS_1_TARGET_WIDTH_MASK GENMASK(9, 4)
|
|
|
|
#define LANE_ADP_CS_1_TARGET_WIDTH_SHIFT 4
|
|
|
|
#define LANE_ADP_CS_1_TARGET_WIDTH_SINGLE 0x1
|
|
|
|
#define LANE_ADP_CS_1_TARGET_WIDTH_DUAL 0x3
|
2021-12-17 01:16:39 +00:00
|
|
|
#define LANE_ADP_CS_1_CL0S_ENABLE BIT(10)
|
|
|
|
#define LANE_ADP_CS_1_CL1_ENABLE BIT(11)
|
2022-08-15 16:59:43 +00:00
|
|
|
#define LANE_ADP_CS_1_CL2_ENABLE BIT(12)
|
2020-02-21 10:11:54 +00:00
|
|
|
#define LANE_ADP_CS_1_LD BIT(14)
|
2019-03-21 17:03:00 +00:00
|
|
|
#define LANE_ADP_CS_1_LB BIT(15)
|
|
|
|
#define LANE_ADP_CS_1_CURRENT_SPEED_MASK GENMASK(19, 16)
|
|
|
|
#define LANE_ADP_CS_1_CURRENT_SPEED_SHIFT 16
|
|
|
|
#define LANE_ADP_CS_1_CURRENT_SPEED_GEN2 0x8
|
|
|
|
#define LANE_ADP_CS_1_CURRENT_SPEED_GEN3 0x4
|
|
|
|
#define LANE_ADP_CS_1_CURRENT_WIDTH_MASK GENMASK(25, 20)
|
|
|
|
#define LANE_ADP_CS_1_CURRENT_WIDTH_SHIFT 20
|
2021-12-17 01:16:39 +00:00
|
|
|
#define LANE_ADP_CS_1_PMS BIT(30)
|
2019-03-21 17:03:00 +00:00
|
|
|
|
2019-12-17 12:33:40 +00:00
|
|
|
/* USB4 port registers */
|
2020-03-05 14:33:46 +00:00
|
|
|
#define PORT_CS_1 0x01
|
|
|
|
#define PORT_CS_1_LENGTH_SHIFT 8
|
|
|
|
#define PORT_CS_1_TARGET_MASK GENMASK(18, 16)
|
|
|
|
#define PORT_CS_1_TARGET_SHIFT 16
|
|
|
|
#define PORT_CS_1_RETIMER_INDEX_SHIFT 20
|
|
|
|
#define PORT_CS_1_WNR_WRITE BIT(24)
|
|
|
|
#define PORT_CS_1_NR BIT(25)
|
|
|
|
#define PORT_CS_1_RC BIT(26)
|
|
|
|
#define PORT_CS_1_PND BIT(31)
|
|
|
|
#define PORT_CS_2 0x02
|
2019-12-17 12:33:40 +00:00
|
|
|
#define PORT_CS_18 0x12
|
|
|
|
#define PORT_CS_18_BE BIT(8)
|
2020-03-04 15:09:14 +00:00
|
|
|
#define PORT_CS_18_TCM BIT(9)
|
2021-12-17 01:16:39 +00:00
|
|
|
#define PORT_CS_18_CPS BIT(10)
|
2022-11-01 11:50:42 +00:00
|
|
|
#define PORT_CS_18_WOCS BIT(16)
|
|
|
|
#define PORT_CS_18_WODS BIT(17)
|
2019-12-06 16:36:07 +00:00
|
|
|
#define PORT_CS_18_WOU4S BIT(18)
|
2019-12-17 12:33:40 +00:00
|
|
|
#define PORT_CS_19 0x13
|
|
|
|
#define PORT_CS_19_PC BIT(3)
|
2020-04-09 11:23:32 +00:00
|
|
|
#define PORT_CS_19_PID BIT(4)
|
2019-12-06 16:36:07 +00:00
|
|
|
#define PORT_CS_19_WOC BIT(16)
|
|
|
|
#define PORT_CS_19_WOD BIT(17)
|
|
|
|
#define PORT_CS_19_WOU4 BIT(18)
|
2019-12-17 12:33:40 +00:00
|
|
|
|
2018-09-17 13:30:49 +00:00
|
|
|
/* Display Port adapter registers */
|
2019-09-06 08:32:15 +00:00
|
|
|
#define ADP_DP_CS_0 0x00
|
|
|
|
#define ADP_DP_CS_0_VIDEO_HOPID_MASK GENMASK(26, 16)
|
|
|
|
#define ADP_DP_CS_0_VIDEO_HOPID_SHIFT 16
|
|
|
|
#define ADP_DP_CS_0_AE BIT(30)
|
|
|
|
#define ADP_DP_CS_0_VE BIT(31)
|
|
|
|
#define ADP_DP_CS_1_AUX_TX_HOPID_MASK GENMASK(10, 0)
|
|
|
|
#define ADP_DP_CS_1_AUX_RX_HOPID_MASK GENMASK(21, 11)
|
|
|
|
#define ADP_DP_CS_1_AUX_RX_HOPID_SHIFT 11
|
|
|
|
#define ADP_DP_CS_2 0x02
|
2022-03-23 14:18:28 +00:00
|
|
|
#define ADP_DP_CS_2_NRD_MLC_MASK GENMASK(2, 0)
|
2019-09-06 08:32:15 +00:00
|
|
|
#define ADP_DP_CS_2_HDP BIT(6)
|
2022-03-23 14:18:28 +00:00
|
|
|
#define ADP_DP_CS_2_NRD_MLR_MASK GENMASK(9, 7)
|
|
|
|
#define ADP_DP_CS_2_NRD_MLR_SHIFT 7
|
|
|
|
#define ADP_DP_CS_2_CA BIT(10)
|
|
|
|
#define ADP_DP_CS_2_GR_MASK GENMASK(12, 11)
|
|
|
|
#define ADP_DP_CS_2_GR_SHIFT 11
|
|
|
|
#define ADP_DP_CS_2_GR_0_25G 0x0
|
|
|
|
#define ADP_DP_CS_2_GR_0_5G 0x1
|
|
|
|
#define ADP_DP_CS_2_GR_1G 0x2
|
|
|
|
#define ADP_DP_CS_2_GROUP_ID_MASK GENMASK(15, 13)
|
|
|
|
#define ADP_DP_CS_2_GROUP_ID_SHIFT 13
|
|
|
|
#define ADP_DP_CS_2_CM_ID_MASK GENMASK(19, 16)
|
|
|
|
#define ADP_DP_CS_2_CM_ID_SHIFT 16
|
|
|
|
#define ADP_DP_CS_2_CMMS BIT(20)
|
|
|
|
#define ADP_DP_CS_2_ESTIMATED_BW_MASK GENMASK(31, 24)
|
|
|
|
#define ADP_DP_CS_2_ESTIMATED_BW_SHIFT 24
|
2019-09-06 08:32:15 +00:00
|
|
|
#define ADP_DP_CS_3 0x03
|
|
|
|
#define ADP_DP_CS_3_HDPC BIT(9)
|
|
|
|
#define DP_LOCAL_CAP 0x04
|
|
|
|
#define DP_REMOTE_CAP 0x05
|
2022-03-23 14:18:28 +00:00
|
|
|
/* For DP IN adapter */
|
|
|
|
#define DP_STATUS 0x06
|
|
|
|
#define DP_STATUS_ALLOCATED_BW_MASK GENMASK(31, 24)
|
|
|
|
#define DP_STATUS_ALLOCATED_BW_SHIFT 24
|
|
|
|
/* For DP OUT adapter */
|
2019-02-15 16:18:47 +00:00
|
|
|
#define DP_STATUS_CTRL 0x06
|
|
|
|
#define DP_STATUS_CTRL_CMHS BIT(25)
|
|
|
|
#define DP_STATUS_CTRL_UF BIT(26)
|
2019-03-26 13:03:48 +00:00
|
|
|
#define DP_COMMON_CAP 0x07
|
2022-03-23 14:18:28 +00:00
|
|
|
/* Only if DP IN supports BW allocation mode */
|
|
|
|
#define ADP_DP_CS_8 0x08
|
|
|
|
#define ADP_DP_CS_8_REQUESTED_BW_MASK GENMASK(7, 0)
|
|
|
|
#define ADP_DP_CS_8_DPME BIT(30)
|
|
|
|
#define ADP_DP_CS_8_DR BIT(31)
|
|
|
|
|
2019-03-26 13:03:48 +00:00
|
|
|
/*
|
|
|
|
* DP_COMMON_CAP offsets work also for DP_LOCAL_CAP and DP_REMOTE_CAP
|
|
|
|
* with exception of DPRX done.
|
|
|
|
*/
|
|
|
|
#define DP_COMMON_CAP_RATE_MASK GENMASK(11, 8)
|
|
|
|
#define DP_COMMON_CAP_RATE_SHIFT 8
|
|
|
|
#define DP_COMMON_CAP_RATE_RBR 0x0
|
|
|
|
#define DP_COMMON_CAP_RATE_HBR 0x1
|
|
|
|
#define DP_COMMON_CAP_RATE_HBR2 0x2
|
|
|
|
#define DP_COMMON_CAP_RATE_HBR3 0x3
|
|
|
|
#define DP_COMMON_CAP_LANES_MASK GENMASK(14, 12)
|
|
|
|
#define DP_COMMON_CAP_LANES_SHIFT 12
|
|
|
|
#define DP_COMMON_CAP_1_LANE 0x0
|
|
|
|
#define DP_COMMON_CAP_2_LANES 0x1
|
|
|
|
#define DP_COMMON_CAP_4_LANES 0x2
|
2021-10-27 10:29:09 +00:00
|
|
|
#define DP_COMMON_CAP_LTTPR_NS BIT(27)
|
2022-03-23 14:18:28 +00:00
|
|
|
#define DP_COMMON_CAP_BW_MODE BIT(28)
|
2019-03-26 13:03:48 +00:00
|
|
|
#define DP_COMMON_CAP_DPRX_DONE BIT(31)
|
2022-03-23 14:18:28 +00:00
|
|
|
/* Only present if DP IN supports BW allocation mode */
|
|
|
|
#define ADP_DP_CS_8 0x08
|
|
|
|
#define ADP_DP_CS_8_DPME BIT(30)
|
|
|
|
#define ADP_DP_CS_8_DR BIT(31)
|
2018-10-11 08:38:22 +00:00
|
|
|
|
2017-02-19 11:48:29 +00:00
|
|
|
/* PCIe adapter registers */
|
2019-09-06 09:05:24 +00:00
|
|
|
#define ADP_PCIE_CS_0 0x00
|
|
|
|
#define ADP_PCIE_CS_0_PE BIT(31)
|
2017-02-19 11:48:29 +00:00
|
|
|
|
2019-12-17 12:33:44 +00:00
|
|
|
/* USB adapter registers */
|
|
|
|
#define ADP_USB3_CS_0 0x00
|
|
|
|
#define ADP_USB3_CS_0_V BIT(30)
|
|
|
|
#define ADP_USB3_CS_0_PE BIT(31)
|
2020-02-21 21:14:41 +00:00
|
|
|
#define ADP_USB3_CS_1 0x01
|
|
|
|
#define ADP_USB3_CS_1_CUBW_MASK GENMASK(11, 0)
|
|
|
|
#define ADP_USB3_CS_1_CDBW_MASK GENMASK(23, 12)
|
|
|
|
#define ADP_USB3_CS_1_CDBW_SHIFT 12
|
|
|
|
#define ADP_USB3_CS_1_HCA BIT(31)
|
|
|
|
#define ADP_USB3_CS_2 0x02
|
|
|
|
#define ADP_USB3_CS_2_AUBW_MASK GENMASK(11, 0)
|
|
|
|
#define ADP_USB3_CS_2_ADBW_MASK GENMASK(23, 12)
|
|
|
|
#define ADP_USB3_CS_2_ADBW_SHIFT 12
|
|
|
|
#define ADP_USB3_CS_2_CMR BIT(31)
|
|
|
|
#define ADP_USB3_CS_3 0x03
|
|
|
|
#define ADP_USB3_CS_3_SCALE_MASK GENMASK(5, 0)
|
|
|
|
#define ADP_USB3_CS_4 0x04
|
|
|
|
#define ADP_USB3_CS_4_ALR_MASK GENMASK(6, 0)
|
|
|
|
#define ADP_USB3_CS_4_ALR_20G 0x1
|
|
|
|
#define ADP_USB3_CS_4_ULV BIT(7)
|
|
|
|
#define ADP_USB3_CS_4_MSLR_MASK GENMASK(18, 12)
|
|
|
|
#define ADP_USB3_CS_4_MSLR_SHIFT 12
|
|
|
|
#define ADP_USB3_CS_4_MSLR_20G 0x1
|
2019-12-17 12:33:44 +00:00
|
|
|
|
2014-06-03 20:04:01 +00:00
|
|
|
/* Hop register from TB_CFG_HOPS. 8 byte per entry. */
|
|
|
|
struct tb_regs_hop {
|
|
|
|
/* DWORD 0 */
|
|
|
|
u32 next_hop:11; /*
|
|
|
|
* hop to take after sending the packet through
|
|
|
|
* out_port (on the incoming port of the next switch)
|
|
|
|
*/
|
|
|
|
u32 out_port:6; /* next port of the path (on the same switch) */
|
|
|
|
u32 initial_credits:8;
|
|
|
|
u32 unknown1:6; /* set to zero */
|
|
|
|
bool enable:1;
|
|
|
|
|
|
|
|
/* DWORD 1 */
|
|
|
|
u32 weight:4;
|
|
|
|
u32 unknown2:4; /* set to zero */
|
|
|
|
u32 priority:3;
|
|
|
|
bool drop_packages:1;
|
|
|
|
u32 counter:11; /* index into TB_CFG_COUNTERS on this port */
|
|
|
|
bool counter_enable:1;
|
|
|
|
bool ingress_fc:1;
|
|
|
|
bool egress_fc:1;
|
|
|
|
bool ingress_shared_buffer:1;
|
|
|
|
bool egress_shared_buffer:1;
|
2017-02-17 15:05:37 +00:00
|
|
|
bool pending:1;
|
|
|
|
u32 unknown3:3; /* set to zero */
|
2014-06-03 20:04:01 +00:00
|
|
|
} __packed;
|
|
|
|
|
2021-12-17 01:16:41 +00:00
|
|
|
/* TMU Thunderbolt 3 registers */
|
2021-12-17 01:16:43 +00:00
|
|
|
#define TB_TIME_VSEC_3_CS_9 0x9
|
|
|
|
#define TB_TIME_VSEC_3_CS_9_TMU_OBJ_MASK GENMASK(17, 16)
|
|
|
|
#define TB_TIME_VSEC_3_CS_26 0x1a
|
|
|
|
#define TB_TIME_VSEC_3_CS_26_TD BIT(22)
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Used for Titan Ridge only. Bits are part of the same register: TMU_ADP_CS_6
|
|
|
|
* (see above) as in USB4 spec, but these specific bits used for Titan Ridge
|
|
|
|
* only and reserved in USB4 spec.
|
|
|
|
*/
|
|
|
|
#define TMU_ADP_CS_6_DISABLE_TMU_OBJ_MASK GENMASK(3, 2)
|
|
|
|
#define TMU_ADP_CS_6_DISABLE_TMU_OBJ_CL1 BIT(2)
|
|
|
|
#define TMU_ADP_CS_6_DISABLE_TMU_OBJ_CL2 BIT(3)
|
|
|
|
|
|
|
|
/* Plug Events registers */
|
2022-01-07 11:00:47 +00:00
|
|
|
#define TB_PLUG_EVENTS_USB_DISABLE BIT(2)
|
2022-03-03 13:13:27 +00:00
|
|
|
#define TB_PLUG_EVENTS_CS_1_LANE_DISABLE BIT(3)
|
|
|
|
#define TB_PLUG_EVENTS_CS_1_DPOUT_DISABLE BIT(4)
|
|
|
|
#define TB_PLUG_EVENTS_CS_1_LOW_DPIN_DISABLE BIT(5)
|
|
|
|
#define TB_PLUG_EVENTS_CS_1_HIGH_DPIN_DISABLE BIT(6)
|
2022-01-07 11:00:47 +00:00
|
|
|
|
2021-12-17 01:16:43 +00:00
|
|
|
#define TB_PLUG_EVENTS_PCIE_WR_DATA 0x1b
|
|
|
|
#define TB_PLUG_EVENTS_PCIE_CMD 0x1c
|
|
|
|
#define TB_PLUG_EVENTS_PCIE_CMD_DW_OFFSET_MASK GENMASK(9, 0)
|
|
|
|
#define TB_PLUG_EVENTS_PCIE_CMD_BR_SHIFT 10
|
|
|
|
#define TB_PLUG_EVENTS_PCIE_CMD_BR_MASK GENMASK(17, 10)
|
|
|
|
#define TB_PLUG_EVENTS_PCIE_CMD_RD_WR_MASK BIT(21)
|
|
|
|
#define TB_PLUG_EVENTS_PCIE_CMD_WR 0x1
|
|
|
|
#define TB_PLUG_EVENTS_PCIE_CMD_COMMAND_SHIFT 22
|
|
|
|
#define TB_PLUG_EVENTS_PCIE_CMD_COMMAND_MASK GENMASK(24, 22)
|
|
|
|
#define TB_PLUG_EVENTS_PCIE_CMD_COMMAND_VAL 0x2
|
|
|
|
#define TB_PLUG_EVENTS_PCIE_CMD_REQ_ACK_MASK BIT(30)
|
|
|
|
#define TB_PLUG_EVENTS_PCIE_CMD_TIMEOUT_MASK BIT(31)
|
|
|
|
#define TB_PLUG_EVENTS_PCIE_CMD_RD_DATA 0x1d
|
|
|
|
|
|
|
|
/* CP Low Power registers */
|
|
|
|
#define TB_LOW_PWR_C1_CL1 0x1
|
|
|
|
#define TB_LOW_PWR_C1_CL1_OBJ_MASK GENMASK(4, 1)
|
|
|
|
#define TB_LOW_PWR_C1_CL2_OBJ_MASK GENMASK(4, 1)
|
|
|
|
#define TB_LOW_PWR_C1_PORT_A_MASK GENMASK(2, 1)
|
|
|
|
#define TB_LOW_PWR_C0_PORT_B_MASK GENMASK(4, 3)
|
|
|
|
#define TB_LOW_PWR_C3_CL1 0x3
|
2021-12-17 01:16:41 +00:00
|
|
|
|
2019-01-09 14:42:12 +00:00
|
|
|
/* Common link controller registers */
|
2021-12-17 01:16:43 +00:00
|
|
|
#define TB_LC_DESC 0x02
|
|
|
|
#define TB_LC_DESC_NLC_MASK GENMASK(3, 0)
|
|
|
|
#define TB_LC_DESC_SIZE_SHIFT 8
|
|
|
|
#define TB_LC_DESC_SIZE_MASK GENMASK(15, 8)
|
|
|
|
#define TB_LC_DESC_PORT_SIZE_SHIFT 16
|
|
|
|
#define TB_LC_DESC_PORT_SIZE_MASK GENMASK(27, 16)
|
|
|
|
#define TB_LC_FUSE 0x03
|
|
|
|
#define TB_LC_SNK_ALLOCATION 0x10
|
|
|
|
#define TB_LC_SNK_ALLOCATION_SNK0_MASK GENMASK(3, 0)
|
|
|
|
#define TB_LC_SNK_ALLOCATION_SNK0_CM 0x1
|
|
|
|
#define TB_LC_SNK_ALLOCATION_SNK1_SHIFT 4
|
|
|
|
#define TB_LC_SNK_ALLOCATION_SNK1_MASK GENMASK(7, 4)
|
|
|
|
#define TB_LC_SNK_ALLOCATION_SNK1_CM 0x1
|
|
|
|
#define TB_LC_POWER 0x740
|
2014-06-03 20:04:01 +00:00
|
|
|
|
2018-10-11 09:33:08 +00:00
|
|
|
/* Link controller registers */
|
2022-01-07 11:00:47 +00:00
|
|
|
#define TB_LC_CS_42 0x2a
|
|
|
|
#define TB_LC_CS_42_USB_PLUGGED BIT(31)
|
|
|
|
|
2021-12-17 01:16:43 +00:00
|
|
|
#define TB_LC_PORT_ATTR 0x8d
|
|
|
|
#define TB_LC_PORT_ATTR_BE BIT(12)
|
|
|
|
|
|
|
|
#define TB_LC_SX_CTRL 0x96
|
|
|
|
#define TB_LC_SX_CTRL_WOC BIT(1)
|
|
|
|
#define TB_LC_SX_CTRL_WOD BIT(2)
|
|
|
|
#define TB_LC_SX_CTRL_WODPC BIT(3)
|
|
|
|
#define TB_LC_SX_CTRL_WODPD BIT(4)
|
|
|
|
#define TB_LC_SX_CTRL_WOU4 BIT(5)
|
|
|
|
#define TB_LC_SX_CTRL_WOP BIT(6)
|
|
|
|
#define TB_LC_SX_CTRL_L1C BIT(16)
|
|
|
|
#define TB_LC_SX_CTRL_L1D BIT(17)
|
|
|
|
#define TB_LC_SX_CTRL_L2C BIT(20)
|
|
|
|
#define TB_LC_SX_CTRL_L2D BIT(21)
|
|
|
|
#define TB_LC_SX_CTRL_SLI BIT(29)
|
|
|
|
#define TB_LC_SX_CTRL_UPSTREAM BIT(30)
|
|
|
|
#define TB_LC_SX_CTRL_SLP BIT(31)
|
|
|
|
#define TB_LC_LINK_ATTR 0x97
|
|
|
|
#define TB_LC_LINK_ATTR_CPS BIT(18)
|
2018-10-11 09:33:08 +00:00
|
|
|
|
2022-01-07 11:00:47 +00:00
|
|
|
#define TB_LC_LINK_REQ 0xad
|
|
|
|
#define TB_LC_LINK_REQ_XHCI_CONNECT BIT(31)
|
|
|
|
|
2014-06-03 20:04:01 +00:00
|
|
|
#endif
|