linux/drivers/net/wireless/ti/wl1251/spi.h

/* SPDX-License-Identifier: GPL-2.0-only */
/*
 * This file is part of wl1251
 *
 * Copyright (c) 1998-2007 Texas Instruments Incorporated
 * Copyright (C) 2008 Nokia Corporation
 */

#ifndef __WL1251_SPI_H__
#define __WL1251_SPI_H__

#include "cmd.h"
#include "acx.h"
#include "reg.h"

#define WSPI_CMD_READ
#define WSPI_CMD_WRITE
#define WSPI_CMD_FIXED
#define WSPI_CMD_BYTE_LENGTH
#define WSPI_CMD_BYTE_LENGTH_OFFSET
#define WSPI_CMD_BYTE_ADDR

#define WSPI_INIT_CMD_CRC_LEN

#define WSPI_INIT_CMD_START
#define WSPI_INIT_CMD_TX
/* the extra bypass bit is sampled by the TNET as '1' */
#define WSPI_INIT_CMD_BYPASS_BIT
#define WSPI_INIT_CMD_FIXEDBUSY_LEN
#define WSPI_INIT_CMD_EN_FIXEDBUSY
#define WSPI_INIT_CMD_DIS_FIXEDBUSY
#define WSPI_INIT_CMD_IOD
#define WSPI_INIT_CMD_IP
#define WSPI_INIT_CMD_CS
#define WSPI_INIT_CMD_WS
#define WSPI_INIT_CMD_WSPI
#define WSPI_INIT_CMD_END

#define WSPI_INIT_CMD_LEN

#define HW_ACCESS_WSPI_FIXED_BUSY_LEN
#define HW_ACCESS_WSPI_INIT_CMD_MASK

#endif /* __WL1251_SPI_H__ */