Created
November 15, 2017 07:47
-
-
Save laanwj/b5ddea8d9e509c9e06fbd4e5c65bec8f to your computer and use it in GitHub Desktop.
Extract GCABI json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
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