// Copyright (c) 2015, XMOS Ltd, All rights reserved

#ifndef __xtcp_bufinfo_h__
#define __xtcp_bufinfo_h__

#ifndef __XC__
typedef struct xtcp_bufinfo_t {

  int   rx_new_event;
  char *rx_buf;
  char *rx_end;
  char *rx_wrptr;
  char *rx_rdptr;

  char *tx_buf;
  char *tx_end;
  char *tx_wrptr;
  char *tx_rdptr;
  char *tx_prev_rdptr;
  int   tx_lowmark;

} xtcp_bufinfo_t;
#endif

#define SIZEOF_BUFINFO (11*4)

#endif //__xtcp_bufinfo_h__
