linux/drivers/usb/typec/tcpm/fusb302_reg.h

/* SPDX-License-Identifier: GPL-2.0+ */
/*
 * Copyright 2016-2017 Google, Inc
 *
 * Fairchild FUSB302 Type-C Chip Driver
 */

#ifndef FUSB302_REG_H
#define FUSB302_REG_H

#define FUSB_REG_DEVICE_ID
#define FUSB_REG_SWITCHES0
#define FUSB_REG_SWITCHES0_CC2_PU_EN
#define FUSB_REG_SWITCHES0_CC1_PU_EN
#define FUSB_REG_SWITCHES0_VCONN_CC2
#define FUSB_REG_SWITCHES0_VCONN_CC1
#define FUSB_REG_SWITCHES0_MEAS_CC2
#define FUSB_REG_SWITCHES0_MEAS_CC1
#define FUSB_REG_SWITCHES0_CC2_PD_EN
#define FUSB_REG_SWITCHES0_CC1_PD_EN
#define FUSB_REG_SWITCHES1
#define FUSB_REG_SWITCHES1_POWERROLE
#define FUSB_REG_SWITCHES1_SPECREV1
#define FUSB_REG_SWITCHES1_SPECREV0
#define FUSB_REG_SWITCHES1_DATAROLE
#define FUSB_REG_SWITCHES1_AUTO_GCRC
#define FUSB_REG_SWITCHES1_TXCC2_EN
#define FUSB_REG_SWITCHES1_TXCC1_EN
#define FUSB_REG_MEASURE
#define FUSB_REG_MEASURE_MDAC5
#define FUSB_REG_MEASURE_MDAC4
#define FUSB_REG_MEASURE_MDAC3
#define FUSB_REG_MEASURE_MDAC2
#define FUSB_REG_MEASURE_MDAC1
#define FUSB_REG_MEASURE_MDAC0
#define FUSB_REG_MEASURE_VBUS
#define FUSB_REG_MEASURE_XXXX5
#define FUSB_REG_CONTROL0
#define FUSB_REG_CONTROL0_TX_FLUSH
#define FUSB_REG_CONTROL0_INT_MASK
#define FUSB_REG_CONTROL0_HOST_CUR_MASK
#define FUSB_REG_CONTROL0_HOST_CUR_HIGH
#define FUSB_REG_CONTROL0_HOST_CUR_MED
#define FUSB_REG_CONTROL0_HOST_CUR_DEF
#define FUSB_REG_CONTROL0_TX_START
#define FUSB_REG_CONTROL1
#define FUSB_REG_CONTROL1_ENSOP2DB
#define FUSB_REG_CONTROL1_ENSOP1DB
#define FUSB_REG_CONTROL1_BIST_MODE2
#define FUSB_REG_CONTROL1_RX_FLUSH
#define FUSB_REG_CONTROL1_ENSOP2
#define FUSB_REG_CONTROL1_ENSOP1
#define FUSB_REG_CONTROL2
#define FUSB_REG_CONTROL2_MODE
#define FUSB_REG_CONTROL2_MODE_MASK
#define FUSB_REG_CONTROL2_MODE_DFP
#define FUSB_REG_CONTROL2_MODE_UFP
#define FUSB_REG_CONTROL2_MODE_DRP
#define FUSB_REG_CONTROL2_MODE_NONE
#define FUSB_REG_CONTROL2_TOGGLE
#define FUSB_REG_CONTROL3
#define FUSB_REG_CONTROL3_SEND_HARDRESET
#define FUSB_REG_CONTROL3_BIST_TMODE
#define FUSB_REG_CONTROL3_AUTO_HARDRESET
#define FUSB_REG_CONTROL3_AUTO_SOFTRESET
#define FUSB_REG_CONTROL3_N_RETRIES
#define FUSB_REG_CONTROL3_N_RETRIES_MASK
#define FUSB_REG_CONTROL3_N_RETRIES_3
#define FUSB_REG_CONTROL3_N_RETRIES_2
#define FUSB_REG_CONTROL3_N_RETRIES_1
#define FUSB_REG_CONTROL3_AUTO_RETRY
#define FUSB_REG_MASK
#define FUSB_REG_MASK_VBUSOK
#define FUSB_REG_MASK_ACTIVITY
#define FUSB_REG_MASK_COMP_CHNG
#define FUSB_REG_MASK_CRC_CHK
#define FUSB_REG_MASK_ALERT
#define FUSB_REG_MASK_WAKE
#define FUSB_REG_MASK_COLLISION
#define FUSB_REG_MASK_BC_LVL
#define FUSB_REG_POWER
#define FUSB_REG_POWER_PWR
#define FUSB_REG_POWER_PWR_LOW
#define FUSB_REG_POWER_PWR_MEDIUM
#define FUSB_REG_POWER_PWR_HIGH
#define FUSB_REG_POWER_PWR_ALL
#define FUSB_REG_RESET
#define FUSB_REG_RESET_PD_RESET
#define FUSB_REG_RESET_SW_RESET
#define FUSB_REG_MASKA
#define FUSB_REG_MASKA_OCP_TEMP
#define FUSB_REG_MASKA_TOGDONE
#define FUSB_REG_MASKA_SOFTFAIL
#define FUSB_REG_MASKA_RETRYFAIL
#define FUSB_REG_MASKA_HARDSENT
#define FUSB_REG_MASKA_TX_SUCCESS
#define FUSB_REG_MASKA_SOFTRESET
#define FUSB_REG_MASKA_HARDRESET
#define FUSB_REG_MASKB
#define FUSB_REG_MASKB_GCRCSENT
#define FUSB_REG_STATUS0A
#define FUSB_REG_STATUS0A_SOFTFAIL
#define FUSB_REG_STATUS0A_RETRYFAIL
#define FUSB_REG_STATUS0A_POWER
#define FUSB_REG_STATUS0A_RX_SOFT_RESET
#define FUSB_REG_STATUS0A_RX_HARD_RESET
#define FUSB_REG_STATUS1A
#define FUSB_REG_STATUS1A_TOGSS
#define FUSB_REG_STATUS1A_TOGSS_RUNNING
#define FUSB_REG_STATUS1A_TOGSS_SRC1
#define FUSB_REG_STATUS1A_TOGSS_SRC2
#define FUSB_REG_STATUS1A_TOGSS_SNK1
#define FUSB_REG_STATUS1A_TOGSS_SNK2
#define FUSB_REG_STATUS1A_TOGSS_AA
#define FUSB_REG_STATUS1A_TOGSS_POS
#define FUSB_REG_STATUS1A_TOGSS_MASK
#define FUSB_REG_STATUS1A_RXSOP2DB
#define FUSB_REG_STATUS1A_RXSOP1DB
#define FUSB_REG_STATUS1A_RXSOP
#define FUSB_REG_INTERRUPTA
#define FUSB_REG_INTERRUPTA_OCP_TEMP
#define FUSB_REG_INTERRUPTA_TOGDONE
#define FUSB_REG_INTERRUPTA_SOFTFAIL
#define FUSB_REG_INTERRUPTA_RETRYFAIL
#define FUSB_REG_INTERRUPTA_HARDSENT
#define FUSB_REG_INTERRUPTA_TX_SUCCESS
#define FUSB_REG_INTERRUPTA_SOFTRESET
#define FUSB_REG_INTERRUPTA_HARDRESET
#define FUSB_REG_INTERRUPTB
#define FUSB_REG_INTERRUPTB_GCRCSENT
#define FUSB_REG_STATUS0
#define FUSB_REG_STATUS0_VBUSOK
#define FUSB_REG_STATUS0_ACTIVITY
#define FUSB_REG_STATUS0_COMP
#define FUSB_REG_STATUS0_CRC_CHK
#define FUSB_REG_STATUS0_ALERT
#define FUSB_REG_STATUS0_WAKE
#define FUSB_REG_STATUS0_BC_LVL_MASK
#define FUSB_REG_STATUS0_BC_LVL_0_200
#define FUSB_REG_STATUS0_BC_LVL_200_600
#define FUSB_REG_STATUS0_BC_LVL_600_1230
#define FUSB_REG_STATUS0_BC_LVL_1230_MAX
#define FUSB_REG_STATUS0_BC_LVL1
#define FUSB_REG_STATUS0_BC_LVL0
#define FUSB_REG_STATUS1
#define FUSB_REG_STATUS1_RXSOP2
#define FUSB_REG_STATUS1_RXSOP1
#define FUSB_REG_STATUS1_RX_EMPTY
#define FUSB_REG_STATUS1_RX_FULL
#define FUSB_REG_STATUS1_TX_EMPTY
#define FUSB_REG_STATUS1_TX_FULL
#define FUSB_REG_INTERRUPT
#define FUSB_REG_INTERRUPT_VBUSOK
#define FUSB_REG_INTERRUPT_ACTIVITY
#define FUSB_REG_INTERRUPT_COMP_CHNG
#define FUSB_REG_INTERRUPT_CRC_CHK
#define FUSB_REG_INTERRUPT_ALERT
#define FUSB_REG_INTERRUPT_WAKE
#define FUSB_REG_INTERRUPT_COLLISION
#define FUSB_REG_INTERRUPT_BC_LVL
#define FUSB_REG_FIFOS

/* Tokens defined for the FUSB302 TX FIFO */
enum fusb302_txfifo_tokens {};

#endif