coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
ioe_p2sb.c File Reference
#include <console/console.h>
#include <device/pci.h>
#include <device/pci_ids.h>
#include <intelblocks/p2sb.h>
#include <intelblocks/p2sblib.h>
#include <intelblocks/pcr.h>
#include <soc/iomap.h>
#include <soc/pci_devs.h>
Include dependency graph for ioe_p2sb.c:

Go to the source code of this file.

Macros

#define __SIMPLE_DEVICE__
 

Functions

uint32_t ioe_p2sb_sbi_read (uint8_t pid, uint16_t reg)
 
void ioe_p2sb_sbi_write (uint8_t pid, uint16_t reg, uint32_t val)
 
void ioe_p2sb_enable_bar (void)
 
static void read_resources (struct device *dev)
 

Variables

struct device_operations device_ops
 
static const unsigned short pci_device_ids []
 
static const struct pci_driver ioe_p2sb __pci_driver
 

Macro Definition Documentation

◆ __SIMPLE_DEVICE__

#define __SIMPLE_DEVICE__

Definition at line 3 of file ioe_p2sb.c.

Function Documentation

◆ ioe_p2sb_enable_bar()

void ioe_p2sb_enable_bar ( void  )

Definition at line 24 of file ioe_p2sb.c.

References p2sb_dev_enable_bar().

Here is the call graph for this function:

◆ ioe_p2sb_sbi_read()

uint32_t ioe_p2sb_sbi_read ( uint8_t  pid,
uint16_t  reg 
)

Definition at line 14 of file ioe_p2sb.c.

References p2sb_dev_sbi_read().

Referenced by ioe_tcss_valid_tbt_auth().

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

◆ ioe_p2sb_sbi_write()

void ioe_p2sb_sbi_write ( uint8_t  pid,
uint16_t  reg,
uint32_t  val 
)

Definition at line 19 of file ioe_p2sb.c.

References p2sb_dev_sbi_write(), and val.

Referenced by ioe_tcss_configure_aux_bias_pads_sbi().

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

◆ read_resources()

static void read_resources ( struct device dev)
static

Definition at line 29 of file ioe_p2sb.c.

Variable Documentation

◆ __pci_driver

const struct pci_driver ioe_p2sb __pci_driver
static
Initial value:
= {
.ops = &device_ops,
.vendor = PCI_VID_INTEL,
.devices = pci_device_ids,
}
struct device_operations device_ops
Definition: ioe_p2sb.c:34
static const unsigned short pci_device_ids[]
Definition: ioe_p2sb.c:40
#define PCI_VID_INTEL
Definition: pci_ids.h:2157

Definition at line 40 of file ioe_p2sb.c.

◆ device_ops

struct device_operations device_ops
Initial value:
= {
.read_resources = read_resources,
.set_resources = noop_set_resources,
.ops_pci = &pci_dev_ops_pci,
}
static void noop_set_resources(struct device *dev)
Definition: device.h:74
static void read_resources(struct device *dev)
Definition: ioe_p2sb.c:29
struct pci_operations pci_dev_ops_pci
Default device operation for PCI devices.
Definition: pci_device.c:911

Definition at line 29 of file ioe_p2sb.c.

◆ pci_device_ids

const unsigned short pci_device_ids[]
static
Initial value:
= {
0,
}
#define PCI_DID_INTEL_MTL_IOE_P_P2SB
Definition: pci_ids.h:4163
#define PCI_DID_INTEL_MTL_IOE_M_P2SB
Definition: pci_ids.h:4162

Definition at line 40 of file ioe_p2sb.c.