coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
dp_aux.h File Reference
#include <types.h>
Include dependency graph for dp_aux.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define DP_BACKLIGHT_MODE_SET   0x721
 
#define DP_BACKLIGHT_CONTROL_MODE_MASK   0x3
 
#define DP_BACKLIGHT_CONTROL_MODE_DPCD   0x2
 
#define DP_DISPLAY_CONTROL_REGISTER   0x720
 
#define DP_BACKLIGHT_ENABLE   0x1
 
#define DP_BACKLIGHT_BRIGHTNESS_MSB   0x722
 
#define DP_AUX_MAX_PAYLOAD_BYTES   16
 

Enumerations

enum  { EDID_LENGTH = 128 , EDID_I2C_ADDR = 0x50 , EDID_EXTENSION_FLAG = 0x7e }
 
enum  i2c_over_aux {
  I2C_OVER_AUX_WRITE_MOT_0 = 0x0 , I2C_OVER_AUX_READ_MOT_0 = 0x1 , I2C_OVER_AUX_WRITE_STATUS_UPDATE_0 = 0x2 , I2C_OVER_AUX_WRITE_MOT_1 = 0x4 ,
  I2C_OVER_AUX_READ_MOT_1 = 0x5 , I2C_OVER_AUX_WRITE_STATUS_UPDATE_1 = 0x6 , NATIVE_AUX_WRITE = 0x8 , NATIVE_AUX_READ = 0x9
}
 
enum  aux_request {
  DPCD_READ , DPCD_WRITE , I2C_RAW_READ , I2C_RAW_WRITE ,
  I2C_RAW_READ_AND_STOP , I2C_RAW_WRITE_AND_STOP
}
 

Functions

bool dp_aux_request_is_write (enum aux_request request)
 
enum i2c_over_aux dp_get_aux_cmd (enum aux_request request, uint32_t remaining_after_this)
 

Macro Definition Documentation

◆ DP_AUX_MAX_PAYLOAD_BYTES

#define DP_AUX_MAX_PAYLOAD_BYTES   16

Definition at line 42 of file dp_aux.h.

◆ DP_BACKLIGHT_BRIGHTNESS_MSB

#define DP_BACKLIGHT_BRIGHTNESS_MSB   0x722

Definition at line 40 of file dp_aux.h.

◆ DP_BACKLIGHT_CONTROL_MODE_DPCD

#define DP_BACKLIGHT_CONTROL_MODE_DPCD   0x2

Definition at line 37 of file dp_aux.h.

◆ DP_BACKLIGHT_CONTROL_MODE_MASK

#define DP_BACKLIGHT_CONTROL_MODE_MASK   0x3

Definition at line 36 of file dp_aux.h.

◆ DP_BACKLIGHT_ENABLE

#define DP_BACKLIGHT_ENABLE   0x1

Definition at line 39 of file dp_aux.h.

◆ DP_BACKLIGHT_MODE_SET

#define DP_BACKLIGHT_MODE_SET   0x721

Definition at line 35 of file dp_aux.h.

◆ DP_DISPLAY_CONTROL_REGISTER

#define DP_DISPLAY_CONTROL_REGISTER   0x720

Definition at line 38 of file dp_aux.h.

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
EDID_LENGTH 
EDID_I2C_ADDR 
EDID_EXTENSION_FLAG 

Definition at line 8 of file dp_aux.h.

◆ aux_request

Enumerator
DPCD_READ 
DPCD_WRITE 
I2C_RAW_READ 
I2C_RAW_WRITE 
I2C_RAW_READ_AND_STOP 
I2C_RAW_WRITE_AND_STOP 

Definition at line 25 of file dp_aux.h.

◆ i2c_over_aux

Enumerator
I2C_OVER_AUX_WRITE_MOT_0 
I2C_OVER_AUX_READ_MOT_0 
I2C_OVER_AUX_WRITE_STATUS_UPDATE_0 
I2C_OVER_AUX_WRITE_MOT_1 
I2C_OVER_AUX_READ_MOT_1 
I2C_OVER_AUX_WRITE_STATUS_UPDATE_1 
NATIVE_AUX_WRITE 
NATIVE_AUX_READ 

Definition at line 14 of file dp_aux.h.

Function Documentation

◆ dp_aux_request_is_write()

bool dp_aux_request_is_write ( enum aux_request  request)

Definition at line 5 of file dp_aux.c.

References DPCD_WRITE, I2C_RAW_WRITE, and I2C_RAW_WRITE_AND_STOP.

◆ dp_get_aux_cmd()

enum i2c_over_aux dp_get_aux_cmd ( enum aux_request  request,
uint32_t  remaining_after_this 
)

Definition at line 5 of file dp_aux.c.