linux/drivers/net/wireless/silabs/wfx/hwio.c

// SPDX-License-Identifier: GPL-2.0-only
/*
 * Low-level I/O functions.
 *
 * Copyright (c) 2017-2020, Silicon Laboratories, Inc.
 * Copyright (c) 2010, ST-Ericsson
 */
#include <linux/kernel.h>
#include <linux/delay.h>
#include <linux/slab.h>
#include <linux/align.h>

#include "hwio.h"
#include "wfx.h"
#include "bus.h"
#include "traces.h"

#define WFX_HIF_BUFFER_SIZE

static int wfx_read32(struct wfx_dev *wdev, int reg, u32 *val)
{}

static int wfx_write32(struct wfx_dev *wdev, int reg, u32 val)
{}

static int wfx_read32_locked(struct wfx_dev *wdev, int reg, u32 *val)
{}

static int wfx_write32_locked(struct wfx_dev *wdev, int reg, u32 val)
{}

static int wfx_write32_bits_locked(struct wfx_dev *wdev, int reg, u32 mask, u32 val)
{}

static int wfx_indirect_read(struct wfx_dev *wdev, int reg, u32 addr, void *buf, size_t len)
{}

static int wfx_indirect_write(struct wfx_dev *wdev, int reg, u32 addr,
			      const void *buf, size_t len)
{}

static int wfx_indirect_read_locked(struct wfx_dev *wdev, int reg, u32 addr,
				    void *buf, size_t len)
{}

static int wfx_indirect_write_locked(struct wfx_dev *wdev, int reg, u32 addr,
				     const void *buf, size_t len)
{}

static int wfx_indirect_read32_locked(struct wfx_dev *wdev, int reg, u32 addr, u32 *val)
{}

static int wfx_indirect_write32_locked(struct wfx_dev *wdev, int reg, u32 addr, u32 val)
{}

int wfx_data_read(struct wfx_dev *wdev, void *buf, size_t len)
{}

int wfx_data_write(struct wfx_dev *wdev, const void *buf, size_t len)
{}

int wfx_sram_buf_read(struct wfx_dev *wdev, u32 addr, void *buf, size_t len)
{}

int wfx_ahb_buf_read(struct wfx_dev *wdev, u32 addr, void *buf, size_t len)
{}

int wfx_sram_buf_write(struct wfx_dev *wdev, u32 addr, const void *buf, size_t len)
{}

int wfx_ahb_buf_write(struct wfx_dev *wdev, u32 addr, const void *buf, size_t len)
{}

int wfx_sram_reg_read(struct wfx_dev *wdev, u32 addr, u32 *val)
{}

int wfx_ahb_reg_read(struct wfx_dev *wdev, u32 addr, u32 *val)
{}

int wfx_sram_reg_write(struct wfx_dev *wdev, u32 addr, u32 val)
{}

int wfx_ahb_reg_write(struct wfx_dev *wdev, u32 addr, u32 val)
{}

int wfx_config_reg_read(struct wfx_dev *wdev, u32 *val)
{}

int wfx_config_reg_write(struct wfx_dev *wdev, u32 val)
{}

int wfx_config_reg_write_bits(struct wfx_dev *wdev, u32 mask, u32 val)
{}

int wfx_control_reg_read(struct wfx_dev *wdev, u32 *val)
{}

int wfx_control_reg_write(struct wfx_dev *wdev, u32 val)
{}

int wfx_control_reg_write_bits(struct wfx_dev *wdev, u32 mask, u32 val)
{}

int wfx_igpr_reg_read(struct wfx_dev *wdev, int index, u32 *val)
{}

int wfx_igpr_reg_write(struct wfx_dev *wdev, int index, u32 val)
{}