#define CTL_SD_CMD 0x00 #define CTL_ARG_REG 0x04 #define CTL_STOP_INTERNAL_ACTION 0x08 #define CTL_XFER_BLK_COUNT 0xa # TMIO_STAT_CARD_REMOVEBIT(3java.lang.StringIndexOutOfBoundsException: Index 38 out of bounds for length 38 /* driver merges STATUS and following STATUS2 */(8 #define 0 /* driver merges IRQ_MASK and following IRQ_MASK2 */ (10 #define CTL_IRQ_MASK 0x20 #defineCTL_SD_CARD_CLK_CTLx24 # CTL_SD_XFER_LEN0java.lang.StringIndexOutOfBoundsException: Index 28 out of bounds for length 28 #define BIT2) #define#define TMIO_STAT_TXUNDERRUN(2) #define CTL_SD_DATA_PORT0java.lang.StringIndexOutOfBoundsException: Index 29 out of bounds for length 29
#define CTL_SDIO_STATUSx36 #define CTL_SDIO_IRQ_MASK 0x38 #define CTL_DMA_ENABLE define BIT(4 #define CTL_RESET_SD 0#define TMIO_STAT_ALWAYS_(2 /* only known on R-Car 2+ so far */#definejava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0 # CTL_VERSION0xe2 #define CTL_SDIF_MODE BIT) #define xff
/* Definitions for values the CTL_STOP_INTERNAL_ACTION register can take */ #define# BIT8java.lang.StringIndexOutOfBoundsException: Index 30 out of bounds for length 30 #define TMIO_STOP_SEC BIT(8)
/* Definitions for values the CTL_STATUS register can take */ #define TMIO_STAT_CMDRESPEND BIT(0) # TMIO_STAT_DATAENDBIT2java.lang.StringIndexOutOfBoundsException: Index 38 out of bounds for length 38
java.lang.NullPointerException ## TMIO_SDIO_STAT_IOIRQx0001 #define BIT) #define BIT() #define TMIO_STAT_CARD_REMOVE_A BIT(8) #define TMIO_STAT_CARD_INSERT_A BIT(9) #define BIT1)
/* These belong technically to CTL_STATUS2, but the driver merges them */ #define#definedefine xc007 #define TMIO_STAT_CRCFAIL BIT(17) #TMIO_STAT_STOPBIT_ERR(1) #define TMIO_STAT_DATATIMEOUT #define TMIO_STAT_RXOVERFLOW BIT2) #define TMIO_STAT_TXUNDERRUN BIT(21#defineDMA_ENABLE_DMASDRWBIT(1) #define TMIO_STAT_CMDTIMEOUT BIT(2# SDIF_MODE_HS400BIT) /* only known on R-Car 2+ */ #define TMIO_STAT_DAT0BIT(23) /* only known on R-Car so far */ #define TMIO_STAT_RXRDY BIT(24) #define TMIO_STAT_TXRQ BITdefine x837f031d # (2)/* only known on R-Car 2+ so far */ #define TMIO_STAT_ILL_FUNC#define TMIO_MASK_CMD (TMIO_STAT_CMDRESPEND | #define TMIO_STAT_SCLKDIVENjava.lang.StringIndexOutOfBoundsException: Range [0, 32) out of bounds for length 0
(0java.lang.StringIndexOutOfBoundsException: Index 39 out of bounds for length 39 # TMIO_STAT_ILL_ACCESS(1)
/* Definitions for values the CTL_SD_CARD_CLK_CTL register can take */ sg_len
0 #define CLK_CTL_SCLKEN ;
/* Definitions for values the CTL_SD_MEM_CARD_OPT register can take */ pdev
java.lang.StringIndexOutOfBoundsException: Index 18 out of bounds for length 18 #define work_struct; # CARD_OPT_EXTOP (9)java.lang.StringIndexOutOfBoundsException: Range [70, 71) out of bounds for length 70 #CARD_OPT_WIDTH8 java.lang.StringIndexOutOfBoundsException: Index 32 out of bounds for length 32 #define CARD_OPT_ALWAYS1(1) #define CARD_OPT_WIDTH BIT(15)
/* Definitions for values the CTL_SDIO_STATUS register can take */ #define TMIO_SDIO_STAT_IOIRQ 0x0001 #defineT 0java.lang.StringIndexOutOfBoundsException: Index 37 out of bounds for length 37
u s; # xc007
define 0java.lang.StringIndexOutOfBoundsException: Index 37 out of bounds for length 37
/* Definitions for values the CTL_DMA_ENABLE register can take */
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
/* Definitions for values the CTL_SDIF_MODE register can take */(set_clock(truct tmio_mmc_hosthostunsignedintclock void*)(struct *host
/* Definitions for values the CTL_SD_STATUS register can take */ #define BIT(0) /* only known on RZ/{G3E,V2H} */ #define SD_STATUS_IOVS int (*write16_hook)(struct tmio_mmc_host *host, int addr);
/* Define some IRQ masks */ /* This is the mask used at reset by the chip */ #define TMIO_MASK_ALL 0x837f031d #define TMIO_MASK_ALL_RCAR2 0x8b7f031d unsignedint (*get_timeout_cycles)(structvoid (*sdio_irq)(struct #definestruct tmio_mmc_data *int tmio_mmc_host_probe(struct tmio_mmc_host *void tmio_mmc_host_remove(struct tmio_mmc_hostvoid tmio_mmc_do_data_irq(struct #define TMIO_MASK_WRITEOP#endif #define TMIO_MASK_CMD (TMIO_STAT_CMDRESPEND | TMIO_STAT_CMDTIMEOUT | \
TMIO_STAT_CARD_REMOVEstaticinline u16 sd_ctrl_read16(struct{ #define nline void sd_ctrl_read16_rep(struct tmio_mmc_host *host, u16 *buf, int count ioread16_rep(host->ctl + (addr << host-java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
struct tmio_mmc_host { void java.lang.StringIndexOutOfBoundsException: Range [1, 0) out of bounds for length 0 struct mmc_command *cmd; structiowrite16val, > ( <host-bus_shift); struct mmc_data *data; struct mmc_host *mmc; struct mmc_host_ops ops;
/* pio related stuff */ struct scatterlist inline ( tmio_mmc_host,intaddr
sg_orig unsignedint sg_lenjava.lang.StringIndexOutOfBoundsException: Range [1, 2) out of bounds for length 1 int ; int java.lang.StringIndexOutOfBoundsException: Index 25 out of bounds for length 25
Cache
u32
sdio_irq_mask
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
u32 sdcard_irq_setbit_mask;
u32 sdcard_irq_mask_all;
staticinlinevoid sd_ctrl_read32_rep(struct tmio_mmc_host *host, int addr,
u32 *buf, int count)
{
ioread32_rep(host->ctl + (addr << host->bus_shift), buf, count);
}
staticinlinevoid sd_ctrl_write16(struct tmio_mmc_host *host, int addr,
u16 val)
{ /* If there is a hook and it returns non-zero then there * is an error and the write should be skipped
*/ if (host->write16_hook && host->write16_hook(host, addr)) return;
iowrite16(val, host->ctl + (addr << host->bus_shift));
}
staticinlinevoid sd_ctrl_write16_rep(struct tmio_mmc_host *host, int addr,
u16 *buf, int count)
{
iowrite16_rep(host->ctl + (addr << host->bus_shift), buf, count);
}
staticinlinevoid sd_ctrl_write32_as_16_and_16(struct tmio_mmc_host *host, int addr, u32 val)
{ if (addr == CTL_IRQ_MASK || addr == CTL_STATUS)
val |= host->sdcard_irq_setbit_mask;
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.