linux/drivers/media/pci/ddbridge/ddbridge-ci.c

// SPDX-License-Identifier: GPL-2.0
/*
 * ddbridge-ci.c: Digital Devices bridge CI (DuoFlex, CI Bridge) support
 *
 * Copyright (C) 2010-2017 Digital Devices GmbH
 *                         Marcus Metzler <[email protected]>
 *                         Ralph Metzler <[email protected]>
 */

#include "ddbridge.h"
#include "ddbridge-regs.h"
#include "ddbridge-ci.h"
#include "ddbridge-io.h"
#include "ddbridge-i2c.h"

#include "cxd2099.h"

/* Octopus CI internal CI interface */

static int wait_ci_ready(struct ddb_ci *ci)
{}

static int read_attribute_mem(struct dvb_ca_en50221 *ca,
			      int slot, int address)
{}

static int write_attribute_mem(struct dvb_ca_en50221 *ca, int slot,
			       int address, u8 value)
{}

static int read_cam_control(struct dvb_ca_en50221 *ca,
			    int slot, u8 address)
{}

static int write_cam_control(struct dvb_ca_en50221 *ca, int slot,
			     u8 address, u8 value)
{}

static int slot_reset(struct dvb_ca_en50221 *ca, int slot)
{}

static int slot_shutdown(struct dvb_ca_en50221 *ca, int slot)
{}

static int slot_ts_enable(struct dvb_ca_en50221 *ca, int slot)
{}

static int poll_slot_status(struct dvb_ca_en50221 *ca, int slot, int open)
{}

static struct dvb_ca_en50221 en_templ =;

static void ci_attach(struct ddb_port *port)
{}

/* DuoFlex Dual CI support */

static int write_creg(struct ddb_ci *ci, u8 data, u8 mask)
{}

static int read_attribute_mem_xo2(struct dvb_ca_en50221 *ca,
				  int slot, int address)
{}

static int write_attribute_mem_xo2(struct dvb_ca_en50221 *ca, int slot,
				   int address, u8 value)
{}

static int read_cam_control_xo2(struct dvb_ca_en50221 *ca,
				int slot, u8 address)
{}

static int write_cam_control_xo2(struct dvb_ca_en50221 *ca, int slot,
				 u8 address, u8 value)
{}

static int slot_reset_xo2(struct dvb_ca_en50221 *ca, int slot)
{}

static int slot_shutdown_xo2(struct dvb_ca_en50221 *ca, int slot)
{}

static int slot_ts_enable_xo2(struct dvb_ca_en50221 *ca, int slot)
{}

static int poll_slot_status_xo2(struct dvb_ca_en50221 *ca, int slot, int open)
{}

static struct dvb_ca_en50221 en_xo2_templ =;

static void ci_xo2_attach(struct ddb_port *port)
{}

static const struct cxd2099_cfg cxd_cfgtmpl =;

static int ci_cxd2099_attach(struct ddb_port *port, u32 bitrate)
{}

int ddb_ci_attach(struct ddb_port *port, u32 bitrate)
{}

void ddb_ci_detach(struct ddb_port *port)
{}