coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
gspi.c
Go to the documentation of this file.
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
2 #include <intelblocks/gspi.h>
3 #include <soc/pci_devs.h>
4 
5 int gspi_soc_bus_to_devfn(unsigned int gspi_bus)
6 {
7  switch (gspi_bus) {
8  case 0:
9  return PCH_DEVFN_GSPI0;
10  case 1:
11  return PCH_DEVFN_GSPI1;
12  }
13  return -1;
14 }
int gspi_soc_bus_to_devfn(unsigned int gspi_bus)
Definition: gspi.c:12
#define PCH_DEVFN_GSPI0
Definition: pci_devs.h:206
#define PCH_DEVFN_GSPI1
Definition: pci_devs.h:207