RTEMS  5.0.0
Data Structures | Macros | Functions | Variables
grspw.h File Reference
#include <grlib/ambapp.h>

Go to the source code of this file.

Data Structures

struct  spw_ioctl_packetsize
 
struct  spw_ioctl_pkt_send
 
struct  spw_stats
 
struct  spw_config
 

Macros

#define SPW_LINKERR_EVENT   RTEMS_EVENT_0
 
#define GRSPW_PKTSEND_OPTION_HDR_CRC   0x1
 
#define GRSPW_PKTSEND_OPTION_DATA_CRC   0x2
 
#define GRSPW_PKTSEND_OPTION_NOCRCLEN(len)   ((len & 0xf) << 8)
 
#define GRSPW_PKTSEND_OPTION_NOCRCLEN_MASK   0xf00
 
#define SPACEWIRE_IOCTRL_SET_NODEADDR   1
 
#define SPACEWIRE_IOCTRL_SET_RXBLOCK   2
 
#define SPACEWIRE_IOCTRL_SET_DESTKEY   4
 
#define SPACEWIRE_IOCTRL_SET_CLKDIV   5
 
#define SPACEWIRE_IOCTRL_SET_TIMER   6
 
#define SPACEWIRE_IOCTRL_SET_DISCONNECT   7
 
#define SPACEWIRE_IOCTRL_SET_PROMISCUOUS   8
 
#define SPACEWIRE_IOCTRL_SET_RMAPEN   9
 
#define SPACEWIRE_IOCTRL_SET_RMAPBUFDIS   10
 
#define SPACEWIRE_IOCTRL_SET_CHECK_RMAP   11
 
#define SPACEWIRE_IOCTRL_SET_RM_PROT_ID   12
 
#define SPACEWIRE_IOCTRL_SET_TXBLOCK   14
 
#define SPACEWIRE_IOCTRL_SET_DISABLE_ERR   15
 
#define SPACEWIRE_IOCTRL_SET_LINK_ERR_IRQ   16
 
#define SPACEWIRE_IOCTRL_SET_EVENT_ID   17
 
#define SPACEWIRE_IOCTRL_SET_PACKETSIZE   20
 
#define SPACEWIRE_IOCTRL_GET_LINK_STATUS   23
 
#define SPACEWIRE_IOCTRL_GET_CONFIG   25
 
#define SPACEWIRE_IOCTRL_GET_STATISTICS   26
 
#define SPACEWIRE_IOCTRL_CLR_STATISTICS   27
 
#define SPACEWIRE_IOCTRL_SEND   28
 
#define SPACEWIRE_IOCTRL_LINKDISABLE   29
 
#define SPACEWIRE_IOCTRL_LINKSTART   30
 
#define SPACEWIRE_IOCTRL_SET_TXBLOCK_ON_FULL   31
 
#define SPACEWIRE_IOCTRL_SET_COREFREQ   32
 
#define SPACEWIRE_IOCTRL_SET_CLKDIVSTART   33
 
#define SPACEWIRE_IOCTRL_SET_NODEMASK   34
 
#define SPACEWIRE_IOCTRL_SET_KEEP_SOURCE   35
 
#define SPACEWIRE_IOCTRL_SET_TCODE_CTRL   36
 
#define SPACEWIRE_IOCTRL_SET_TCODE   37
 
#define SPACEWIRE_IOCTRL_GET_TCODE   38
 
#define SPACEWIRE_IOCTRL_SET_READ_TIMEOUT   39
 
#define SPACEWIRE_IOCTRL_START   64
 
#define SPACEWIRE_IOCTRL_STOP   65
 
#define SPACEWIRE_TCODE_CTRL_IE_MSK   0x001
 
#define SPACEWIRE_TCODE_CTRL_TT_MSK   0x004
 
#define SPACEWIRE_TCODE_CTRL_TR_MSK   0x008
 
#define SPACEWIRE_TCODE_CTRL_IE   0x100
 
#define SPACEWIRE_TCODE_CTRL_TT   0x400
 
#define SPACEWIRE_TCODE_CTRL_TR   0x800
 
#define SPACEWIRE_TCODE_TCODE   0x0ff
 
#define SPACEWIRE_TCODE_SET   0x100 /* Set Timecode register */
 
#define SPACEWIRE_TCODE_TX   0x400
 

Functions

void grspw_register_drv (void)
 
void grspw_print (int options)
 

Variables

void(* grspw_timecode_callback )(void *pDev, void *regs, int minor, unsigned int tc)