coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
imc.h
Go to the documentation of this file.
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 
3 #include <device/pci.h>
4 #include <stdint.h>
5 
6 #ifndef SOC_INTEL_COMMON_BLOCK_IMC_H
7 #define SOC_INTEL_COMMON_BLOCK_IMC_H
8 
10 
12 
14 
18  IMC_DEVICE_EEPROM = 0xa
19 };
20 
21 /* Initiate SMBus/I2C transaction to DIMM EEPROM */
22 int imc_smbus_spd_xfer(pci_devfn_t dev, uint8_t slave_addr, uint8_t bus_addr,
23  enum device_type_id dti, enum access_width width,
24  enum memory_controller_id mcid, enum smbus_command cmd, void *data);
25 #endif
static int width
Definition: bochs.c:42
u32 pci_devfn_t
Definition: pci_type.h:8
smbus_command
Definition: imc.h:9
@ IMC_READ
Definition: imc.h:9
@ IMC_WRITE
Definition: imc.h:9
access_width
Definition: imc.h:11
@ IMC_DATA_WORD
Definition: imc.h:11
@ IMC_DATA_BYTE
Definition: imc.h:11
memory_controller_id
Definition: imc.h:13
@ IMC_CONTROLLER_ID1
Definition: imc.h:13
@ IMC_CONTROLLER_ID0
Definition: imc.h:13
device_type_id
Definition: imc.h:15
@ IMC_DEVICE_EEPROM
Definition: imc.h:18
@ IMC_DEVICE_WP_EEPROM
Definition: imc.h:17
@ IMC_DEVICE_TSOD
Definition: imc.h:16
int imc_smbus_spd_xfer(pci_devfn_t dev, uint8_t slave_addr, uint8_t bus_addr, enum device_type_id dti, enum access_width width, enum memory_controller_id mcid, enum smbus_command cmd, void *data)
unsigned char uint8_t
Definition: stdint.h:8