X-Git-Url: http://git.zerfleddert.de/cgi-bin/gitweb.cgi/proxmark3-svn/blobdiff_plain/a5b1ba202384e19b4191c04a45a6992bdaf97cb8..8fcbf652dab8846dd8a2dcb17812af6528539950:/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