coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
early_spi.h
Go to the documentation of this file.
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 
3 #ifndef SOUTHBRIDGE_INTEL_COMMON_EARLY_SPI_H
4 #define SOUTHBRIDGE_INTEL_COMMON_EARLY_SPI_H
5 
6 #include <device/pci_ops.h>
7 
8 static inline void enable_spi_prefetching_and_caching(void)
9 {
10  pci_update_config8(PCI_DEV(0, 0x1f, 0), 0xdc, ~(3 << 2), 2 << 2);
11 }
12 
13 #endif
static void enable_spi_prefetching_and_caching(void)
Definition: early_spi.h:8
static __always_inline void pci_update_config8(const struct device *dev, u16 reg, u8 mask, u8 or)
Definition: pci_ops.h:88
#define PCI_DEV(SEGBUS, DEV, FN)
Definition: pci_type.h:14