Ultibo API
C/C++ API for Ultibo Core
Loading...
Searching...
No Matches
_SDHCI_HOST Struct Reference

#include <mmc.h>

Data Fields

DEVICE device
 The Device entry for this SDHCI.
uint32_t sdhciid
 Unique Id of this SDHCI in the SDHCI table.
uint32_t sdhcistate
 SDHCI state (eg SDHCI_STATE_ENABLED).
sdhci_host_start_proc hoststart
 A Host specific HostStart method implementing a standard SDHCI host interface.
sdhci_host_stop_proc hoststop
 A Host specific HostStop method implementing a standard SDHCI host interface.
sdhci_host_lock_proc hostlock
 A Host specific HostLock method implementing a standard SDHCI host interface.
sdhci_host_unlock_proc hostunlock
 A Host specific HostUnlock method implementing a standard SDHCI host interface.
sdhci_host_signal_proc hostsignal
 A Host specific HostSignal method implementing a standard SDHCI host interface.
sdhci_host_read_byte_proc hostreadbyte
 A Host specific HostReadByte method implementing a standard SDHCI host interface (Or nil if the default method is suitable).
sdhci_host_read_word_proc hostreadword
 A Host specific HostReadWord method implementing a standard SDHCI host interface (Or nil if the default method is suitable).
sdhci_host_read_long_proc hostreadlong
 A Host specific HostReadLong method implementing a standard SDHCI host interface (Or nil if the default method is suitable).
sdhci_host_write_byte_proc hostwritebyte
 A Host specific HostWriteByte method implementing a standard SDHCI host interface (Or nil if the default method is suitable).
sdhci_host_write_word_proc hostwriteword
 A Host specific HostWriteWord method implementing a standard SDHCI host interface (Or nil if the default method is suitable).
sdhci_host_write_long_proc hostwritelong
 A Host specific HostWriteLong method implementing a standard SDHCI host interface (Or nil if the default method is suitable).
sdhci_host_reset_proc hostreset
 A Host specific HostReset method implementing a standard SDHCI host interface (Or nil if the default method is suitable).
sdhci_host_hardware_reset_proc hosthardwarereset
 A Host specific HostHardwareReset method implementing a standard SDHCI host interface (Or nil if the default method is suitable).
sdhci_host_set_power_proc hostsetpower
 A Host specific HostSetPower method implementing a standard SDHCI host interface (Or nil if the default method is suitable).
sdhci_host_set_clock_proc hostsetclock
 A Host specific HostSetClock method implementing a standard SDHCI host interface (Or nil if the default method is suitable).
sdhci_host_set_timing_proc hostsettiming
 A Host specific HostSetTiming method implementing a standard SDHCI host interface (Or nil if the default method is suitable).
sdhci_host_set_buswidth_proc hostsetbuswidth
 A Host specific HostSetBusWidth method implementing a standard SDHCI host interface (Or nil if the default method is suitable).
sdhci_host_set_clock_divider_proc hostsetclockdivider
sdhci_host_set_control_register_proc hostsetcontrolregister
sdhci_host_prepare_dma_proc hostpreparedma
 A Host specific HostPrepareDMA method implementing a standard SDHCI host interface (Or nil if the default method is suitable).
sdhci_host_start_dma_proc hoststartdma
 A Host specific HostStartDMA method implementing a standard SDHCI host interface (Or nil if the default method is suitable).
sdhci_host_stop_dma_proc hoststopdma
 A Host specific HostStopDMA method implementing a standard SDHCI host interface (Or nil if the default method is suitable).
sdhci_host_setup_card_irq_proc hostsetupcardirq
 A Host specific HostSetupCardIRQ method implementing a standard SDHCI host interface (Or nil if the default method is suitable).
sdhci_host_complete_card_irq_proc hostcompletecardirq
 A Host specific HostCompleteCardIRQ method implementing a standard SDHCI host interface (Or nil if the default method is suitable).
mmc_device_initialize_proc deviceinitialize
 A Device specific DeviceInitialize method implementing a standard MMC device interface (Or nil if the default method is suitable).
mmc_device_deinitialize_proc devicedeinitialize
 A Device specific DeviceDeinitialize method implementing a standard MMC device interface (Or nil if the default method is suitable).
mmc_device_get_card_detect_proc devicegetcarddetect
 A Device specific DeviceGetCardDetect method implementing a standard MMC device interface (Or nil if the default method is suitable).
mmc_device_get_write_protect_proc devicegetwriteprotect
 A Device specific DeviceGetWriteProtect method implementing a standard MMC device interface (Or nil if the default method is suitable).
mmc_device_send_command_proc devicesendcommand
 A Device specific DeviceSendCommand method implementing a standard MMC device interface (Or nil if the default method is suitable).
mmc_device_set_ios_proc devicesetios
 A Device specific DeviceSetIOS method implementing a standard MMC device interface (Or nil if the default method is suitable).
SPIN_HANDLE spin
 Host lock (Spin) for use by interrupt handlers.
MUTEX_HANDLE lock
 Host lock (Mutex) for use by other functions.
void * address
 Host register base address.
uint32_t version
 Host version information.
uint32_t quirks
 Host quirks/bugs flags.
uint32_t quirks2
 Host additional quirks/bugs flags.
uint32_t clock
 Host current clock.
uint32_t power
 Host current power.
uint32_t timing
 Host current timing.
uint32_t buswidth
 Host current bus width.
uint32_t interrupts
 Host interrupts to be handled.
uint32_t voltages
 Host configured voltage flags.
uint32_t capabilities
 Host configured capabilities flags.
uint32_t capabilities2
 Host configured additional capabilities flags.
uint32_t timeoutfrequency
 Host configured timeout clock frequency (KHz).
uint32_t minimumfrequency
 Host configured minimum frequency (Hz).
uint32_t maximumfrequency
 Host configured maximum frequency (Hz).
uint32_t maximumblocksize
 Host configured maximum block size.
uint32_t maximumblockcount
 Host configured maximum block count.
uint32_t maximumrequestsize
 Host configured maximum request size.
uint32_t maximumbusytimeout
 Host configured maximum busy timeout (Milliseconds).
uint32_t minimumdmasize
 Minimum size for DMA read or write (Use PIO if less).
uint32_t maximumpioblocks
 Maximum blocks for PIO read or write (Use DMA if greater).
LONGBOOL presetenabled
 Version 3.00 Preset Values Enabled (If applicable).
LONGBOOL cardirqenabled
 SDIO card interrupt is enabled.
WORKER_HANDLE cardirqworker
 SDIO card interrupt current worker.
MMC_DEVICEcardirqdevice
 SDIO card interrupt device.
uint32_t cardirqcount
 SDIO card interrupt function registered count.
MMC_COMMANDcommand
 Currently processing command.
SEMAPHORE_HANDLE wait
 Command completed semaphore.
LONGBOOL usedma
 Use DMA for the current data transfer.
DMA_DATA dmadata
 External DMA data descriptor for current request (If applicable).
SEMAPHORE_HANDLE dmawait
 External DMA completed semaphore.
uint32_t dmaslave
 External DMA slave (DREQ) Id for this device (If applicable).
void * dmabuffer
 DMA bounce buffer for the current request (If applicable).
uint32_t dmadirection
 DMA data direction for current request (If applicable).
uint32_t sdmaboundary
 SDMA buffer boundary argument.
SDHCI_ADMA2_DESCRIPTOR64_V4admatable
 ADMA descriptors for current request (If applicable).
void * admabuffer
 ADMA alignment buffers for the current request (If applicable).
uint32_t admatablesize
 ADMA descriptor table size in bytes (If applicable).
uint32_t admatablecount
 ADMA descriptor table entry count (If applicable).
uint32_t admabuffersize
 ADMA alignment buffers size in bytes (If applicable).
uint32_t admadescriptorsize
 ADMA descriptor size in bytes (If applicable).
uint32_t presetvoltages
 Host predefined voltage flags.
uint32_t presetcapabilities
 Host predefined capabilities flags.
uint32_t presetcapabilities2
 Host predefined additional capabilities flags.
uint32_t clockminimum
 Host predefined minimum clock frequency.
uint32_t clockmaximum
 Host predefined maximum clock frequency.
uint32_t driverstageregister
 Host predefined driver stage register (DSR).
LONGBOOL enablev4mode
 Enable SDHCI version 4 protocol support.
uint32_t requestcount
 Number of requests that have been submitted to this host.
uint32_t requesterrors
 Number of requests that have failed on this host.
uint32_t datarequestcount
 Number of data requests that have been submitted to this host.
uint32_t commandrequestcount
 Number of command requests that have been submitted to this host.
uint32_t piodatatransfercount
 Number of data requests that have been submitted for PIO transfer on this host.
uint32_t dmadatatransfercount
 Number of data requests that have been submitted for DMA transfer on this host.
uint32_t interruptcount
 Number of interrupt requests received by the host.
uint32_t datainterruptcount
 Number of data interrupt requests received by the host.
uint32_t commandinterruptcount
 Number of command interrupt requests received by the host.
SDHCI_HOSTprev
 Previous entry in SDHCI table.
SDHCI_HOSTnext
 Next entry in SDHCI table.

Field Documentation

◆ device

DEVICE device

The Device entry for this SDHCI.

◆ sdhciid

uint32_t sdhciid

Unique Id of this SDHCI in the SDHCI table.

◆ sdhcistate

uint32_t sdhcistate

SDHCI state (eg SDHCI_STATE_ENABLED).

◆ hoststart

A Host specific HostStart method implementing a standard SDHCI host interface.

◆ hoststop

A Host specific HostStop method implementing a standard SDHCI host interface.

◆ hostlock

A Host specific HostLock method implementing a standard SDHCI host interface.

◆ hostunlock

A Host specific HostUnlock method implementing a standard SDHCI host interface.

◆ hostsignal

A Host specific HostSignal method implementing a standard SDHCI host interface.

◆ hostreadbyte

A Host specific HostReadByte method implementing a standard SDHCI host interface (Or nil if the default method is suitable).

◆ hostreadword

A Host specific HostReadWord method implementing a standard SDHCI host interface (Or nil if the default method is suitable).

◆ hostreadlong

A Host specific HostReadLong method implementing a standard SDHCI host interface (Or nil if the default method is suitable).

◆ hostwritebyte

A Host specific HostWriteByte method implementing a standard SDHCI host interface (Or nil if the default method is suitable).

◆ hostwriteword

A Host specific HostWriteWord method implementing a standard SDHCI host interface (Or nil if the default method is suitable).

◆ hostwritelong

A Host specific HostWriteLong method implementing a standard SDHCI host interface (Or nil if the default method is suitable).

◆ hostreset

A Host specific HostReset method implementing a standard SDHCI host interface (Or nil if the default method is suitable).

◆ hosthardwarereset

sdhci_host_hardware_reset_proc hosthardwarereset

A Host specific HostHardwareReset method implementing a standard SDHCI host interface (Or nil if the default method is suitable).

◆ hostsetpower

A Host specific HostSetPower method implementing a standard SDHCI host interface (Or nil if the default method is suitable).

◆ hostsetclock

A Host specific HostSetClock method implementing a standard SDHCI host interface (Or nil if the default method is suitable).

◆ hostsettiming

A Host specific HostSetTiming method implementing a standard SDHCI host interface (Or nil if the default method is suitable).

◆ hostsetbuswidth

A Host specific HostSetBusWidth method implementing a standard SDHCI host interface (Or nil if the default method is suitable).

◆ hostsetclockdivider

sdhci_host_set_clock_divider_proc hostsetclockdivider

◆ hostsetcontrolregister

sdhci_host_set_control_register_proc hostsetcontrolregister

◆ hostpreparedma

A Host specific HostPrepareDMA method implementing a standard SDHCI host interface (Or nil if the default method is suitable).

◆ hoststartdma

A Host specific HostStartDMA method implementing a standard SDHCI host interface (Or nil if the default method is suitable).

◆ hoststopdma

A Host specific HostStopDMA method implementing a standard SDHCI host interface (Or nil if the default method is suitable).

◆ hostsetupcardirq

A Host specific HostSetupCardIRQ method implementing a standard SDHCI host interface (Or nil if the default method is suitable).

◆ hostcompletecardirq

sdhci_host_complete_card_irq_proc hostcompletecardirq

A Host specific HostCompleteCardIRQ method implementing a standard SDHCI host interface (Or nil if the default method is suitable).

◆ deviceinitialize

mmc_device_initialize_proc deviceinitialize

A Device specific DeviceInitialize method implementing a standard MMC device interface (Or nil if the default method is suitable).

◆ devicedeinitialize

mmc_device_deinitialize_proc devicedeinitialize

A Device specific DeviceDeinitialize method implementing a standard MMC device interface (Or nil if the default method is suitable).

◆ devicegetcarddetect

mmc_device_get_card_detect_proc devicegetcarddetect

A Device specific DeviceGetCardDetect method implementing a standard MMC device interface (Or nil if the default method is suitable).

◆ devicegetwriteprotect

mmc_device_get_write_protect_proc devicegetwriteprotect

A Device specific DeviceGetWriteProtect method implementing a standard MMC device interface (Or nil if the default method is suitable).

◆ devicesendcommand

mmc_device_send_command_proc devicesendcommand

A Device specific DeviceSendCommand method implementing a standard MMC device interface (Or nil if the default method is suitable).

◆ devicesetios

A Device specific DeviceSetIOS method implementing a standard MMC device interface (Or nil if the default method is suitable).

◆ spin

Host lock (Spin) for use by interrupt handlers.

◆ lock

Host lock (Mutex) for use by other functions.

◆ address

void* address

Host register base address.

◆ version

uint32_t version

Host version information.

◆ quirks

uint32_t quirks

Host quirks/bugs flags.

◆ quirks2

uint32_t quirks2

Host additional quirks/bugs flags.

◆ clock

uint32_t clock

Host current clock.

◆ power

uint32_t power

Host current power.

◆ timing

uint32_t timing

Host current timing.

◆ buswidth

uint32_t buswidth

Host current bus width.

◆ interrupts

uint32_t interrupts

Host interrupts to be handled.

◆ voltages

uint32_t voltages

Host configured voltage flags.

◆ capabilities

uint32_t capabilities

Host configured capabilities flags.

◆ capabilities2

uint32_t capabilities2

Host configured additional capabilities flags.

◆ timeoutfrequency

uint32_t timeoutfrequency

Host configured timeout clock frequency (KHz).

◆ minimumfrequency

uint32_t minimumfrequency

Host configured minimum frequency (Hz).

◆ maximumfrequency

uint32_t maximumfrequency

Host configured maximum frequency (Hz).

◆ maximumblocksize

uint32_t maximumblocksize

Host configured maximum block size.

◆ maximumblockcount

uint32_t maximumblockcount

Host configured maximum block count.

◆ maximumrequestsize

uint32_t maximumrequestsize

Host configured maximum request size.

◆ maximumbusytimeout

uint32_t maximumbusytimeout

Host configured maximum busy timeout (Milliseconds).

◆ minimumdmasize

uint32_t minimumdmasize

Minimum size for DMA read or write (Use PIO if less).

◆ maximumpioblocks

uint32_t maximumpioblocks

Maximum blocks for PIO read or write (Use DMA if greater).

◆ presetenabled

LONGBOOL presetenabled

Version 3.00 Preset Values Enabled (If applicable).

◆ cardirqenabled

LONGBOOL cardirqenabled

SDIO card interrupt is enabled.

◆ cardirqworker

WORKER_HANDLE cardirqworker

SDIO card interrupt current worker.

◆ cardirqdevice

MMC_DEVICE* cardirqdevice

SDIO card interrupt device.

◆ cardirqcount

uint32_t cardirqcount

SDIO card interrupt function registered count.

◆ command

MMC_COMMAND* command

Currently processing command.

◆ wait

Command completed semaphore.

◆ usedma

LONGBOOL usedma

Use DMA for the current data transfer.

◆ dmadata

DMA_DATA dmadata

External DMA data descriptor for current request (If applicable).

◆ dmawait

External DMA completed semaphore.

◆ dmaslave

uint32_t dmaslave

External DMA slave (DREQ) Id for this device (If applicable).

◆ dmabuffer

void* dmabuffer

DMA bounce buffer for the current request (If applicable).

◆ dmadirection

uint32_t dmadirection

DMA data direction for current request (If applicable).

◆ sdmaboundary

uint32_t sdmaboundary

SDMA buffer boundary argument.

◆ admatable

ADMA descriptors for current request (If applicable).

◆ admabuffer

void* admabuffer

ADMA alignment buffers for the current request (If applicable).

◆ admatablesize

uint32_t admatablesize

ADMA descriptor table size in bytes (If applicable).

◆ admatablecount

uint32_t admatablecount

ADMA descriptor table entry count (If applicable).

◆ admabuffersize

uint32_t admabuffersize

ADMA alignment buffers size in bytes (If applicable).

◆ admadescriptorsize

uint32_t admadescriptorsize

ADMA descriptor size in bytes (If applicable).

◆ presetvoltages

uint32_t presetvoltages

Host predefined voltage flags.

◆ presetcapabilities

uint32_t presetcapabilities

Host predefined capabilities flags.

◆ presetcapabilities2

uint32_t presetcapabilities2

Host predefined additional capabilities flags.

◆ clockminimum

uint32_t clockminimum

Host predefined minimum clock frequency.

◆ clockmaximum

uint32_t clockmaximum

Host predefined maximum clock frequency.

◆ driverstageregister

uint32_t driverstageregister

Host predefined driver stage register (DSR).

◆ enablev4mode

LONGBOOL enablev4mode

Enable SDHCI version 4 protocol support.

◆ requestcount

uint32_t requestcount

Number of requests that have been submitted to this host.

◆ requesterrors

uint32_t requesterrors

Number of requests that have failed on this host.

◆ datarequestcount

uint32_t datarequestcount

Number of data requests that have been submitted to this host.

◆ commandrequestcount

uint32_t commandrequestcount

Number of command requests that have been submitted to this host.

◆ piodatatransfercount

uint32_t piodatatransfercount

Number of data requests that have been submitted for PIO transfer on this host.

◆ dmadatatransfercount

uint32_t dmadatatransfercount

Number of data requests that have been submitted for DMA transfer on this host.

◆ interruptcount

uint32_t interruptcount

Number of interrupt requests received by the host.

◆ datainterruptcount

uint32_t datainterruptcount

Number of data interrupt requests received by the host.

◆ commandinterruptcount

uint32_t commandinterruptcount

Number of command interrupt requests received by the host.

◆ prev

SDHCI_HOST* prev

Previous entry in SDHCI table.

◆ next

SDHCI_HOST* next

Next entry in SDHCI table.


The documentation for this struct was generated from the following file: