diff options
-rw-r--r-- | src/nv3p.c | 70 |
1 files changed, 70 insertions, 0 deletions
@@ -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; |