summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/nv3p.c70
1 files changed, 70 insertions, 0 deletions
diff --git a/src/nv3p.c b/src/nv3p.c
index 19c5976..b3f6045 100644
--- a/src/nv3p.c
+++ b/src/nv3p.c
@@ -36,6 +36,76 @@
#include "usb.h"
#include "debug.h"
+/* nv3p command packet format */
+/*|------------32 bits--------------|*/
+/*************************************/
+/* NV3P_VERSION */
+/*-----------------------------------*/
+/* NV3P_PACKET_TYPE_CMD */
+/*-----------------------------------*/
+/* sequence no */
+/*-----------------------------------*/
+/* length of command arguments */
+/*-----------------------------------*/
+/* command, one of: */
+/* NV3P_CMD_GET_PLATFORM_INFO */
+/* NV3P_CMD_DL_BCT */
+/* NV3P_CMD_DL_BL */
+/* NV3P_CMD_STATUS */
+/*-----------------------------------*/
+/* command arguments */
+/* . */
+/* . */
+/* . */
+/*-----------------------------------*/
+/* checksum */
+/*-----------------------------------*/
+
+/* nv3p ack packet format */
+/*|------------32 bits--------------|*/
+/*************************************/
+/* NV3P_VERSION */
+/*-----------------------------------*/
+/* NV3P_PACKET_TYPE_ACK */
+/*-----------------------------------*/
+/* sequence no */
+/*-----------------------------------*/
+/* checksum */
+/*-----------------------------------*/
+
+/* nv3p nack packet format */
+/*|------------32 bits--------------|*/
+/*************************************/
+/* NV3P_VERSION */
+/*-----------------------------------*/
+/* NV3P_PACKET_TYPE_NACK */
+/*-----------------------------------*/
+/* sequence no */
+/*-----------------------------------*/
+/* nack code */
+/*-----------------------------------*/
+/* checksum */
+/*-----------------------------------*/
+
+/* nv3p data packet format */
+/*|------------32 bits--------------|*/
+/*************************************/
+/* NV3P_VERSION */
+/*-----------------------------------*/
+/* NV3P_PACKET_TYPE_DATA */
+/*-----------------------------------*/
+/* sequence no */
+/*-----------------------------------*/
+/* length of data */
+/*-----------------------------------*/
+/* data */
+/* . */
+/* . */
+/* . */
+/*-----------------------------------*/
+/* checksum */
+/*-----------------------------------*/
+
typedef struct nv3p_state {
usb_device_t *usb;
uint32_t sequence;