diff options
author | Andrey Petrov <anpetrov@fb.com> | 2019-09-24 14:47:54 -0700 |
---|---|---|
committer | Patrick Georgi <pgeorgi@google.com> | 2019-09-26 09:30:24 +0000 |
commit | 6aea9f9923a0245b96d09fe64204310ba093c749 (patch) | |
tree | 4bce1688a161e3520a7f56fdc82152e8c48bff7a /src/soc/intel/fsp_broadwell_de/include | |
parent | 0a6c62fbbe979b3363152ee8c5aace8a0a12871d (diff) |
soc/intel/fsp_broadwell_de: move get_busno1() into vtd.c
TEST=just build it
Change-Id: I34aee507b8c322c816f92cfcae177c069c749ed7
Signed-off-by: Andrey Petrov <anpetrov@fb.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/35585
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Werner Zeh <werner.zeh@siemens.com>
Diffstat (limited to 'src/soc/intel/fsp_broadwell_de/include')
-rw-r--r-- | src/soc/intel/fsp_broadwell_de/include/soc/vtd.h | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/src/soc/intel/fsp_broadwell_de/include/soc/vtd.h b/src/soc/intel/fsp_broadwell_de/include/soc/vtd.h index 814cba02cd..f1087d1997 100644 --- a/src/soc/intel/fsp_broadwell_de/include/soc/vtd.h +++ b/src/soc/intel/fsp_broadwell_de/include/soc/vtd.h @@ -30,13 +30,6 @@ #define VTD_DFX1_RANGE_3F8_DISABLE (1u << 29) #define VTD_DFX1_RANGE_2F8_DISABLE (1u << 30) -static inline uint8_t get_busno1(void) -{ - uint32_t reg32; - - /* Figure out what bus number is assigned for CPUBUSNO(1) */ - reg32 = pci_mmio_read_config32(VTD_PCI_DEV, VTD_CPUBUSNO); - return ((reg32 >> VTD_CPUBUSNO_BUS1_SHIFT) & VTD_CPUBUSNO_BUS1_MASK); -} +uint8_t get_busno1(void); #endif |