coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
variant.c File Reference
#include <ec/google/chromeec/ec.h>
#include <baseboard/variants.h>
#include <sar.h>
Include dependency graph for variant.c:

Go to the source code of this file.

Macros

#define RIGHT_USB_C_PORT_ID   4
 

Functions

const char * get_wifi_sar_cbfs_filename (void)
 
bool variant_ext_usb_status (unsigned int port_type, unsigned int port_id)
 variant_ext_usb_status() - Get status of externally visible USB ports @port_type: Type of USB port i.e. More...
 

Macro Definition Documentation

◆ RIGHT_USB_C_PORT_ID

#define RIGHT_USB_C_PORT_ID   4

Definition at line 7 of file variant.c.

Function Documentation

◆ get_wifi_sar_cbfs_filename()

const char* get_wifi_sar_cbfs_filename ( void  )

Definition at line 9 of file variant.c.

References google_chromeec_get_board_sku(), sku_id(), and WIFI_SAR_CBFS_DEFAULT_FILENAME.

Here is the call graph for this function:

◆ variant_ext_usb_status()

bool variant_ext_usb_status ( unsigned int  port_type,
unsigned int  port_id 
)

variant_ext_usb_status() - Get status of externally visible USB ports @port_type: Type of USB port i.e.

USB2/USB3 @port_id: USB Port ID

This function is supplied by the mainboard/variant to SoC's XHCI driver to identify the status of externally visible USB ports.

Return: true if the port is present, false if the port is absent.

Definition at line 19 of file variant.c.

References google_chromeec_get_board_sku(), RIGHT_USB_C_PORT_ID, and sku_id().

Here is the call graph for this function: