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

Go to the source code of this file.

Macros

#define NUVOTON_PORT   0x4e
 
#define HWM_PORT   0x0a30
 
#define GPIO_PORT   0x0a80
 
#define SUPERIO_BANK(x)   (0x0700 | x)
 
#define SUPERIO_INITVAL(reg, data)   ((reg << 8) | (data))
 
#define HWM_BANK(x)   (0x4e00 | x)
 
#define HWM_INITVAL   SUPERIO_INITVAL
 
#define SUPERIO_UNLOCK
 
#define SUPERIO_LOCK
 
#define SUPERIO_WRITE(reg, data)
 
#define SUPERIO_WRITE_INITVAL(val)   SUPERIO_WRITE((val) >> 8, (val) & 0xff)
 
#define HWM_WRITE_INITVAL(val)   pnp_write_hwm5_index(HWM_PORT, (val) >> 8, (val) & 0xff)
 

Macro Definition Documentation

◆ GPIO_PORT

#define GPIO_PORT   0x0a80

Definition at line 11 of file superio.h.

◆ HWM_BANK

#define HWM_BANK (   x)    (0x4e00 | x)

Definition at line 15 of file superio.h.

◆ HWM_INITVAL

#define HWM_INITVAL   SUPERIO_INITVAL

Definition at line 16 of file superio.h.

◆ HWM_PORT

#define HWM_PORT   0x0a30

Definition at line 10 of file superio.h.

◆ HWM_WRITE_INITVAL

#define HWM_WRITE_INITVAL (   val)    pnp_write_hwm5_index(HWM_PORT, (val) >> 8, (val) & 0xff)

Definition at line 34 of file superio.h.

◆ NUVOTON_PORT

#define NUVOTON_PORT   0x4e

Definition at line 9 of file superio.h.

◆ SUPERIO_BANK

#define SUPERIO_BANK (   x)    (0x0700 | x)

Definition at line 13 of file superio.h.

◆ SUPERIO_INITVAL

#define SUPERIO_INITVAL (   reg,
  data 
)    ((reg << 8) | (data))

Definition at line 14 of file superio.h.

◆ SUPERIO_LOCK

#define SUPERIO_LOCK
Value:
do { \
outb(0xaa, NUVOTON_PORT); \
} while (0)
#define NUVOTON_PORT
Definition: superio.h:9

Definition at line 23 of file superio.h.

◆ SUPERIO_UNLOCK

#define SUPERIO_UNLOCK
Value:
do { \
outb(0x87, NUVOTON_PORT); \
outb(0x87, NUVOTON_PORT); \
} while (0)

Definition at line 18 of file superio.h.

◆ SUPERIO_WRITE

#define SUPERIO_WRITE (   reg,
  data 
)
Value:
do { \
outb((reg), NUVOTON_PORT); \
outb((data), NUVOTON_PORT + 1); \
} while (0)

Definition at line 27 of file superio.h.

◆ SUPERIO_WRITE_INITVAL

#define SUPERIO_WRITE_INITVAL (   val)    SUPERIO_WRITE((val) >> 8, (val) & 0xff)

Definition at line 32 of file superio.h.