amd/registers: add a script that generates json from kernel headers