linux/drivers/mmc/host/cb710-mmc.h

/* SPDX-License-Identifier: GPL-2.0-only */
/*
 *  cb710/cb710-mmc.h
 *
 *  Copyright by Michał Mirosław, 2008-2009
 */
#ifndef LINUX_CB710_MMC_H
#define LINUX_CB710_MMC_H

#include <linux/cb710.h>
#include <linux/workqueue.h>

/* per-MMC-reader structure */
struct cb710_mmc_reader {};

/* some device struct walking */

static inline struct mmc_host *cb710_slot_to_mmc(struct cb710_slot *slot)
{}

static inline struct cb710_slot *cb710_mmc_to_slot(struct mmc_host *mmc)
{}

/* registers (this might be all wrong ;) */

#define CB710_MMC_DATA_PORT

#define CB710_MMC_CONFIG_PORT
#define CB710_MMC_CONFIG0_PORT
#define CB710_MMC_CONFIG1_PORT
#define CB710_MMC_C1_4BIT_DATA_BUS
#define CB710_MMC_CONFIG2_PORT
#define CB710_MMC_C2_READ_PIO_SIZE_MASK
#define CB710_MMC_CONFIG3_PORT

#define CB710_MMC_CONFIGB_PORT

#define CB710_MMC_IRQ_ENABLE_PORT
#define CB710_MMC_IE_TEST_MASK
#define CB710_MMC_IE_CARD_INSERTION_STATUS
#define CB710_MMC_IE_IRQ_ENABLE
#define CB710_MMC_IE_CISTATUS_MASK

#define CB710_MMC_STATUS_PORT
#define CB710_MMC_STATUS_ERROR_EVENTS
#define CB710_MMC_STATUS0_PORT
#define CB710_MMC_S0_FIFO_UNDERFLOW
#define CB710_MMC_STATUS1_PORT
#define CB710_MMC_S1_COMMAND_SENT
#define CB710_MMC_S1_DATA_TRANSFER_DONE
#define CB710_MMC_S1_PIO_TRANSFER_DONE
#define CB710_MMC_S1_CARD_CHANGED
#define CB710_MMC_S1_RESET
#define CB710_MMC_STATUS2_PORT
#define CB710_MMC_S2_FIFO_READY
#define CB710_MMC_S2_FIFO_EMPTY
#define CB710_MMC_S2_BUSY_10
#define CB710_MMC_S2_BUSY_20
#define CB710_MMC_STATUS3_PORT
#define CB710_MMC_S3_CARD_DETECTED
#define CB710_MMC_S3_WRITE_PROTECTED

#define CB710_MMC_CMD_TYPE_PORT
#define CB710_MMC_RSP_TYPE_MASK
#define CB710_MMC_RSP_R1
#define CB710_MMC_RSP_136
#define CB710_MMC_RSP_NO_CRC
#define CB710_MMC_RSP_PRESENT_MASK
#define CB710_MMC_RSP_NONE
#define CB710_MMC_RSP_PRESENT
#define CB710_MMC_RSP_PRESENT_X
#define CB710_MMC_CMD_TYPE_MASK
#define CB710_MMC_CMD_BC
#define CB710_MMC_CMD_BCR
#define CB710_MMC_CMD_AC
#define CB710_MMC_CMD_ADTC
#define CB710_MMC_DATA_READ
#define CB710_MMC_CMD_CODE_MASK
#define CB710_MMC_CMD_CODE_SHIFT
#define CB710_MMC_IS_APP_CMD
#define CB710_MMC_RSP_BUSY

#define CB710_MMC_CMD_PARAM_PORT
#define CB710_MMC_TRANSFER_SIZE_PORT
#define CB710_MMC_RESPONSE0_PORT
#define CB710_MMC_RESPONSE1_PORT
#define CB710_MMC_RESPONSE2_PORT
#define CB710_MMC_RESPONSE3_PORT

#endif /* LINUX_CB710_MMC_H */