linux/drivers/net/wan/slic_ds26522.c

// SPDX-License-Identifier: GPL-2.0-or-later
/*
 * drivers/net/wan/slic_ds26522.c
 *
 * Copyright (C) 2016 Freescale Semiconductor, Inc.
 *
 * Author:Zhao Qiang<[email protected]>
 */

#include <linux/bitrev.h>
#include <linux/module.h>
#include <linux/device.h>
#include <linux/kernel.h>
#include <linux/sched.h>
#include <linux/kthread.h>
#include <linux/spi/spi.h>
#include <linux/wait.h>
#include <linux/param.h>
#include <linux/delay.h>
#include <linux/of.h>
#include <linux/of_address.h>
#include <linux/io.h>
#include "slic_ds26522.h"

#define SLIC_TRANS_LEN
#define SLIC_TWO_LEN
#define SLIC_THREE_LEN

static struct spi_device *g_spi;

MODULE_DESCRIPTION();
MODULE_LICENSE();
MODULE_AUTHOR();

/* the read/write format of address is
 * w/r|A13|A12|A11|A10|A9|A8|A7|A6|A5|A4|A3|A2|A1|A0|x
 */
static void slic_write(struct spi_device *spi, u16 addr,
		       u8 data)
{}

static u8 slic_read(struct spi_device *spi, u16 addr)
{}

static bool get_slic_product_code(struct spi_device *spi)
{}

static void ds26522_e1_spec_config(struct spi_device *spi)
{}

static int slic_ds26522_init_configure(struct spi_device *spi)
{}

static void slic_ds26522_remove(struct spi_device *spi)
{}

static int slic_ds26522_probe(struct spi_device *spi)
{}

static const struct spi_device_id slic_ds26522_id[] =;
MODULE_DEVICE_TABLE(spi, slic_ds26522_id);

static const struct of_device_id slic_ds26522_match[] =;
MODULE_DEVICE_TABLE(of, slic_ds26522_match);

static struct spi_driver slic_ds26522_driver =;

module_spi_driver();