Enumerations

enum SyncRegs
Name Value
SYNC_REG_BATCH_COMMAND 0x00
SYNC_REG_BATCH_GUESTCOMMAND 0x04
SYNC_REG_BATCH_COMMAND_ADDR 0x08
SYNC_REG_BATCH_COMMAND_ADDR_HIGH 0x0C
SYNC_REG_BATCH_GUESTCOMMAND_ADDR 0x10
SYNC_REG_BATCH_GUESTCOMMAND_ADDR_HIGH 0x14
SYNC_REG_INIT 0x18

The definitions below (command codes, register layout)

need to be in sync with the following files:

Host-side (AOSP platform/external/qemu repository):

- android/emulation/goldfish_sync.h

- hw/misc/goldfish_sync.c

Guest-side (AOSP device/generic/goldfish-opengl repository):

- system/egl/goldfish_sync.h

Defined at line 24 of file ../../src/graphics/drivers/misc/goldfish_sync/sync_common_defs.h

enum CommandId
Name Value
CMD_SYNC_READY 0
CMD_CREATE_SYNC_TIMELINE 1
CMD_CREATE_SYNC_FENCE 2
CMD_SYNC_TIMELINE_INC 3
CMD_DESTROY_SYNC_TIMELINE 4
CMD_TRIGGER_HOST_WAIT 5

Defined at line 43 of file ../../src/graphics/drivers/misc/goldfish_sync/sync_common_defs.h

Records