soc/intel/common: Add PCIe device IDs for Snow Ridge
[coreboot2.git] / src / include / device / spi.h
blob76a39022abaeb649c061a0558fbd01a198bcf1b1
1 /* SPDX-License-Identifier: GPL-2.0-only */
3 #ifndef __DEVICE_SPI_H__
4 #define __DEVICE_SPI_H__
6 struct device;
7 struct spi_bus_operations {
8 /*
9 * This is a SoC-specific method that can be provided to translate the
10 * 'struct device' for a SPI controller into a unique SPI bus
11 * number. Returns -1 if the bus number for this bus cannot be
12 * determined.
14 int (*dev_to_bus)(struct device *dev);
17 #endif /* __DEVICE_SPI_H__ */