Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
netjet.c File Reference
#include <linux/init.h>
#include "hisax.h"
#include "isac.h"
#include "hscx.h"
#include "isdnl1.h"
#include <linux/interrupt.h>
#include <linux/ppp_defs.h>
#include <linux/slab.h>
#include <asm/io.h>
#include "netjet.h"

Go to the source code of this file.

Macros

#define MAKE_RAW_BYTE
 
#define MAKE_RAW_BYTE_56K
 

Functions

u_char NETjet_ReadIC (struct IsdnCardState *cs, u_char offset)
 
void NETjet_WriteIC (struct IsdnCardState *cs, u_char offset, u_char value)
 
void NETjet_ReadICfifo (struct IsdnCardState *cs, u_char *data, int size)
 
void NETjet_WriteICfifo (struct IsdnCardState *cs, u_char *data, int size)
 
void read_tiger (struct IsdnCardState *cs)
 
void netjet_fill_dma (struct BCState *bcs)
 
void write_tiger (struct IsdnCardState *cs)
 
void inittiger (struct IsdnCardState *cs)
 
void release_io_netjet (struct IsdnCardState *cs)
 

Macro Definition Documentation

#define MAKE_RAW_BYTE
Value:
for (j = 0; j < 8; j++) { \
bitcnt++; \
s_val >>= 1; \
if (val & 1) { \
s_one++; \
s_val |= 0x80; \
} else { \
s_one = 0; \
s_val &= 0x7f; \
} \
if (bitcnt == 8) { \
bcs->hw.tiger.sendbuf[s_cnt++] = s_val; \
bitcnt = 0; \
} \
if (s_one == 5) { \
s_val >>= 1; \
s_val &= 0x7f; \
bitcnt++; \
s_one = 0; \
} \
if (bitcnt == 8) { \
bcs->hw.tiger.sendbuf[s_cnt++] = s_val; \
bitcnt = 0; \
} \
val >>= 1; \
}

Definition at line 189 of file netjet.c.

#define MAKE_RAW_BYTE_56K
Value:
for (j = 0; j < 8; j++) { \
bitcnt++; \
s_val >>= 1; \
if (val & 1) { \
s_one++; \
s_val |= 0x80; \
} else { \
s_one = 0; \
s_val &= 0x7f; \
} \
if (bitcnt == 7) { \
s_val >>= 1; \
s_val |= 0x80; \
bcs->hw.tiger.sendbuf[s_cnt++] = s_val; \
bitcnt = 0; \
} \
if (s_one == 5) { \
s_val >>= 1; \
s_val &= 0x7f; \
bitcnt++; \
s_one = 0; \
} \
if (bitcnt == 7) { \
s_val >>= 1; \
s_val |= 0x80; \
bcs->hw.tiger.sendbuf[s_cnt++] = s_val; \
bitcnt = 0; \
} \
val >>= 1; \
}

Definition at line 275 of file netjet.c.

Function Documentation

void inittiger ( struct IsdnCardState *  cs)

Definition at line 913 of file netjet.c.

void netjet_fill_dma ( struct BCState *  bcs)

Definition at line 607 of file netjet.c.

u_char NETjet_ReadIC ( struct IsdnCardState *  cs,
u_char  offset 
)

Definition at line 31 of file netjet.c.

void NETjet_ReadICfifo ( struct IsdnCardState *  cs,
u_char data,
int  size 
)

Definition at line 52 of file netjet.c.

void NETjet_WriteIC ( struct IsdnCardState *  cs,
u_char  offset,
u_char  value 
)

Definition at line 43 of file netjet.c.

void NETjet_WriteICfifo ( struct IsdnCardState *  cs,
u_char data,
int  size 
)

Definition at line 60 of file netjet.c.

void read_tiger ( struct IsdnCardState *  cs)

Definition at line 575 of file netjet.c.

void release_io_netjet ( struct IsdnCardState *  cs)

Definition at line 975 of file netjet.c.

void write_tiger ( struct IsdnCardState *  cs)

Definition at line 764 of file netjet.c.