coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
mainboard.c File Reference
Include dependency graph for mainboard.c:

Go to the source code of this file.

Functions

static void pavilion_cold_boot_init (void)
 
static void pirq_setup (void)
 
static void mainboard_enable (struct device *dev)
 

Variables

static const u8 mainboard_picr_data [0x54]
 
static const u8 mainboard_intr_data [0x54]
 
struct chip_operations mainboard_ops
 

Function Documentation

◆ mainboard_enable()

static void mainboard_enable ( struct device dev)
static

Definition at line 44 of file mainboard.c.

References acpi_is_wakeup_s3(), EC_SMI_GEVENT, global_smi_enable(), hudson_configure_gevent_smi(), pavilion_cold_boot_init(), pirq_setup(), SMI_LVL_HIGH, and SMI_MODE_SMI.

Here is the call graph for this function:

◆ pavilion_cold_boot_init()

static void pavilion_cold_boot_init ( void  )
static

Definition at line 29 of file mainboard.c.

References EC_LID_GEVENT, hudson_configure_gevent_smi(), pavilion_m6_1035dx_ec_init(), SMI_LVL_LOW, and SMI_MODE_SMI.

Referenced by mainboard_enable().

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

◆ pirq_setup()

static void pirq_setup ( void  )
static

Definition at line 38 of file mainboard.c.

References intr_data_ptr, mainboard_intr_data, mainboard_picr_data, and picr_data_ptr.

Referenced by mainboard_enable().

Here is the caller graph for this function:

Variable Documentation

◆ mainboard_intr_data

const u8 mainboard_intr_data[0x54]
static
Initial value:
= {
0x10, 0x11, 0x12, 0x13, 0x14, 0x15, 0x16, 0x17, 0x00, 0x00, 0x00, 0x00, 0x1F, 0x1F, 0x1F, 0x1F,
0x09, 0x1F, 0x1F, 0x10, 0x1F, 0x10, 0x1F, 0x10, 0x1F, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x05, 0x1F, 0x1F, 0x1F, 0x1F, 0x1F, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x12, 0x11, 0x12, 0x11, 0x12, 0x11, 0x12, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x11, 0x13, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x10, 0x11, 0x12, 0x13
}

Definition at line 20 of file mainboard.c.

Referenced by pirq_setup().

◆ mainboard_ops

struct chip_operations mainboard_ops
Initial value:
= {
.enable_dev = mainboard_enable,
}
static void mainboard_enable(struct device *dev)
Definition: mainboard.c:44

Definition at line 44 of file mainboard.c.

◆ mainboard_picr_data

const u8 mainboard_picr_data[0x54]
static
Initial value:
= {
0x1F, 0x1f, 0x1f, 0x1F, 0x1F, 0x1F, 0x1F, 0x1F, 0x0A, 0xF1, 0x00, 0x00, 0x1F, 0x1F, 0x1F, 0x1F,
0x09, 0x1F, 0x1F, 0x0B, 0x1F, 0x0B, 0x1F, 0x1F, 0x1F, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x1F, 0x1F, 0x1F, 0x1F, 0x1F, 0x1F, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x1F, 0x1F, 0x1F, 0x1F, 0x1F, 0x1F, 0x1F, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x1F, 0x1F, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x1F, 0x1F, 0x1F, 0x1F
}

Definition at line 12 of file mainboard.c.

Referenced by pirq_setup().