Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
dvb_ca_en50221.h File Reference
#include <linux/list.h>
#include <linux/dvb/ca.h>
#include "dvbdev.h"

Go to the source code of this file.

Data Structures

struct  dvb_ca_en50221
 

Macros

#define DVB_CA_EN50221_POLL_CAM_PRESENT   1
 
#define DVB_CA_EN50221_POLL_CAM_CHANGED   2
 
#define DVB_CA_EN50221_POLL_CAM_READY   4
 
#define DVB_CA_EN50221_FLAG_IRQ_CAMCHANGE   1
 
#define DVB_CA_EN50221_FLAG_IRQ_FR   2
 
#define DVB_CA_EN50221_FLAG_IRQ_DA   4
 
#define DVB_CA_EN50221_CAMCHANGE_REMOVED   0
 
#define DVB_CA_EN50221_CAMCHANGE_INSERTED   1
 

Functions

void dvb_ca_en50221_camchange_irq (struct dvb_ca_en50221 *pubca, int slot, int change_type)
 
void dvb_ca_en50221_camready_irq (struct dvb_ca_en50221 *pubca, int slot)
 
void dvb_ca_en50221_frda_irq (struct dvb_ca_en50221 *ca, int slot)
 
int dvb_ca_en50221_init (struct dvb_adapter *dvb_adapter, struct dvb_ca_en50221 *ca, int flags, int slot_count)
 
void dvb_ca_en50221_release (struct dvb_ca_en50221 *ca)
 

Macro Definition Documentation

#define DVB_CA_EN50221_CAMCHANGE_INSERTED   1

Definition at line 38 of file dvb_ca_en50221.h.

#define DVB_CA_EN50221_CAMCHANGE_REMOVED   0

Definition at line 37 of file dvb_ca_en50221.h.

#define DVB_CA_EN50221_FLAG_IRQ_CAMCHANGE   1

Definition at line 33 of file dvb_ca_en50221.h.

#define DVB_CA_EN50221_FLAG_IRQ_DA   4

Definition at line 35 of file dvb_ca_en50221.h.

#define DVB_CA_EN50221_FLAG_IRQ_FR   2

Definition at line 34 of file dvb_ca_en50221.h.

#define DVB_CA_EN50221_POLL_CAM_CHANGED   2

Definition at line 30 of file dvb_ca_en50221.h.

#define DVB_CA_EN50221_POLL_CAM_PRESENT   1

Definition at line 29 of file dvb_ca_en50221.h.

#define DVB_CA_EN50221_POLL_CAM_READY   4

Definition at line 31 of file dvb_ca_en50221.h.

Function Documentation

void dvb_ca_en50221_camchange_irq ( struct dvb_ca_en50221 pubca,
int  slot,
int  change_type 
)

A CAMCHANGE IRQ has occurred.

Parameters
caCA instance.
slotSlot concerned.
change_typeOne of the DVB_CA_CAMCHANGE_* values

A CAMCHANGE IRQ has occurred.

Parameters
caCA instance.
slotSlot concerned.
change_typeOne of the DVB_CA_CAMCHANGE_* values.

Definition at line 821 of file dvb_ca_en50221.c.

void dvb_ca_en50221_camready_irq ( struct dvb_ca_en50221 pubca,
int  slot 
)

A CAMREADY IRQ has occurred.

Parameters
caCA instance.
slotSlot concerned.

Definition at line 849 of file dvb_ca_en50221.c.

void dvb_ca_en50221_frda_irq ( struct dvb_ca_en50221 pubca,
int  slot 
)

An FR or a DA IRQ has occurred.

Parameters
caCA instance.
slotSlot concerned.

An FR or DA IRQ has occurred.

Parameters
caCA instance.
slotSlot concerned.

Definition at line 868 of file dvb_ca_en50221.c.

int dvb_ca_en50221_init ( struct dvb_adapter dvb_adapter,
struct dvb_ca_en50221 pubca,
int  flags,
int  slot_count 
)

Initialise a new DVB CA device.

Parameters
dvb_adapterDVB adapter to attach the new CA device to.
caThe dvb_ca instance.
flagsFlags describing the CA device (DVB_CA_EN50221_FLAG_*).
slot_countNumber of slots supported.
Returns
0 on success, nonzero on failure

Initialise a new DVB CA EN50221 interface device.

Parameters
dvb_adapterDVB adapter to attach the new CA device to.
caThe dvb_ca instance.
flagsFlags describing the CA device (DVB_CA_FLAG_*).
slot_countNumber of slots supported.
Returns
0 on success, nonzero on failure

Definition at line 1654 of file dvb_ca_en50221.c.

void dvb_ca_en50221_release ( struct dvb_ca_en50221 pubca)

Release a DVB CA device.

Parameters
caThe associated dvb_ca instance.

Release a DVB CA EN50221 interface device.

Parameters
ca_devThe dvb_device_t instance for the CA device.
caThe associated dvb_ca instance.

Definition at line 1735 of file dvb_ca_en50221.c.