Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions | Variables
card.h File Reference
#include <linux/timer.h>
#include <linux/time.h>
#include <linux/isdnif.h>
#include <linux/irqreturn.h>
#include "message.h"
#include "scioc.h"

Go to the source code of this file.

Data Structures

struct  bchan
 
struct  board
 

Macros

#define CHECKRESET_TIME   msecs_to_jiffies(4000)
 
#define CHECKSTAT_TIME   msecs_to_jiffies(8000)
 
#define SAR_TIMEOUT   msecs_to_jiffies(10000)
 
#define IS_VALID_CARD(x)   ((x >= 0) && (x <= cinst))
 

Functions

void memcpy_toshmem (int card, void *dest, const void *src, size_t n)
 
void memcpy_fromshmem (int card, void *dest, const void *src, size_t n)
 
int get_card_from_id (int driver)
 
int indicate_status (int card, int event, ulong Channel, char *Data)
 
irqreturn_t interrupt_handler (int interrupt, void *cardptr)
 
int sndpkt (int devId, int channel, int ack, struct sk_buff *data)
 
void rcvpkt (int card, RspMessage *rcvmsg)
 
int command (isdn_ctrl *cmd)
 
int reset (int card)
 
int startproc (int card)
 
int send_and_receive (int card, unsigned int procid, unsigned char type, unsigned char class, unsigned char code, unsigned char link, unsigned char data_len, unsigned char *data, RspMessage *mesgdata, int timeout)
 
void flushreadfifo (int card)
 
int sendmessage (int card, unsigned int procid, unsigned int type, unsigned int class, unsigned int code, unsigned int link, unsigned int data_len, unsigned int *data)
 
int receivemessage (int card, RspMessage *rspmsg)
 
int sc_ioctl (int card, scs_ioctl *data)
 
int setup_buffers (int card, int c)
 
void sc_check_reset (unsigned long data)
 
void check_phystat (unsigned long data)
 

Variables

boardsc_adapter []
 
int cinst
 

Macro Definition Documentation

#define CHECKRESET_TIME   msecs_to_jiffies(4000)

Definition at line 36 of file card.h.

#define CHECKSTAT_TIME   msecs_to_jiffies(8000)

Definition at line 41 of file card.h.

#define IS_VALID_CARD (   x)    ((x >= 0) && (x <= cinst))

Definition at line 52 of file card.h.

#define SAR_TIMEOUT   msecs_to_jiffies(10000)

Definition at line 47 of file card.h.

Function Documentation

void check_phystat ( unsigned long  data)

Definition at line 88 of file timer.c.

int command ( isdn_ctrl cmd)

Definition at line 83 of file command.c.

void flushreadfifo ( int  card)

Definition at line 359 of file command.c.

int get_card_from_id ( int  driver)

Definition at line 68 of file command.c.

int indicate_status ( int  card,
int  event,
ulong  Channel,
char Data 
)

Definition at line 41 of file event.c.

irqreturn_t interrupt_handler ( int  interrupt,
void cardptr 
)

Definition at line 27 of file interrupt.c.

void memcpy_fromshmem ( int  card,
void dest,
const void src,
size_t  n 
)

Definition at line 66 of file shmem.c.

void memcpy_toshmem ( int  card,
void dest,
const void src,
size_t  n 
)

Definition at line 27 of file shmem.c.

void rcvpkt ( int  card,
RspMessage rcvmsg 
)

Definition at line 93 of file packet.c.

int receivemessage ( int  card,
RspMessage rspmsg 
)

Definition at line 28 of file message.c.

int reset ( int  card)

Definition at line 328 of file command.c.

void sc_check_reset ( unsigned long  data)

Definition at line 46 of file timer.c.

int sc_ioctl ( int  card,
scs_ioctl data 
)

Definition at line 20 of file ioctl.c.

int send_and_receive ( int  card,
unsigned int  procid,
unsigned char  type,
unsigned char  class,
unsigned char  code,
unsigned char  link,
unsigned char  data_len,
unsigned char data,
RspMessage mesgdata,
int  timeout 
)

Definition at line 168 of file message.c.

int sendmessage ( int  card,
unsigned int  procid,
unsigned int  type,
unsigned int  class,
unsigned int  code,
unsigned int  link,
unsigned int  data_len,
unsigned int data 
)

Definition at line 83 of file message.c.

int setup_buffers ( int  card,
int  c 
)

Definition at line 145 of file packet.c.

int sndpkt ( int  devId,
int  channel,
int  ack,
struct sk_buff data 
)

Definition at line 23 of file packet.c.

int startproc ( int  card)

Definition at line 136 of file command.c.

Variable Documentation

int cinst

Definition at line 22 of file init.c.

board* sc_adapter[]

Definition at line 21 of file init.c.