Re: Read SPI BAR offset 0x10 throwing processor exception
Rao G
Hi Michael, DEFAULT_PCI_BUS_NUMBER_PCH, PCI_DEVICE_NUMBER_PCH_SPI, PCI_FUNCTION_NUMBER_PCH_SPI ); DEBUG ((DEBUG_INFO, "PchSpiBase at 0x%x\n", SpiInstance->PchSpiBase)); >> returns PchSpiBase as 0xC00FD000 (Bus 0 Dev 1F Func 0) ScSpiBar0 = MmioRead32 (SpiInstance->PchSpiBase + PCI_BASE_ADDRESSREG_OFFSET) & 0xFFFFF000; >> this should return value at 0xC00FD010 Hope it appears to be a standard code and accessing through MMIO library should work Thanks Ranga
On Fri, Jan 28, 2022 at 12:59 PM Michael Brown <mcb30@...> wrote: On 28/01/2022 12:47, Rao G wrote:
|
|