Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Typedefs | Functions
capilli.h File Reference
#include <linux/kernel.h>
#include <linux/list.h>
#include <linux/capi.h>
#include <linux/kernelcapi.h>

Go to the source code of this file.

Data Structures

struct  capiloaddatapart
 
struct  capiloaddata
 
struct  capicardparams
 
struct  capi_ctr
 
struct  capi_driver
 

Typedefs

typedef struct capiloaddatapart capiloaddatapart
 
typedef struct capiloaddata capiloaddata
 
typedef struct capicardparams capicardparams
 

Functions

int attach_capi_ctr (struct capi_ctr *)
 
int detach_capi_ctr (struct capi_ctr *)
 
void capi_ctr_ready (struct capi_ctr *card)
 
void capi_ctr_down (struct capi_ctr *card)
 
void capi_ctr_suspend_output (struct capi_ctr *card)
 
void capi_ctr_resume_output (struct capi_ctr *card)
 
void capi_ctr_handle_message (struct capi_ctr *card, u16 appl, struct sk_buff *skb)
 
void register_capi_driver (struct capi_driver *driver)
 
void unregister_capi_driver (struct capi_driver *driver)
 
void capilib_new_ncci (struct list_head *head, u16 applid, u32 ncci, u32 winsize)
 
void capilib_free_ncci (struct list_head *head, u16 applid, u32 ncci)
 
void capilib_release_appl (struct list_head *head, u16 applid)
 
void capilib_release (struct list_head *head)
 
void capilib_data_b3_conf (struct list_head *head, u16 applid, u32 ncci, u16 msgid)
 
u16 capilib_data_b3_req (struct list_head *head, u16 applid, u32 ncci, u16 msgid)
 

Typedef Documentation

Function Documentation

int attach_capi_ctr ( struct capi_ctr ctr)

attach_capi_ctr() - register CAPI controller : controller descriptor structure.

Called by hardware driver to register a controller with the CAPI subsystem. Return value: 0 on success, error code < 0 on error

Definition at line 509 of file kcapi.c.

void capi_ctr_down ( struct capi_ctr ctr)

capi_ctr_down() - signal CAPI controller not ready : controller descriptor structure.

Called by hardware driver to signal that the controller is down and unavailable for use.

Definition at line 448 of file kcapi.c.

void capi_ctr_handle_message ( struct capi_ctr ctr,
u16  appl,
struct sk_buff skb 
)

capi_ctr_handle_message() - handle incoming CAPI message : controller descriptor structure. : application ID. : message.

Called by hardware driver to pass a CAPI message to the application.

Definition at line 343 of file kcapi.c.

void capi_ctr_ready ( struct capi_ctr ctr)

capi_ctr_ready() - signal CAPI controller ready : controller descriptor structure.

Called by hardware driver to signal that the controller is up and running.

Definition at line 430 of file kcapi.c.

void capi_ctr_resume_output ( struct capi_ctr ctr)

capi_ctr_resume_output() - resume controller : controller descriptor structure.

Called by hardware driver to resume data flow.

Note: The caller is responsible for synchronizing concurrent state changes as well as invocations of capi_ctr_handle_message.

Definition at line 488 of file kcapi.c.

void capi_ctr_suspend_output ( struct capi_ctr ctr)

capi_ctr_suspend_output() - suspend controller : controller descriptor structure.

Called by hardware driver to stop data flow.

Note: The caller is responsible for synchronizing concurrent state changes as well as invocations of capi_ctr_handle_message.

Definition at line 467 of file kcapi.c.

void capilib_data_b3_conf ( struct list_head head,
u16  applid,
u32  ncci,
u16  msgid 
)

Definition at line 180 of file capilib.c.

u16 capilib_data_b3_req ( struct list_head head,
u16  applid,
u32  ncci,
u16  msgid 
)

Definition at line 157 of file capilib.c.

void capilib_free_ncci ( struct list_head head,
u16  applid,
u32  ncci 
)

Definition at line 104 of file capilib.c.

void capilib_new_ncci ( struct list_head head,
u16  applid,
u32  ncci,
u32  winsize 
)

Definition at line 80 of file capilib.c.

void capilib_release ( struct list_head head)

Definition at line 142 of file capilib.c.

void capilib_release_appl ( struct list_head head,
u16  applid 
)

Definition at line 125 of file capilib.c.

int detach_capi_ctr ( struct capi_ctr ctr)

detach_capi_ctr() - unregister CAPI controller : controller descriptor structure.

Called by hardware driver to remove the registration of a controller with the CAPI subsystem. Return value: 0 on success, error code < 0 on error

Definition at line 559 of file kcapi.c.

void register_capi_driver ( struct capi_driver driver)

register_capi_driver() - register CAPI driver : driver descriptor structure.

Called by hardware driver to register itself with the CAPI subsystem.

Definition at line 595 of file kcapi.c.

void unregister_capi_driver ( struct capi_driver driver)

unregister_capi_driver() - unregister CAPI driver : driver descriptor structure.

Called by hardware driver to unregister itself from the CAPI subsystem.

Definition at line 611 of file kcapi.c.