| 1 |
|
| 2 |
|
| 3 |
#include <intelblocks/systemagent_server.h> |
| 4 |
#include <soc/systemagent.h> |
| 5 |
|
| 6 |
uint32_t sa_server_soc_reg_to_pci_offset(enum sa_server_reg reg) |
| 7 |
{ |
| 8 |
switch (reg) { |
| 9 |
case MMCFG_BASE_REG: |
| 10 |
return PCIE_MMCFG_BASE; |
| 11 |
case MMCFG_LIMIT_REG: |
| 12 |
return PCIE_MMCFG_LIMIT; |
| 13 |
case TSEG_BASE_REG: |
| 14 |
return TSEG; |
| 15 |
case TSEG_LIMIT_REG: |
| 16 |
return TSEG_LIMIT; |
| 17 |
case TOCM_REG: |
| 18 |
return TOCM; |
| 19 |
case TOUUD_REG: |
| 20 |
return TOUUD; |
| 21 |
case TOLUD_REG: |
| 22 |
return TOLUD; |
| 23 |
case MMIO_L_REG: |
| 24 |
return MMIOL; |
| 25 |
case VT_BAR_REG: |
| 26 |
return VTBAR; |
| 27 |
case DPR_REG: |
| 28 |
return DPR; |
| 29 |
default: |
| 30 |
return 0; |
| 31 |
} |
| 32 |
} |