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

Go to the source code of this file.

Macros

#define NIC_VENDOR_ID   0x10EC
 
#define NIC_DEVICE_ID   0x8168
 
#define NIC_LED_MODE   0x00
 
#define NIC_WAKE_GPIO   8
 
#define WLAN_WAKE_GPIO   10
 
#define GPIO_REC_MODE   12
 
#define GPIO_SPI_WP   58
 
#define IT8772F_BASE   0x2e
 
#define IT8772F_SERIAL_DEV   PNP_DEV(IT8772F_BASE, IT8772F_SP1)
 
#define IT8772F_GPIO_DEV   PNP_DEV(IT8772F_BASE, IT8772F_GPIO)
 
#define IT8772F_SUPERIO_DEV   PNP_DEV(IT8772F_BASE, 0)
 

Enumerations

enum  { LED_OFF = 0 , LED_ON , LED_BLINK }
 

Functions

void lan_init (void)
 
void set_power_led (int state)
 

Macro Definition Documentation

◆ GPIO_REC_MODE

#define GPIO_REC_MODE   12

Definition at line 20 of file onboard.h.

◆ GPIO_SPI_WP

#define GPIO_SPI_WP   58

Definition at line 23 of file onboard.h.

◆ IT8772F_BASE

#define IT8772F_BASE   0x2e

Definition at line 26 of file onboard.h.

◆ IT8772F_GPIO_DEV

#define IT8772F_GPIO_DEV   PNP_DEV(IT8772F_BASE, IT8772F_GPIO)

Definition at line 28 of file onboard.h.

◆ IT8772F_SERIAL_DEV

#define IT8772F_SERIAL_DEV   PNP_DEV(IT8772F_BASE, IT8772F_SP1)

Definition at line 27 of file onboard.h.

◆ IT8772F_SUPERIO_DEV

#define IT8772F_SUPERIO_DEV   PNP_DEV(IT8772F_BASE, 0)

Definition at line 29 of file onboard.h.

◆ NIC_DEVICE_ID

#define NIC_DEVICE_ID   0x8168

Definition at line 8 of file onboard.h.

◆ NIC_LED_MODE

#define NIC_LED_MODE   0x00

Definition at line 11 of file onboard.h.

◆ NIC_VENDOR_ID

#define NIC_VENDOR_ID   0x10EC

Definition at line 7 of file onboard.h.

◆ NIC_WAKE_GPIO

#define NIC_WAKE_GPIO   8

Definition at line 14 of file onboard.h.

◆ WLAN_WAKE_GPIO

#define WLAN_WAKE_GPIO   10

Definition at line 17 of file onboard.h.

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
LED_OFF 
LED_ON 
LED_BLINK 

Definition at line 36 of file onboard.h.

Function Documentation

◆ lan_init()

void lan_init ( void  )

Definition at line 8 of file mainboard.c.

◆ set_power_led()

void set_power_led ( int  state)

Definition at line 6 of file led.c.

References IT8772F_GPIO_BLINK_FREQUENCY_1_HZ, IT8772F_GPIO_DEV, it8772f_gpio_led(), LED_BLINK, and SIO_GPIO_BLINK_GPIO10.

Referenced by bootblock_mainboard_early_init(), mainboard_config_superio(), and mainboard_smi_sleep().

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