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

Go to the source code of this file.

Functions

__weak void soc_sram_init (struct device *dev)
 
static void sram_read_resources (struct device *dev)
 

Variables

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

Function Documentation

◆ soc_sram_init()

__weak void soc_sram_init ( struct device dev)

Definition at line 9 of file sram.c.

◆ sram_read_resources()

static void sram_read_resources ( struct device dev)
static

Definition at line 11 of file sram.c.

Variable Documentation

◆ __pci_driver

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

Definition at line 35 of file sram.c.

◆ device_ops

const struct device_operations device_ops
static
Initial value:
= {
.read_resources = sram_read_resources,
.set_resources = pci_dev_set_resources,
.enable_resources = pci_dev_enable_resources,
.init = soc_sram_init,
.ops_pci = &pci_dev_ops_pci,
}
void pci_dev_enable_resources(struct device *dev)
Definition: pci_device.c:721
struct pci_operations pci_dev_ops_pci
Default device operation for PCI devices.
Definition: pci_device.c:911
void pci_dev_set_resources(struct device *dev)
Definition: pci_device.c:691
__weak void soc_sram_init(struct device *dev)
Definition: sram.c:9
static void sram_read_resources(struct device *dev)
Definition: sram.c:11

Definition at line 11 of file sram.c.

◆ pci_device_ids

const unsigned short pci_device_ids[]
static
Initial value:
= {
0,
}
#define PCI_DID_INTEL_MTL_CRASHLOG_SRAM
Definition: pci_ids.h:4429
#define PCI_DID_INTEL_JSP_SRAM
Definition: pci_ids.h:4175
#define PCI_DID_INTEL_MTL_IOE_P_SRAM
Definition: pci_ids.h:4178
#define PCI_DID_INTEL_ADP_N_PMC_CRASHLOG_SRAM
Definition: pci_ids.h:4427
#define PCI_DID_INTEL_ADP_P_PMC_CRASHLOG_SRAM
Definition: pci_ids.h:4426
#define PCI_DID_INTEL_MTL_IOE_M_SRAM
Definition: pci_ids.h:4177
#define PCI_DID_INTEL_ICL_SRAM
Definition: pci_ids.h:4170
#define PCI_DID_INTEL_MCC_SRAM
Definition: pci_ids.h:4174
#define PCI_DID_INTEL_GLK_SRAM
Definition: pci_ids.h:4167
#define PCI_DID_INTEL_APL_SRAM
Definition: pci_ids.h:4166
#define PCI_DID_INTEL_CMP_H_SRAM
Definition: pci_ids.h:4172
#define PCI_DID_INTEL_ADP_S_PMC_CRASHLOG_SRAM
Definition: pci_ids.h:4425
#define PCI_DID_INTEL_MTL_SOC_SRAM
Definition: pci_ids.h:4176
#define PCI_DID_INTEL_TGP_PMC_CRASHLOG_SRAM
Definition: pci_ids.h:4428
#define PCI_DID_INTEL_TGL_H_SRAM
Definition: pci_ids.h:4173
#define PCI_DID_INTEL_CMP_SRAM
Definition: pci_ids.h:4171

Definition at line 35 of file sram.c.