linux/drivers/net/can/spi/mcp251xfd/mcp251xfd-regmap.c

// SPDX-License-Identifier: GPL-2.0
//
// mcp251xfd - Microchip MCP251xFD Family CAN controller driver
//
// Copyright (c) 2019, 2020, 2021 Pengutronix,
//               Marc Kleine-Budde <[email protected]>
//

#include "mcp251xfd.h"

#include <asm/unaligned.h>

static const struct regmap_config mcp251xfd_regmap_crc;

static int
mcp251xfd_regmap_nocrc_write(void *context, const void *data, size_t count)
{}

static int
mcp251xfd_regmap_nocrc_gather_write(void *context,
				    const void *reg, size_t reg_len,
				    const void *val, size_t val_len)
{}

static inline bool
mcp251xfd_update_bits_read_reg(const struct mcp251xfd_priv *priv,
			       unsigned int reg)
{}

static int
mcp251xfd_regmap_nocrc_update_bits(void *context, unsigned int reg,
				   unsigned int mask, unsigned int val)
{}

static int
mcp251xfd_regmap_nocrc_read(void *context,
			    const void *reg, size_t reg_len,
			    void *val_buf, size_t val_len)
{}

static int
mcp251xfd_regmap_crc_gather_write(void *context,
				  const void *reg_p, size_t reg_len,
				  const void *val, size_t val_len)
{}

static int
mcp251xfd_regmap_crc_write(void *context,
			   const void *data, size_t count)
{}

static int
mcp251xfd_regmap_crc_read_check_crc(const struct mcp251xfd_map_buf_crc * const buf_rx,
				    const struct mcp251xfd_map_buf_crc * const buf_tx,
				    unsigned int data_len)
{}

static int
mcp251xfd_regmap_crc_read_one(struct mcp251xfd_priv *priv,
			      struct spi_message *msg, unsigned int data_len)
{}

static int
mcp251xfd_regmap_crc_read(void *context,
			  const void *reg_p, size_t reg_len,
			  void *val_buf, size_t val_len)
{}

static const struct regmap_range mcp251xfd_reg_table_yes_range[] =;

static const struct regmap_access_table mcp251xfd_reg_table =;

static const struct regmap_config mcp251xfd_regmap_nocrc =;

static const struct regmap_bus mcp251xfd_bus_nocrc =;

static const struct regmap_config mcp251xfd_regmap_crc =;

static const struct regmap_bus mcp251xfd_bus_crc =;

static inline bool
mcp251xfd_regmap_use_nocrc(struct mcp251xfd_priv *priv)
{}

static inline bool
mcp251xfd_regmap_use_crc(struct mcp251xfd_priv *priv)
{}

static int
mcp251xfd_regmap_init_nocrc(struct mcp251xfd_priv *priv)
{}

static void mcp251xfd_regmap_destroy_nocrc(struct mcp251xfd_priv *priv)
{}

static int
mcp251xfd_regmap_init_crc(struct mcp251xfd_priv *priv)
{}

static void mcp251xfd_regmap_destroy_crc(struct mcp251xfd_priv *priv)
{}

int mcp251xfd_regmap_init(struct mcp251xfd_priv *priv)
{}