Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Typedefs | Functions | Variables
hycapi.c File Reference
#include <linux/module.h>
#include <linux/proc_fs.h>
#include <linux/seq_file.h>
#include <linux/signal.h>
#include <linux/kernel.h>
#include <linux/skbuff.h>
#include <linux/netdevice.h>
#include <linux/slab.h>
#include "hysdn_defs.h"
#include <linux/kernelcapi.h>

Go to the source code of this file.

Data Structures

struct  _hycapi_appl
 

Macros

#define VER_DRIVER   0
 
#define VER_CARDTYPE   1
 
#define VER_HWID   2
 
#define VER_SERIAL   3
 
#define VER_OPTION   4
 
#define VER_PROTO   5
 
#define VER_PROFILE   6
 
#define VER_CAPI   7
 

Typedefs

typedef struct _hycapi_appl hycapi_appl
 

Functions

 module_param (hycapi_enable, uint, 0)
 
int hycapi_capi_release (hysdn_card *card)
 
int hycapi_capi_stop (hysdn_card *card)
 
void hycapi_rx_capipkt (hysdn_card *card, unsigned char *buf, unsigned short len)
 
void hycapi_tx_capiack (hysdn_card *card)
 
struct sk_buffhycapi_tx_capiget (hysdn_card *card)
 
int hycapi_init (void)
 
void hycapi_cleanup (void)
 
int hycapi_capi_create (hysdn_card *card)
 

Variables

unsigned int hycapi_enable = 0xffffffff
 

Macro Definition Documentation

#define VER_CAPI   7

Definition at line 29 of file hycapi.c.

#define VER_CARDTYPE   1

Definition at line 23 of file hycapi.c.

#define VER_DRIVER   0

Definition at line 22 of file hycapi.c.

#define VER_HWID   2

Definition at line 24 of file hycapi.c.

#define VER_OPTION   4

Definition at line 26 of file hycapi.c.

#define VER_PROFILE   6

Definition at line 28 of file hycapi.c.

#define VER_PROTO   5

Definition at line 27 of file hycapi.c.

#define VER_SERIAL   3

Definition at line 25 of file hycapi.c.

Typedef Documentation

Function Documentation

int hycapi_capi_create ( hysdn_card card)

Definition at line 738 of file hycapi.c.

int hycapi_capi_release ( hysdn_card card)

Definition at line 323 of file hycapi.c.

int hycapi_capi_stop ( hysdn_card card)

Definition at line 343 of file hycapi.c.

void hycapi_cleanup ( void  )

Definition at line 698 of file hycapi.c.

int hycapi_init ( void  )

Definition at line 681 of file hycapi.c.

void hycapi_rx_capipkt ( hysdn_card card,
unsigned char buf,
unsigned short  len 
)

Definition at line 528 of file hycapi.c.

void hycapi_tx_capiack ( hysdn_card card)

Definition at line 633 of file hycapi.c.

struct sk_buff* hycapi_tx_capiget ( hysdn_card card)
read

Definition at line 661 of file hycapi.c.

module_param ( hycapi_enable  ,
uint  ,
 
)

Variable Documentation

unsigned int hycapi_enable = 0xffffffff

Definition at line 36 of file hycapi.c.