diff options
author | Allen Martin <amartin@nvidia.com> | 2012-11-19 15:08:54 -0800 |
---|---|---|
committer | Allen Martin <amartin@nvidia.com> | 2012-11-29 23:22:13 -0800 |
commit | 7377e9336d2754e9e820212ee80c6f16b8831951 (patch) | |
tree | 3c0b1de3495ea10eace69f564abe1fd3920923b7 | |
parent | 9501e013164336b37079e9e4c5e6b504f4c164ee (diff) | |
download | tegrarcm-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.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; |