soc15.c (e4cf4bf5b876df83ad42604e21337eb3e7dfa52c) soc15.c (44f1bb1fed2596330ab55192ddb280865ebc79d2)
1/*
2 * Copyright 2016 Advanced Micro Devices, Inc.
3 *
4 * Permission is hereby granted, free of charge, to any person obtaining a
5 * copy of this software and associated documentation files (the "Software"),
6 * to deal in the Software without restriction, including without limitation
7 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
8 * and/or sell copies of the Software, and to permit persons to whom the

--- 260 unchanged lines hidden (view full) ---

269 WREG32(SOC15_REG_OFFSET(SMUIO, 0, mmROM_INDEX), 0);
270 /* read out the rom data */
271 for (i = 0; i < length_dw; i++)
272 dw_ptr[i] = RREG32(SOC15_REG_OFFSET(SMUIO, 0, mmROM_DATA));
273
274 return true;
275}
276
1/*
2 * Copyright 2016 Advanced Micro Devices, Inc.
3 *
4 * Permission is hereby granted, free of charge, to any person obtaining a
5 * copy of this software and associated documentation files (the "Software"),
6 * to deal in the Software without restriction, including without limitation
7 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
8 * and/or sell copies of the Software, and to permit persons to whom the

--- 260 unchanged lines hidden (view full) ---

269 WREG32(SOC15_REG_OFFSET(SMUIO, 0, mmROM_INDEX), 0);
270 /* read out the rom data */
271 for (i = 0; i < length_dw; i++)
272 dw_ptr[i] = RREG32(SOC15_REG_OFFSET(SMUIO, 0, mmROM_DATA));
273
274 return true;
275}
276
277struct soc15_allowed_register_entry {
278 uint32_t hwip;
279 uint32_t inst;
280 uint32_t seg;
281 uint32_t reg_offset;
282 bool grbm_indexed;
283};
284
285
286static struct soc15_allowed_register_entry soc15_allowed_read_registers[] = {
287 { SOC15_REG_ENTRY(GC, 0, mmGRBM_STATUS)},
288 { SOC15_REG_ENTRY(GC, 0, mmGRBM_STATUS2)},
289 { SOC15_REG_ENTRY(GC, 0, mmGRBM_STATUS_SE0)},
290 { SOC15_REG_ENTRY(GC, 0, mmGRBM_STATUS_SE1)},
291 { SOC15_REG_ENTRY(GC, 0, mmGRBM_STATUS_SE2)},
292 { SOC15_REG_ENTRY(GC, 0, mmGRBM_STATUS_SE3)},
293 { SOC15_REG_ENTRY(SDMA0, 0, mmSDMA0_STATUS_REG)},

--- 1044 unchanged lines hidden ---
277static struct soc15_allowed_register_entry soc15_allowed_read_registers[] = {
278 { SOC15_REG_ENTRY(GC, 0, mmGRBM_STATUS)},
279 { SOC15_REG_ENTRY(GC, 0, mmGRBM_STATUS2)},
280 { SOC15_REG_ENTRY(GC, 0, mmGRBM_STATUS_SE0)},
281 { SOC15_REG_ENTRY(GC, 0, mmGRBM_STATUS_SE1)},
282 { SOC15_REG_ENTRY(GC, 0, mmGRBM_STATUS_SE2)},
283 { SOC15_REG_ENTRY(GC, 0, mmGRBM_STATUS_SE3)},
284 { SOC15_REG_ENTRY(SDMA0, 0, mmSDMA0_STATUS_REG)},

--- 1044 unchanged lines hidden ---