X-Git-Url: http://git.zerfleddert.de/cgi-bin/gitweb.cgi/proxmark3-svn/blobdiff_plain/cd00aa3043b507ed10bf79a37b83b88741d176d7..3a8464f0679d86904aa4ae2abb0cafe02e222ce8:/client/flasher.c diff --git a/client/flasher.c b/client/flasher.c index e3043fa3..bcbe2d77 100644 --- a/client/flasher.c +++ b/client/flasher.c @@ -42,16 +42,16 @@ static void FlushPrevious(int translate) for(i = 0; i < 240; i += 48) { c.cmd = CMD_SETUP_WRITE; memcpy(c.d.asBytes, QueuedToSend+i, 48); - c.ext1 = (i/4); + c.arg[0] = (i/4); SendCommand(&c, TRUE); } c.cmd = CMD_FINISH_WRITE; - c.ext1 = (ExpectedAddr-1) & (~255); + c.arg[0] = (ExpectedAddr-1) & (~255); if(translate) { - c.ext1 -= PHYSICAL_FLASH_START; + c.arg[0] -= PHYSICAL_FLASH_START; } - printf("c.ext1 = %08x\r", c.ext1); + printf("c.arg[0] = %08x\r", c.arg[0]); memcpy(c.d.asBytes, QueuedToSend+240, 16); SendCommand(&c, TRUE); @@ -151,14 +151,14 @@ static int PrepareFlash(struct partition *p, const char *filename, unsigned int if(state & DEVICE_INFO_FLAG_UNDERSTANDS_START_FLASH) { UsbCommand c; c.cmd = CMD_START_FLASH; - c.ext1 = p->start; - c.ext2 = p->end; + c.arg[0] = p->start; + c.arg[1] = p->end; /* Only send magic when flashing bootrom */ if(p->precious) { - c.ext3 = START_FLASH_MAGIC; + c.arg[2] = START_FLASH_MAGIC; } else { - c.ext3 = 0; + c.arg[2] = 0; } SendCommand(&c, TRUE); translate = 0; @@ -196,7 +196,7 @@ static unsigned int GetProxmarkState(void) state = DEVICE_INFO_FLAG_CURRENT_MODE_OS; break; case CMD_DEVICE_INFO: - state = resp.ext1; + state = resp.arg[0]; break; default: fprintf(stderr, "Couldn't get proxmark state, bad response type: 0x%04X\n", resp.cmd);