r1088 - trunk/src/host/dfu-util/src

laforge at sita.openmoko.org laforge at sita.openmoko.org
Fri Feb 23 22:20:08 CET 2007


Author: laforge
Date: 2007-02-23 22:20:08 +0100 (Fri, 23 Feb 2007)
New Revision: 1088

Modified:
   trunk/src/host/dfu-util/src/usb_dfu.h
Log:
add dfu file header structure


Modified: trunk/src/host/dfu-util/src/usb_dfu.h
===================================================================
--- trunk/src/host/dfu-util/src/usb_dfu.h	2007-02-23 20:25:22 UTC (rev 1087)
+++ trunk/src/host/dfu-util/src/usb_dfu.h	2007-02-23 21:20:08 UTC (rev 1088)
@@ -80,4 +80,15 @@
 	DFU_STATE_dfuERROR		= 10,
 };
 
+/* this is the 'swapped' definition, i.e. after/before mirroring */
+struct dfu_file_suffix {
+	u_int32_t dwCRC;	/* CRC32 ANSI X3.66 */
+	u_int8_t bLength;	/* 16 bytes */
+	char ucDfuSignature[3];	/* "DFU" */
+	u_int16_t bcdDFU;	/* Version */
+	u_int16_t idVendor;	/* VendorID */
+	u_int16_t idProduct;	/* ProductID */
+	u_int16_t bcdDevice;	/* Device Revision, or 0xffff */
+} __attribute__ ((packed));
+
 #endif /* _USB_DFU_H */





More information about the commitlog mailing list