Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations | Functions
rtlx.h File Reference
#include <irq.h>

Go to the source code of this file.

Data Structures

struct  rtlx_channel
 
struct  rtlx_info
 

Macros

#define LX_NODE_BASE   10
 
#define MIPS_CPU_RTLX_IRQ   0
 
#define RTLX_VERSION   2
 
#define RTLX_xID   0x12345600
 
#define RTLX_ID   (RTLX_xID | RTLX_VERSION)
 
#define RTLX_CHANNELS   8
 
#define RTLX_CHANNEL_STDIO   0
 
#define RTLX_CHANNEL_DBG   1
 
#define RTLX_CHANNEL_SYSIO   2
 
#define RTLX_BUFFER_SIZE   2048
 

Enumerations

enum  rtlx_state { RTLX_STATE_UNUSED = 0, RTLX_STATE_INITIALISED, RTLX_STATE_REMOTE_READY, RTLX_STATE_OPENED }
 

Functions

int rtlx_open (int index, int can_sleep)
 
int rtlx_release (int index)
 
ssize_t rtlx_read (int index, void __user *buff, size_t count)
 
ssize_t rtlx_write (int index, const void __user *buffer, size_t count)
 
unsigned int rtlx_read_poll (int index, int can_sleep)
 
unsigned int rtlx_write_poll (int index)
 

Macro Definition Documentation

#define LX_NODE_BASE   10

Definition at line 11 of file rtlx.h.

#define MIPS_CPU_RTLX_IRQ   0

Definition at line 13 of file rtlx.h.

#define RTLX_BUFFER_SIZE   2048

Definition at line 38 of file rtlx.h.

#define RTLX_CHANNEL_DBG   1

Definition at line 21 of file rtlx.h.

#define RTLX_CHANNEL_STDIO   0

Definition at line 20 of file rtlx.h.

#define RTLX_CHANNEL_SYSIO   2

Definition at line 22 of file rtlx.h.

#define RTLX_CHANNELS   8

Definition at line 18 of file rtlx.h.

#define RTLX_ID   (RTLX_xID | RTLX_VERSION)

Definition at line 17 of file rtlx.h.

#define RTLX_VERSION   2

Definition at line 15 of file rtlx.h.

#define RTLX_xID   0x12345600

Definition at line 16 of file rtlx.h.

Enumeration Type Documentation

enum rtlx_state
Enumerator:
RTLX_STATE_UNUSED 
RTLX_STATE_INITIALISED 
RTLX_STATE_REMOTE_READY 
RTLX_STATE_OPENED 

Definition at line 31 of file rtlx.h.

Function Documentation

int rtlx_open ( int  index,
int  can_sleep 
)

Definition at line 152 of file rtlx.c.

ssize_t rtlx_read ( int  index,
void __user buff,
size_t  count 
)

Definition at line 304 of file rtlx.c.

unsigned int rtlx_read_poll ( int  index,
int  can_sleep 
)

Definition at line 253 of file rtlx.c.

int rtlx_release ( int  index)

Definition at line 243 of file rtlx.c.

ssize_t rtlx_write ( int  index,
const void __user buffer,
size_t  count 
)

Definition at line 346 of file rtlx.c.

unsigned int rtlx_write_poll ( int  index)

Definition at line 296 of file rtlx.c.