coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
kbc1100.h File Reference
#include <device/pnp_type.h>
#include <stdint.h>
Include dependency graph for kbc1100.h:
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 kbc1100_early_serial (pnp_devfn_t dev, u16 iobase)
 
void kbc1100_early_init (u16 port)
 

Macro Definition Documentation

◆ KBC1100_EC0

#define KBC1100_EC0   8 /* EC Channel 0 */

Definition at line 13 of file kbc1100.h.

◆ KBC1100_EC1

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

Definition at line 18 of file kbc1100.h.

◆ KBC1100_EC2

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

Definition at line 19 of file kbc1100.h.

◆ KBC1100_GPIO

#define KBC1100_GPIO   0x0A /* GPIO */

Definition at line 15 of file kbc1100.h.

◆ KBC1100_KBC

#define KBC1100_KBC   7 /* Keyboard */

Definition at line 12 of file kbc1100.h.

◆ KBC1100_MAILBOX

#define KBC1100_MAILBOX   9 /* Mail Box */

Definition at line 14 of file kbc1100.h.

◆ KBC1100_PM1

#define KBC1100_PM1   1 /* PM1 */

Definition at line 9 of file kbc1100.h.

◆ KBC1100_SPI

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

Definition at line 16 of file kbc1100.h.

◆ SMSCSUPERIO_SP1

#define SMSCSUPERIO_SP1   4 /* Com1 */

Definition at line 10 of file kbc1100.h.

◆ SMSCSUPERIO_SP2

#define SMSCSUPERIO_SP2   5 /* Com2 */

Definition at line 11 of file kbc1100.h.

Function Documentation

◆ kbc1100_early_init()

void kbc1100_early_init ( u16  port)

Definition at line 34 of file early_init.c.

References KBC1100_EC0, KBC1100_KBC, outb(), PNP_DEV, pnp_enter_conf_state(), pnp_exit_conf_state(), PNP_IDX_IO0, PNP_IDX_IO1, PNP_IDX_IRQ0, PNP_IDX_IRQ1, pnp_set_enable(), pnp_set_iobase(), 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:

◆ kbc1100_early_serial()

void kbc1100_early_serial ( pnp_devfn_t  dev,
u16  iobase 
)

Definition at line 24 of file early_init.c.

References pnp_enter_conf_state(), pnp_exit_conf_state(), 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: