summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAllen Martin <amartin@nvidia.com>2012-11-19 15:08:54 -0800
committerAllen Martin <amartin@nvidia.com>2012-11-29 23:22:13 -0800
commit7377e9336d2754e9e820212ee80c6f16b8831951 (patch)
tree3c0b1de3495ea10eace69f564abe1fd3920923b7
parent9501e013164336b37079e9e4c5e6b504f4c164ee (diff)
downloadtegrarcm-7377e9336d2754e9e820212ee80c6f16b8831951.tar.gz
Add descripton of nv3p packets
Add some documentation of nv3p packet formats as comments Signed-off-by: Allen Martin <amartin@nvidia.com> Change-Id: I5685612b75bb2150ca5307497c5b83d18aa8da6b Reviewed-on: http://git-master/r/164849 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Stephen Warren <swarren@nvidia.com>
-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;