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

Go to the source code of this file.

Macros

#define KBC1100_PM1   1 /* PM1 */
 
#define SMSCSUPERIO_SP1   4 /* Com1 */
 
#define SMSCSUPERIO_SP2   5 /* Com2 */
 
#define KBC1100_KBC   7 /* Keyboard */
 
#define KBC1100_EC0   8 /* EC Channel 0 */
 
#define KBC1100_MAILBOX   9 /* Mail Box */
 
#define KBC1100_GPIO   0x0A /* GPIO */
 
#define KBC1100_SPI   0x0B /* Share flash interface */
 
#define KBC1100_EC1   0x0D /* EC Channel 1 */
 
#define KBC1100_EC2   0x0E /* EC Channel 2 */
 

Functions

void kbc1126_enter_conf (void)
 
void kbc1126_exit_conf (void)
 
void kbc1126_mailbox_init (void)
 
void kbc1126_kbc_init (void)
 
void kbc1126_ec_init (void)
 
void kbc1126_com1_init (void)
 
void kbc1126_pm1_init (void)
 
void kbc1126_disable4e (void)
 

Macro Definition Documentation

◆ KBC1100_EC0

#define KBC1100_EC0   8 /* EC Channel 0 */

Definition at line 10 of file ec.h.

◆ KBC1100_EC1

#define KBC1100_EC1   0x0D /* EC Channel 1 */

Definition at line 15 of file ec.h.

◆ KBC1100_EC2

#define KBC1100_EC2   0x0E /* EC Channel 2 */

Definition at line 16 of file ec.h.

◆ KBC1100_GPIO

#define KBC1100_GPIO   0x0A /* GPIO */

Definition at line 12 of file ec.h.

◆ KBC1100_KBC

#define KBC1100_KBC   7 /* Keyboard */

Definition at line 9 of file ec.h.

◆ KBC1100_MAILBOX

#define KBC1100_MAILBOX   9 /* Mail Box */

Definition at line 11 of file ec.h.

◆ KBC1100_PM1

#define KBC1100_PM1   1 /* PM1 */

Definition at line 6 of file ec.h.

◆ KBC1100_SPI

#define KBC1100_SPI   0x0B /* Share flash interface */

Definition at line 13 of file ec.h.

◆ SMSCSUPERIO_SP1

#define SMSCSUPERIO_SP1   4 /* Com1 */

Definition at line 7 of file ec.h.

◆ SMSCSUPERIO_SP2

#define SMSCSUPERIO_SP2   5 /* Com2 */

Definition at line 8 of file ec.h.

Function Documentation

◆ kbc1126_com1_init()

void kbc1126_com1_init ( void  )

Definition at line 55 of file early_init.c.

References PNP_DEV, PNP_IDX_IO0, PNP_IDX_IRQ0, pnp_set_enable(), pnp_set_iobase(), pnp_set_irq(), pnp_set_logical_device(), and SMSCSUPERIO_SP1.

Referenced by bootblock_mainboard_early_init().

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

◆ kbc1126_disable4e()

void kbc1126_disable4e ( void  )

Definition at line 80 of file early_init.c.

References outb().

Referenced by bootblock_mainboard_early_init().

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

◆ kbc1126_ec_init()

void kbc1126_ec_init ( void  )

Definition at line 47 of file early_init.c.

References KBC1100_EC0, PNP_DEV, PNP_IDX_IO0, pnp_set_enable(), pnp_set_iobase(), and pnp_set_logical_device().

Referenced by bootblock_mainboard_early_init().

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

◆ kbc1126_enter_conf()

void kbc1126_enter_conf ( void  )

Definition at line 8 of file early_init.c.

References outb().

Referenced by bootblock_mainboard_early_init().

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

◆ kbc1126_exit_conf()

void kbc1126_exit_conf ( void  )

Definition at line 19 of file early_init.c.

References inb(), and outb().

Referenced by bootblock_mainboard_early_init().

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

◆ kbc1126_kbc_init()

void kbc1126_kbc_init ( void  )

Definition at line 38 of file early_init.c.

References KBC1100_KBC, PNP_DEV, PNP_IDX_IRQ0, PNP_IDX_IRQ1, pnp_set_enable(), pnp_set_irq(), and pnp_set_logical_device().

Referenced by bootblock_mainboard_early_init().

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

◆ kbc1126_mailbox_init()

void kbc1126_mailbox_init ( void  )

Definition at line 30 of file early_init.c.

References KBC1100_MAILBOX, PNP_DEV, PNP_IDX_IO0, pnp_set_enable(), pnp_set_iobase(), and pnp_set_logical_device().

Referenced by bootblock_mainboard_early_init().

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

◆ kbc1126_pm1_init()

void kbc1126_pm1_init ( void  )

Definition at line 64 of file early_init.c.

References KBC1100_PM1, PNP_DEV, PNP_IDX_IO0, pnp_set_enable(), pnp_set_iobase(), and pnp_set_logical_device().

Referenced by bootblock_mainboard_early_init().

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