3.4.Digital TV Conditional Access kABI¶
- structdvb_ca_en50221¶
Structure describing a CA interface
Definition:
struct dvb_ca_en50221 { struct module *owner; int (*read_attribute_mem)(struct dvb_ca_en50221 *ca, int slot, int address); int (*write_attribute_mem)(struct dvb_ca_en50221 *ca, int slot, int address, u8 value); int (*read_cam_control)(struct dvb_ca_en50221 *ca, int slot, u8 address); int (*write_cam_control)(struct dvb_ca_en50221 *ca, int slot, u8 address, u8 value); int (*read_data)(struct dvb_ca_en50221 *ca, int slot, u8 *ebuf, int ecount); int (*write_data)(struct dvb_ca_en50221 *ca, int slot, u8 *ebuf, int ecount); int (*slot_reset)(struct dvb_ca_en50221 *ca, int slot); int (*slot_shutdown)(struct dvb_ca_en50221 *ca, int slot); int (*slot_ts_enable)(struct dvb_ca_en50221 *ca, int slot); int (*poll_slot_status)(struct dvb_ca_en50221 *ca, int slot, int open); void *data; void *private;};Members
ownerthe module owning this structure
read_attribute_memfunction for reading attribute memory on the CAM
write_attribute_memfunction for writing attribute memory on the CAM
read_cam_controlfunction for reading the control interface on the CAM
write_cam_controlfunction for reading the control interface on the CAM
read_datafunction for reading data (block mode)
write_datafunction for writing data (block mode)
slot_resetfunction to reset the CAM slot
slot_shutdownfunction to shutdown a CAM slot
slot_ts_enablefunction to enable the Transport Stream on a CAM slot
poll_slot_statusfunction to poll slot status. Only necessary ifDVB_CA_FLAG_EN50221_IRQ_CAMCHANGE is not set.
dataprivate data, used by caller.
privateOpaque data used by the dvb_ca core. Do not modify!
NOTE
the read_*, write_* and poll_slot_status functions will becalled for different slots concurrently and need to use locks whereand if appropriate. There will be no concurrent access to one slot.
- voiddvb_ca_en50221_camchange_irq(structdvb_ca_en50221*pubca,intslot,intchange_type)¶
A CAMCHANGE IRQ has occurred.
Parameters
structdvb_ca_en50221*pubcaCA instance.
intslotSlot concerned.
intchange_typeOne of the DVB_CA_CAMCHANGE_* values
- voiddvb_ca_en50221_camready_irq(structdvb_ca_en50221*pubca,intslot)¶
A CAMREADY IRQ has occurred.
Parameters
structdvb_ca_en50221*pubcaCA instance.
intslotSlot concerned.
- voiddvb_ca_en50221_frda_irq(structdvb_ca_en50221*ca,intslot)¶
An FR or a DA IRQ has occurred.
Parameters
structdvb_ca_en50221*caCA instance.
intslotSlot concerned.
- intdvb_ca_en50221_init(structdvb_adapter*dvb_adapter,structdvb_ca_en50221*ca,intflags,intslot_count)¶
Initialise a new DVB CA device.
Parameters
structdvb_adapter*dvb_adapterDVB adapter to attach the new CA device to.
structdvb_ca_en50221*caThe dvb_ca instance.
intflagsFlags describing the CA device (DVB_CA_EN50221_FLAG_*).
intslot_countNumber of slots supported.
Description
return 0 on success, nonzero on failure
- voiddvb_ca_en50221_release(structdvb_ca_en50221*ca)¶
Release a DVB CA device.
Parameters
structdvb_ca_en50221*caThe associated dvb_ca instance.