ARM-software / sdm-api

Secure Debug Manager API
BSD 3-Clause "New" or "Revised" License
6 stars 0 forks source link

API: remove read/writeMemoryBulk; add transfer attributes. #1

Closed flit closed 2 years ago

flit commented 3 years ago

Removed the bulk transfer APIs and added a transfer count to readMemory() and writeMemory(). The bulk transfers didn't really provide any benefit over single transfers regarding simplicity of the API since pointers to the data are required for both.

Also added an attributes parameter to set transfer attributes, with an enum defining some common attributes. The attributes are designed so that passing 0 will result in a default of Secure Privileged. A basic set of abstract attributes (just Nonsecure and Non-privileged for now) work for both AHB and AXI, with the debugger's help in translating them to the appropriate AHB-AP or AXI-AP CSW bits (to support default devices).