coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
retimer.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  usb4_retimer_dsm_uuid
 

Macros

#define USB_PD_MUX_NONE   0 /* Open switch */
 
#define USB_PD_MUX_USB_ENABLED   BIT(0) /* USB connected */
 
#define USB_PD_MUX_SAFE_MODE   BIT(5) /* DP is in safe mode */
 
#define USB_PD_MUX_TBT_COMPAT_ENABLED   BIT(6) /* TBT compat enabled */
 
#define USB_PD_MUX_USB4_ENABLED   BIT(7) /* USB4 enabled */
 
#define USB_RETIMER_FW_UPDATE_OP_SHIFT   4
 
#define USB_RETIMER_FW_UPDATE_ERROR   0xfe
 
#define USB_RETIMER_FW_UPDATE_SUSPEND_PD   1 /* Suspend PD port */
 
#define USB_RETIMER_FW_UPDATE_RESUME_PD   2 /* Resume PD port */
 
#define USB_RETIMER_FW_UPDATE_GET_MUX   3 /* Read current USB MUX */
 
#define USB_RETIMER_FW_UPDATE_SET_USB   4 /* Set MUX to USB mode */
 
#define USB_RETIMER_FW_UPDATE_SET_SAFE   5 /* Set MUX to Safe mode */
 
#define USB_RETIMER_FW_UPDATE_SET_TBT   6 /* Set MUX to TBT mode */
 
#define USB_RETIMER_FW_UPDATE_DISCONNECT   7 /* Set MUX to disconnect */
 

Functions

const char * ec_retimer_fw_update_path (void)
 
void ec_retimer_fw_update (uint8_t data)
 
int retimer_get_index_for_typec (uint8_t typec_port)
 

Macro Definition Documentation

◆ USB_PD_MUX_NONE

#define USB_PD_MUX_NONE   0 /* Open switch */

Definition at line 7 of file retimer.h.

◆ USB_PD_MUX_SAFE_MODE

#define USB_PD_MUX_SAFE_MODE   BIT(5) /* DP is in safe mode */

Definition at line 9 of file retimer.h.

◆ USB_PD_MUX_TBT_COMPAT_ENABLED

#define USB_PD_MUX_TBT_COMPAT_ENABLED   BIT(6) /* TBT compat enabled */

Definition at line 10 of file retimer.h.

◆ USB_PD_MUX_USB4_ENABLED

#define USB_PD_MUX_USB4_ENABLED   BIT(7) /* USB4 enabled */

Definition at line 11 of file retimer.h.

◆ USB_PD_MUX_USB_ENABLED

#define USB_PD_MUX_USB_ENABLED   BIT(0) /* USB connected */

Definition at line 8 of file retimer.h.

◆ USB_RETIMER_FW_UPDATE_DISCONNECT

#define USB_RETIMER_FW_UPDATE_DISCONNECT   7 /* Set MUX to disconnect */

Definition at line 22 of file retimer.h.

◆ USB_RETIMER_FW_UPDATE_ERROR

#define USB_RETIMER_FW_UPDATE_ERROR   0xfe

Definition at line 14 of file retimer.h.

◆ USB_RETIMER_FW_UPDATE_GET_MUX

#define USB_RETIMER_FW_UPDATE_GET_MUX   3 /* Read current USB MUX */

Definition at line 18 of file retimer.h.

◆ USB_RETIMER_FW_UPDATE_OP_SHIFT

#define USB_RETIMER_FW_UPDATE_OP_SHIFT   4

Definition at line 13 of file retimer.h.

◆ USB_RETIMER_FW_UPDATE_RESUME_PD

#define USB_RETIMER_FW_UPDATE_RESUME_PD   2 /* Resume PD port */

Definition at line 17 of file retimer.h.

◆ USB_RETIMER_FW_UPDATE_SET_SAFE

#define USB_RETIMER_FW_UPDATE_SET_SAFE   5 /* Set MUX to Safe mode */

Definition at line 20 of file retimer.h.

◆ USB_RETIMER_FW_UPDATE_SET_TBT

#define USB_RETIMER_FW_UPDATE_SET_TBT   6 /* Set MUX to TBT mode */

Definition at line 21 of file retimer.h.

◆ USB_RETIMER_FW_UPDATE_SET_USB

#define USB_RETIMER_FW_UPDATE_SET_USB   4 /* Set MUX to USB mode */

Definition at line 19 of file retimer.h.

◆ USB_RETIMER_FW_UPDATE_SUSPEND_PD

#define USB_RETIMER_FW_UPDATE_SUSPEND_PD   1 /* Suspend PD port */

Definition at line 16 of file retimer.h.

Function Documentation

◆ ec_retimer_fw_update()

void ec_retimer_fw_update ( uint8_t  data)

Definition at line 443 of file retimer.c.

References acpigen_emit_namestring(), acpigen_write_byte(), acpigen_write_store(), and ec_retimer_fw_update_path().

Referenced by usb4_retimer_execute_ec_cmd().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ec_retimer_fw_update_path()

const char* ec_retimer_fw_update_path ( void  )

Definition at line 438 of file retimer.c.

References NULL.

Referenced by ec_retimer_fw_update(), and usb4_retimer_execute_ec_cmd().

Here is the caller graph for this function:

◆ retimer_get_index_for_typec()

int retimer_get_index_for_typec ( uint8_t  typec_port)

Definition at line 458 of file retimer.c.

References BIOS_ERR, BIOS_INFO, DEV_PTR, is_dev_enabled(), MAX_TYPE_C_PORTS, and printk.

Here is the call graph for this function: