cachepc-linux

Fork of AMDESE/linux with modifications for CachePC side-channel attack
git clone https://git.sinitax.com/sinitax/cachepc-linux
Log | Files | Refs | README | LICENSE | sfeed.txt

sb_regs.h (1189B)


      1/* SPDX-License-Identifier: GPL-2.0 */
      2/*
      3 * USB4 port sideband registers found on routers and retimers
      4 *
      5 * Copyright (C) 2020, Intel Corporation
      6 * Authors: Mika Westerberg <mika.westerberg@linux.intel.com>
      7 *	    Rajmohan Mani <rajmohan.mani@intel.com>
      8 */
      9
     10#ifndef _SB_REGS
     11#define _SB_REGS
     12
     13#define USB4_SB_VENDOR_ID			0x00
     14#define USB4_SB_PRODUCT_ID			0x01
     15#define USB4_SB_OPCODE				0x08
     16
     17enum usb4_sb_opcode {
     18	USB4_SB_OPCODE_ERR = 0x20525245,			/* "ERR " */
     19	USB4_SB_OPCODE_ONS = 0x444d4321,			/* "!CMD" */
     20	USB4_SB_OPCODE_ROUTER_OFFLINE = 0x4e45534c,		/* "LSEN" */
     21	USB4_SB_OPCODE_ENUMERATE_RETIMERS = 0x4d554e45,		/* "ENUM" */
     22	USB4_SB_OPCODE_SET_INBOUND_SBTX = 0x5055534c,		/* "LSUP" */
     23	USB4_SB_OPCODE_QUERY_LAST_RETIMER = 0x5453414c,		/* "LAST" */
     24	USB4_SB_OPCODE_GET_NVM_SECTOR_SIZE = 0x53534e47,	/* "GNSS" */
     25	USB4_SB_OPCODE_NVM_SET_OFFSET = 0x53504f42,		/* "BOPS" */
     26	USB4_SB_OPCODE_NVM_BLOCK_WRITE = 0x574b4c42,		/* "BLKW" */
     27	USB4_SB_OPCODE_NVM_AUTH_WRITE = 0x48545541,		/* "AUTH" */
     28	USB4_SB_OPCODE_NVM_READ = 0x52524641,			/* "AFRR" */
     29};
     30
     31#define USB4_SB_METADATA			0x09
     32#define USB4_SB_METADATA_NVM_AUTH_WRITE_MASK	GENMASK(5, 0)
     33#define USB4_SB_DATA				0x12
     34
     35#endif