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

Go to the source code of this file.

Data Structures

struct  __packed
 
struct  __packed::opregion_version
 

Macros

#define ASLS   0xfc /* OpRegion Base */
 
#define SWSCI   0xe8 /* SWSCI Register */
 
#define SWSMISCI   0xe0 /* SWSMISCI Register */
 
#define GSSCIE   (1 << 0) /* SCI Event trigger */
 
#define SMISCISEL   (1 << 15) /* Select SMI or SCI event source */
 
#define IGD_OPREGION_SIGNATURE   "IntelGraphicsMem"
 
#define IGD_MBOX1   (1 << 0)
 
#define IGD_MBOX2   (1 << 1)
 
#define IGD_MBOX3   (1 << 2)
 
#define IGD_MBOX4   (1 << 3)
 
#define IGD_MBOX5   (1 << 4)
 
#define MAILBOXES_MOBILE
 
#define MAILBOXES_DESKTOP   (IGD_MBOX2 | IGD_MBOX4)
 
#define SBIOS_VERSION_SIZE   32
 
#define IGD_BACKLIGHT_BRIGHTNESS   0xff
 
#define IGD_INITIAL_BRIGHTNESS   0x64
 
#define IGD_FIELD_VALID   (1UL << 31)
 
#define IGD_WORD_FIELD_VALID   (1 << 15)
 
#define IGD_PFIT_STRETCH   6
 
#define OPROM_SIGNATURE   0xaa55
 

Functions

enum cb_err intel_gma_init_igd_opregion (void)
 
const char * mainboard_vbt_filename (void)
 
voidlocate_vbt (size_t *vbt_size)
 

Macro Definition Documentation

◆ ASLS

#define ASLS   0xfc /* OpRegion Base */

Definition at line 10 of file opregion.h.

◆ GSSCIE

#define GSSCIE   (1 << 0) /* SCI Event trigger */

Definition at line 13 of file opregion.h.

◆ IGD_BACKLIGHT_BRIGHTNESS

#define IGD_BACKLIGHT_BRIGHTNESS   0xff

Definition at line 159 of file opregion.h.

◆ IGD_FIELD_VALID

#define IGD_FIELD_VALID   (1UL << 31)

Definition at line 162 of file opregion.h.

◆ IGD_INITIAL_BRIGHTNESS

#define IGD_INITIAL_BRIGHTNESS   0x64

Definition at line 160 of file opregion.h.

◆ IGD_MBOX1

#define IGD_MBOX1   (1 << 0)

Definition at line 38 of file opregion.h.

◆ IGD_MBOX2

#define IGD_MBOX2   (1 << 1)

Definition at line 39 of file opregion.h.

◆ IGD_MBOX3

#define IGD_MBOX3   (1 << 2)

Definition at line 40 of file opregion.h.

◆ IGD_MBOX4

#define IGD_MBOX4   (1 << 3)

Definition at line 41 of file opregion.h.

◆ IGD_MBOX5

#define IGD_MBOX5   (1 << 4)

Definition at line 42 of file opregion.h.

◆ IGD_OPREGION_SIGNATURE

#define IGD_OPREGION_SIGNATURE   "IntelGraphicsMem"

Definition at line 36 of file opregion.h.

◆ IGD_PFIT_STRETCH

#define IGD_PFIT_STRETCH   6

Definition at line 164 of file opregion.h.

◆ IGD_WORD_FIELD_VALID

#define IGD_WORD_FIELD_VALID   (1 << 15)

Definition at line 163 of file opregion.h.

◆ MAILBOXES_DESKTOP

#define MAILBOXES_DESKTOP   (IGD_MBOX2 | IGD_MBOX4)

Definition at line 46 of file opregion.h.

◆ MAILBOXES_MOBILE

#define MAILBOXES_MOBILE
Value:
IGD_MBOX4 | IGD_MBOX5)
#define IGD_MBOX3
Definition: opregion.h:40
#define IGD_MBOX5
Definition: opregion.h:42
#define IGD_MBOX2
Definition: opregion.h:39
#define IGD_MBOX1
Definition: opregion.h:38

Definition at line 44 of file opregion.h.

◆ OPROM_SIGNATURE

#define OPROM_SIGNATURE   0xaa55

Definition at line 198 of file opregion.h.

◆ SBIOS_VERSION_SIZE

#define SBIOS_VERSION_SIZE   32

Definition at line 48 of file opregion.h.

◆ SMISCISEL

#define SMISCISEL   (1 << 15) /* Select SMI or SCI event source */

Definition at line 14 of file opregion.h.

◆ SWSCI

#define SWSCI   0xe8 /* SWSCI Register */

Definition at line 11 of file opregion.h.

◆ SWSMISCI

#define SWSMISCI   0xe0 /* SWSMISCI Register */

Definition at line 12 of file opregion.h.

Function Documentation

◆ intel_gma_init_igd_opregion()

enum cb_err intel_gma_init_igd_opregion ( void  )

Definition at line 290 of file opregion.c.

References header, memcpy(), and uses_relative_vbt_addr().

Referenced by gfx_init(), gma_func0_init(), gma_init(), and igd_init().

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

◆ locate_vbt()

void* locate_vbt ( size_t vbt_size)

Definition at line 25 of file opregion.c.

References BIOS_ERR, BIOS_INFO, cbfs_load(), mainboard_vbt_filename(), memcpy(), NULL, printk, vbt_data, vbt_data_sz, and VBT_SIGNATURE.

Referenced by load_vbt(), and vbt_get().

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

◆ mainboard_vbt_filename()