linux/drivers/media/pci/netup_unidvb/netup_unidvb_spi.c

// SPDX-License-Identifier: GPL-2.0-or-later
/*
 * netup_unidvb_spi.c
 *
 * Internal SPI driver for NetUP Universal Dual DVB-CI
 *
 * Copyright (C) 2014 NetUP Inc.
 * Copyright (C) 2014 Sergey Kozlov <[email protected]>
 * Copyright (C) 2014 Abylay Ospan <[email protected]>
 */

#include "netup_unidvb.h"
#include <linux/spi/spi.h>
#include <linux/spi/flash.h>
#include <linux/mtd/partitions.h>
#include <mtd/mtd-abi.h>

#define NETUP_SPI_CTRL_IRQ
#define NETUP_SPI_CTRL_IMASK
#define NETUP_SPI_CTRL_START
#define NETUP_SPI_CTRL_LAST_CS

#define NETUP_SPI_TIMEOUT

enum netup_spi_state {};

struct netup_spi_regs {} __packed __aligned();

struct netup_spi {};

static char netup_spi_name[64] =;

static struct mtd_partition netup_spi_flash_partitions =;

static struct flash_platform_data spi_flash_data =;

static struct spi_board_info netup_spi_board =;

irqreturn_t netup_spi_interrupt(struct netup_spi *spi)
{}

static int netup_spi_transfer(struct spi_controller *ctlr,
			      struct spi_message *msg)
{}

static int netup_spi_setup(struct spi_device *spi)
{}

int netup_spi_init(struct netup_unidvb_dev *ndev)
{}

void netup_spi_release(struct netup_unidvb_dev *ndev)
{}