1 /*---------------------------------------------------------------------------*
2   Project:  TwlSDK - WXC - include -
3   File:     wxc_protocol_impl_wxc.h
4 
5   Copyright 2005-2009 Nintendo. All rights reserved.
6 
7   These coded instructions, statements, and computer programs contain
8   proprietary information of Nintendo of America Inc. and/or Nintendo
9   Company Ltd., and are protected by Federal copyright law. They may
10   not be disclosed to third parties or copied or duplicated in any form,
11   in whole or in part, without the prior written consent of Nintendo.
12 
13   $Date:: 2008-09-18#$
14   $Rev: 8573 $
15   $Author: okubata_ryoma $
16  *---------------------------------------------------------------------------*/
17 
18 #ifndef	NITRO_WXC_PROTOCOL_IMPL_WXC_H_
19 #define	NITRO_WXC_PROTOCOL_IMPL_WXC_H_
20 
21 #include <nitro.h>
22 
23 
24 /*****************************************************************************/
25 /* Constants */
26 
27 
28 #ifdef  __cplusplus
29 extern "C" {
30 #endif
31 
32 
33 // ImplWork structure for wxc
34 // This used to be in WXCProtocolContext of protocol.h
35 typedef struct
36 {
37     WXCBlockInfo req;                  /* Request from self */
38     WXCBlockInfo ack;                  /* Response to the target */
39 
40     u32     recv_total;                /* Total received packet */
41     u32     recv_rest;                 /* Remaining receive packet */
42 
43     /* Data receive management information */
44     u32     recv_bitmap_buf[WXC_RECV_BITSET_SIZE];
45 
46     u16     send_unit;                 /* Unit size of send packet */
47     u16     recv_unit;                 /* Unit size of receive packet */
48 
49     /* Data send management information */
50     u16     recent_index[WXC_RECENT_SENT_LIST_MAX];
51 
52     BOOL    executing;
53 } WXCImplWorkWxc;
54 
55 extern WXCProtocolImpl wxc_protocol_impl_wxc;
56 
57 
58 #ifdef  __cplusplus
59 }       /* extern "C" */
60 #endif
61 
62 
63 #endif /* NITRO_WXC_PROTOCOL_IMPL_WXC_H_ */
64 
65 /*---------------------------------------------------------------------------*
66   End of file
67  *---------------------------------------------------------------------------*/
68