Skip to content

Instantly share code, notes, and snippets.

@laanwj
Created November 15, 2017 07:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save laanwj/b5ddea8d9e509c9e06fbd4e5c65bec8f to your computer and use it in GitHub Desktop.
Save laanwj/b5ddea8d9e509c9e06fbd4e5c65bec8f to your computer and use it in GitHub Desktop.
Extract GCABI json
/**
arm-linux-gnueabihf-gcc -ggdb -g3 gcabi.c -o gcabi -I /.../galcore_headers/include_imx8_v6.2.3.129602
extract_structures_json.py gcabi _gcsHAL_INTERFACE _gcoCMDBUF _gcsQUEUE > data/gcs_hal_interface_GCABI.json
*/
#include <gc_abi.h>
struct _gcsHAL_INTERFACE x;
struct _gcoCMDBUF y;
struct _gcsQUEUE z;
int main()
{
x.command = gcvHAL_QUERY_VIDEO_MEMORY;
y.object.type = gcvOBJ_COMMANDBUFFER;
z.next = 12345;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment