| 82 | static volatile uint8_t *espibar; |
| 83 | |
| 84 | static uint32_t espi_read32(const io_register_t *reg, size_t espi_cntrlr) |
| 85 | { |
| 86 | if (use_smn) |
| 87 | return smn_read32(espi_smn_addr[espi_cntrlr] + reg->addr); |
| 88 | else |
| 89 | return read32(espibar + (espi_cntrlr * ESPI_MMIO_SIZE) + reg->addr); |
| 90 | } |
| 91 | |
| 92 | static uint32_t espi_read16(const io_register_t *reg, size_t espi_cntrlr) |
| 93 | { |
no test coverage detected