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

Go to the source code of this file.

Macros

#define RST_CNT   0xcf9
 
#define FULL_RST   (1 << 3)
 
#define RST_CPU   (1 << 2)
 
#define SYS_RST   (1 << 1)
 

Functions

void do_system_reset (void)
 
void do_full_reset (void)
 
static void cf9_reset_prepare (void)
 
__noreturn void system_reset (void)
 
__noreturn void full_reset (void)
 

Macro Definition Documentation

◆ FULL_RST

#define FULL_RST   (1 << 3)

Definition at line 8 of file cf9_reset.h.

◆ RST_CNT

#define RST_CNT   0xcf9

Definition at line 7 of file cf9_reset.h.

◆ RST_CPU

#define RST_CPU   (1 << 2)

Definition at line 9 of file cf9_reset.h.

◆ SYS_RST

#define SYS_RST   (1 << 1)

Definition at line 10 of file cf9_reset.h.

Function Documentation

◆ cf9_reset_prepare()

static void cf9_reset_prepare ( void  )
inlinestatic

Definition at line 20 of file cf9_reset.h.

Referenced by full_reset(), and system_reset().

Here is the caller graph for this function:

◆ do_full_reset()

void do_full_reset ( void  )

Definition at line 30 of file cf9_reset.c.

References dcache_clean_all(), FULL_RST, outb(), RST_CNT, RST_CPU, and SYS_RST.

Referenced by configure_descriptor(), do_force_global_reset(), do_global_reset(), and full_reset().

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

◆ do_system_reset()

void do_system_reset ( void  )

Definition at line 16 of file cf9_reset.c.

References dcache_clean_all(), outb(), RST_CNT, RST_CPU, and SYS_RST.

Referenced by system_reset().

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

◆ full_reset()

◆ system_reset()