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

Go to the source code of this file.

Macros

#define PCI_ME_HFSTS4   0x64
 
#define PTT_ENABLE   (1 << 19)
 

Functions

static uint32_t read_register (int reg_addr)
 
bool ptt_active (void)
 

Macro Definition Documentation

◆ PCI_ME_HFSTS4

#define PCI_ME_HFSTS4   0x64

Definition at line 9 of file ptt.c.

◆ PTT_ENABLE

#define PTT_ENABLE   (1 << 19)

Definition at line 10 of file ptt.c.

Function Documentation

◆ ptt_active()

bool ptt_active ( void  )

Definition at line 28 of file ptt.c.

References BIOS_DEBUG, PCI_ME_HFSTS4, printk, PTT_ENABLE, and read_register().

Referenced by tis_open().

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

◆ read_register()

static uint32_t read_register ( int  reg_addr)
static

Definition at line 13 of file ptt.c.

References PCH_DEV_CSE, and pci_read_config32().

Referenced by ptt_active().

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