linux/drivers/mmc/host/toshsd.h

/* SPDX-License-Identifier: GPL-2.0-or-later */
/*
 *  Toshiba PCI Secure Digital Host Controller Interface driver
 *
 *  Copyright (C) 2014 Ondrej Zary
 *  Copyright (C) 2007 Richard Betts, All Rights Reserved.
 *
 *      Based on asic3_mmc.c Copyright (c) 2005 SDG Systems, LLC
 */

#define HCLK

#define SD_PCICFG_CLKSTOP
#define SD_PCICFG_GATEDCLK
#define SD_PCICFG_CLKMODE
#define SD_PCICFG_PINSTATUS
#define SD_PCICFG_POWER1
#define SD_PCICFG_POWER2
#define SD_PCICFG_POWER3
#define SD_PCICFG_CARDDETECT
#define SD_PCICFG_SLOTS
#define SD_PCICFG_EXTGATECLK1
#define SD_PCICFG_EXTGATECLK2
#define SD_PCICFG_EXTGATECLK3
#define SD_PCICFG_SDLED_ENABLE1
#define SD_PCICFG_SDLED_ENABLE2

#define SD_PCICFG_CLKMODE_DIV_DISABLE
#define SD_PCICFG_CLKSTOP_ENABLE_ALL
#define SD_PCICFG_LED_ENABLE1_START
#define SD_PCICFG_LED_ENABLE2_START

#define SD_PCICFG_PWR1_33V
#define SD_PCICFG_PWR1_OFF
#define SD_PCICFG_PWR2_AUTO

#define SD_CMD
#define SD_ARG0
#define SD_ARG1
#define SD_STOPINTERNAL
#define SD_BLOCKCOUNT
#define SD_RESPONSE0
#define SD_RESPONSE1
#define SD_RESPONSE2
#define SD_RESPONSE3
#define SD_RESPONSE4
#define SD_RESPONSE5
#define SD_RESPONSE6
#define SD_RESPONSE7
#define SD_CARDSTATUS
#define SD_BUFFERCTRL
#define SD_INTMASKCARD
#define SD_INTMASKBUFFER
#define SD_CARDCLOCKCTRL
#define SD_CARDXFERDATALEN
#define SD_CARDOPTIONSETUP
#define SD_ERRORSTATUS0
#define SD_ERRORSTATUS1
#define SD_DATAPORT
#define SD_TRANSACTIONCTRL
#define SD_SOFTWARERESET

/* registers above marked "also for SDIO" and all SDIO registers below can be
 * accessed at SDIO_BASE + reg address */
#define SDIO_BASE

#define SDIO_CARDPORTSEL
#define SDIO_CARDINTCTRL
#define SDIO_CLOCKNWAITCTRL
#define SDIO_HOSTINFORMATION
#define SDIO_ERRORCTRL
#define SDIO_LEDCTRL

#define SD_TRANSCTL_SET

#define SD_CARDCLK_DIV_DISABLE
#define SD_CARDCLK_ENABLE_CLOCK
#define SD_CARDCLK_CLK_DIV_512
#define SD_CARDCLK_CLK_DIV_256
#define SD_CARDCLK_CLK_DIV_128
#define SD_CARDCLK_CLK_DIV_64
#define SD_CARDCLK_CLK_DIV_32
#define SD_CARDCLK_CLK_DIV_16
#define SD_CARDCLK_CLK_DIV_8
#define SD_CARDCLK_CLK_DIV_4
#define SD_CARDCLK_CLK_DIV_2

#define SD_CARDOPT_REQUIRED
#define SD_CARDOPT_DATA_RESP_TIMEOUT(x)
#define SD_CARDOPT_C2_MODULE_ABSENT
#define SD_CARDOPT_DATA_XFR_WIDTH_1
#define SD_CARDOPT_DATA_XFR_WIDTH_4

#define SD_CMD_TYPE_CMD
#define SD_CMD_TYPE_ACMD
#define SD_CMD_TYPE_AUTHEN
#define SD_CMD_RESP_TYPE_NONE
#define SD_CMD_RESP_TYPE_EXT_R1
#define SD_CMD_RESP_TYPE_EXT_R1B
#define SD_CMD_RESP_TYPE_EXT_R2
#define SD_CMD_RESP_TYPE_EXT_R3
#define SD_CMD_RESP_TYPE_EXT_R6
#define SD_CMD_RESP_TYPE_EXT_R7
#define SD_CMD_DATA_PRESENT
#define SD_CMD_TRANSFER_READ
#define SD_CMD_MULTI_BLOCK
#define SD_CMD_SECURITY_CMD

#define SD_STOPINT_ISSUE_CMD12
#define SD_STOPINT_AUTO_ISSUE_CMD12

#define SD_CARD_RESP_END
#define SD_CARD_RW_END
#define SD_CARD_CARD_REMOVED_0
#define SD_CARD_CARD_INSERTED_0
#define SD_CARD_PRESENT_0
#define SD_CARD_UNK6
#define SD_CARD_WRITE_PROTECT
#define SD_CARD_CARD_REMOVED_3
#define SD_CARD_CARD_INSERTED_3
#define SD_CARD_PRESENT_3

#define SD_BUF_CMD_INDEX_ERR
#define SD_BUF_CRC_ERR
#define SD_BUF_STOP_BIT_END_ERR
#define SD_BUF_DATA_TIMEOUT
#define SD_BUF_OVERFLOW
#define SD_BUF_UNDERFLOW
#define SD_BUF_CMD_TIMEOUT
#define SD_BUF_UNK7
#define SD_BUF_READ_ENABLE
#define SD_BUF_WRITE_ENABLE
#define SD_BUF_ILLEGAL_FUNCTION
#define SD_BUF_CMD_BUSY
#define SD_BUF_ILLEGAL_ACCESS

#define SD_ERR0_RESP_CMD_ERR
#define SD_ERR0_RESP_NON_CMD12_END_BIT_ERR
#define SD_ERR0_RESP_CMD12_END_BIT_ERR
#define SD_ERR0_READ_DATA_END_BIT_ERR
#define SD_ERR0_WRITE_CRC_STATUS_END_BIT_ERR
#define SD_ERR0_RESP_NON_CMD12_CRC_ERR
#define SD_ERR0_RESP_CMD12_CRC_ERR
#define SD_ERR0_READ_DATA_CRC_ERR
#define SD_ERR0_WRITE_CMD_CRC_ERR

#define SD_ERR1_NO_CMD_RESP
#define SD_ERR1_TIMEOUT_READ_DATA
#define SD_ERR1_TIMEOUT_CRS_STATUS
#define SD_ERR1_TIMEOUT_CRC_BUSY

#define IRQ_DONT_CARE_BITS

struct toshsd_host {};