Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/amdsmu/amdsmu_reg.h
| Show All 10 Lines | |||||
| #include <sys/types.h> | #include <sys/types.h> | ||||
| /* | /* | ||||
| * TODO These are in common with amdtemp; should we find a way to factor these | * TODO These are in common with amdtemp; should we find a way to factor these | ||||
| * out? Also, there are way more of these. I couldn't find a centralized place | * out? Also, there are way more of these. I couldn't find a centralized place | ||||
| * which lists them though. | * which lists them though. | ||||
| */ | */ | ||||
| #define PCI_DEVICEID_AMD_CEZANNE_ROOT 0x1630 | |||||
| #define PCI_DEVICEID_AMD_REMBRANDT_ROOT 0x14B5 | #define PCI_DEVICEID_AMD_REMBRANDT_ROOT 0x14B5 | ||||
| #define PCI_DEVICEID_AMD_PHOENIX_ROOT 0x14E8 | #define PCI_DEVICEID_AMD_PHOENIX_ROOT 0x14E8 | ||||
| #define PCI_DEVICEID_AMD_STRIX_POINT_ROOT 0x14A4 | #define PCI_DEVICEID_AMD_STRIX_POINT_ROOT 0x14A4 | ||||
| #define SMU_INDEX_ADDRESS 0xB8 | #define SMU_INDEX_ADDRESS 0xB8 | ||||
| #define SMU_INDEX_DATA 0xBC | #define SMU_INDEX_DATA 0xBC | ||||
| #define SMU_PHYSBASE_ADDR_LO 0x13B102E8 | #define SMU_PHYSBASE_ADDR_LO 0x13B102E8 | ||||
| #define SMU_PHYSBASE_ADDR_HI 0x13B102EC | #define SMU_PHYSBASE_ADDR_HI 0x13B102EC | ||||
| #define SMU_MEM_SIZE 0x1000 | #define SMU_MEM_SIZE 0x1000 | ||||
| #define SMU_REG_SPACE_OFF 0x10000 | #define SMU_REG_SPACE_OFF 0x10000 | ||||
| #define SMU_REG_MESSAGE 0x538 | #define SMU_REG_MESSAGE 0x538 | ||||
| #define SMU_REG_RESPONSE 0x980 | #define SMU_REG_RESPONSE 0x980 | ||||
| #define SMU_REG_ARGUMENT 0x9BC | #define SMU_REG_ARGUMENT 0x9BC | ||||
| #define SMU_REG_IDLEMASK 0xD14 | |||||
| #define SMU_REG_IDLEMASK_CEZANNE 0x94 | |||||
| #define SMU_REG_IDLEMASK_PHOENIX 0xD14 | |||||
| enum amdsmu_res { | enum amdsmu_res { | ||||
| SMU_RES_WAIT = 0x00, | SMU_RES_WAIT = 0x00, | ||||
| SMU_RES_OK = 0x01, | SMU_RES_OK = 0x01, | ||||
| SMU_RES_REJECT_BUSY = 0xFC, | SMU_RES_REJECT_BUSY = 0xFC, | ||||
| SMU_RES_REJECT_PREREQ = 0xFD, | SMU_RES_REJECT_PREREQ = 0xFD, | ||||
| SMU_RES_UNKNOWN = 0xFE, | SMU_RES_UNKNOWN = 0xFE, | ||||
| SMU_RES_FAILED = 0xFF, | SMU_RES_FAILED = 0xFF, | ||||
| ▲ Show 20 Lines • Show All 42 Lines • Show Last 20 Lines | |||||