X-Git-Url: http://cvs.zerfleddert.de/cgi-bin/gitweb.cgi/proxmark3-svn/blobdiff_plain/8a6aec16d8c21d3c57457e5ec00eb83f5242feba..7cea81eea602bfb0023fe2cc8ca62acaa73fa2fc:/include/proxmark3.h diff --git a/include/proxmark3.h b/include/proxmark3.h index 7095fc85..31c71642 100644 --- a/include/proxmark3.h +++ b/include/proxmark3.h @@ -70,4 +70,18 @@ struct version_information { char buildtime[30]; /* string with the build time */ } __attribute__((packed)); +#define COMMON_AREA_MAGIC 0x43334d50 +#define COMMON_AREA_COMMAND_NONE 0 +#define COMMON_AREA_COMMAND_ENTER_FLASH_MODE 1 +struct common_area { + int magic; /* Magic sequence, to distinguish against random uninitialized memory */ + char version; /* Must be 1 */ + char command; + struct { + unsigned int bootrom_present:1; /* Set when a bootrom that is capable of parsing the common area is present */ + unsigned int osimage_present:1; /* Set when a osimage that is capable of parsing the common area is present */ + } __attribute__((packed)) flags; + int arg1, arg2; +} __attribute__((packed)); + #endif