coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
reset.c File Reference
#include <device/pci_ops.h>
#include <cf9_reset.h>
#include <reset.h>
Include dependency graph for reset.c:

Go to the source code of this file.

Macros

#define __SIMPLE_DEVICE__
 
#define HT_INIT_CONTROL   0x6c
 
#define HTIC_BIOSR_Detect   (1<<5)
 
#define DEV_CDB   0x18
 
#define NODE_PCI(x, fn)   (((DEV_CDB+x)<32)?(PCI_DEV(0,(DEV_CDB+x),fn)):(PCI_DEV((0-1),(DEV_CDB+x-32),fn)))
 

Functions

void cf9_reset_prepare (void)
 
void do_board_reset (void)
 

Macro Definition Documentation

◆ __SIMPLE_DEVICE__

#define __SIMPLE_DEVICE__

Definition at line 4 of file reset.c.

◆ DEV_CDB

#define DEV_CDB   0x18

Definition at line 13 of file reset.c.

◆ HT_INIT_CONTROL

#define HT_INIT_CONTROL   0x6c

Definition at line 10 of file reset.c.

◆ HTIC_BIOSR_Detect

#define HTIC_BIOSR_Detect   (1<<5)

Definition at line 11 of file reset.c.

◆ NODE_PCI

#define NODE_PCI (   x,
  fn 
)    (((DEV_CDB+x)<32)?(PCI_DEV(0,(DEV_CDB+x),fn)):(PCI_DEV((0-1),(DEV_CDB+x-32),fn)))

Definition at line 14 of file reset.c.

Function Documentation

◆ cf9_reset_prepare()

void cf9_reset_prepare ( void  )

Definition at line 16 of file reset.c.

References DEV_CDB, HT_INIT_CONTROL, HTIC_BIOSR_Detect, NODE_PCI, PCI_DEV, pci_read_config32(), and pci_write_config32().

Here is the call graph for this function:

◆ do_board_reset()

void do_board_reset ( void  )

Definition at line 32 of file reset.c.

References system_reset().

Here is the call graph for this function: