Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0 */
0002 /*
0003  * USB4 port sideband registers found on routers and retimers
0004  *
0005  * Copyright (C) 2020, Intel Corporation
0006  * Authors: Mika Westerberg <mika.westerberg@linux.intel.com>
0007  *      Rajmohan Mani <rajmohan.mani@intel.com>
0008  */
0009 
0010 #ifndef _SB_REGS
0011 #define _SB_REGS
0012 
0013 #define USB4_SB_VENDOR_ID           0x00
0014 #define USB4_SB_PRODUCT_ID          0x01
0015 #define USB4_SB_OPCODE              0x08
0016 
0017 enum usb4_sb_opcode {
0018     USB4_SB_OPCODE_ERR = 0x20525245,            /* "ERR " */
0019     USB4_SB_OPCODE_ONS = 0x444d4321,            /* "!CMD" */
0020     USB4_SB_OPCODE_ROUTER_OFFLINE = 0x4e45534c,     /* "LSEN" */
0021     USB4_SB_OPCODE_ENUMERATE_RETIMERS = 0x4d554e45,     /* "ENUM" */
0022     USB4_SB_OPCODE_SET_INBOUND_SBTX = 0x5055534c,       /* "LSUP" */
0023     USB4_SB_OPCODE_QUERY_LAST_RETIMER = 0x5453414c,     /* "LAST" */
0024     USB4_SB_OPCODE_GET_NVM_SECTOR_SIZE = 0x53534e47,    /* "GNSS" */
0025     USB4_SB_OPCODE_NVM_SET_OFFSET = 0x53504f42,     /* "BOPS" */
0026     USB4_SB_OPCODE_NVM_BLOCK_WRITE = 0x574b4c42,        /* "BLKW" */
0027     USB4_SB_OPCODE_NVM_AUTH_WRITE = 0x48545541,     /* "AUTH" */
0028     USB4_SB_OPCODE_NVM_READ = 0x52524641,           /* "AFRR" */
0029 };
0030 
0031 #define USB4_SB_METADATA            0x09
0032 #define USB4_SB_METADATA_NVM_AUTH_WRITE_MASK    GENMASK(5, 0)
0033 #define USB4_SB_DATA                0x12
0034 
0035 #endif