|
enum | SD_HC_TRANSFER_MODE { SdNoData
, SdPioMode
, SdSdmaMode
, SdAdmaMode
} |
|
enum | SD_COMMAND_TYPE { SdCommandTypeBc
, SdCommandTypeBcr
, SdCommandTypeAc
, SdCommandTypeAdtc
} |
|
enum | SD_RESPONSE_TYPE {
SdResponseTypeR1
, SdResponseTypeR1b
, SdResponseTypeR2
, SdResponseTypeR3
,
SdResponseTypeR4
, SdResponseTypeR5
, SdResponseTypeR5b
, SdResponseTypeR6
,
SdResponseTypeR7
} |
|
|
EFI_STATUS | SdPeimHcReset (IN UINTN Bar) |
|
EFI_STATUS | SdPeimHcEnableInterrupt (IN UINTN Bar) |
|
EFI_STATUS | SdPeimHcGetCapability (IN UINTN Bar, OUT SD_HC_SLOT_CAP *Capability) |
|
EFI_STATUS | SdPeimHcCardDetect (IN UINTN Bar) |
|
EFI_STATUS | SdPeimHcInitHost (IN UINTN Bar) |
|
EFI_STATUS | SdPeimSwitch (IN SD_PEIM_HC_SLOT *Slot, IN UINT8 AccessMode, IN UINT8 CommandSystem, IN UINT8 DriveStrength, IN UINT8 PowerLimit, IN BOOLEAN Mode, OUT UINT8 *SwitchResp) |
|
EFI_STATUS | SdPeimRwSingleBlock (IN SD_PEIM_HC_SLOT *Slot, IN EFI_LBA Lba, IN UINT32 BlockSize, IN VOID *Buffer, IN UINTN BufferSize, IN BOOLEAN IsRead) |
|
EFI_STATUS | SdPeimRwMultiBlocks (IN SD_PEIM_HC_SLOT *Slot, IN EFI_LBA Lba, IN UINT32 BlockSize, IN VOID *Buffer, IN UINTN BufferSize, IN BOOLEAN IsRead) |
|
EFI_STATUS | SdPeimIdentification (IN SD_PEIM_HC_SLOT *Slot) |
|
VOID | SdPeimFreeTrb (IN SD_TRB *Trb) |
|
Copyright (c) 2015, Intel Corporation. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent
Definition in file SdHci.h.
Execute SD device identification procedure.
Refer to SD Electrical Standard Spec 5.1 Section 6.4 for details.
- Parameters
-
[in] | Slot | The slot number of the Sd card to send the command to. |
- Return values
-
EFI_SUCCESS | There is a SD card. |
Others | There is not a SD card. |
Execute SD device identification procedure.
Refer to SD Physical Layer Simplified Spec 4.1 Section 3.6 for details.
- Parameters
-
[in] | Slot | The slot number of the SD card to send the command to. |
- Return values
-
EFI_SUCCESS | There is a SD card. |
Others | There is not a SD card. |
Definition at line 2803 of file SdHci.c.
Send command READ_MULTIPLE_BLOCK/WRITE_MULTIPLE_BLOCK to the addressed SD device to read/write the specified number of blocks.
Refer to SD Electrical Standard Spec 5.1 Section 6.10.4 for details.
- Parameters
-
[in] | Slot | The slot number of the Sd card to send the command to. |
[in] | Lba | The logical block address of starting access. |
[in] | BlockSize | The block size of specified SD device partition. |
[in] | Buffer | The pointer to the transfer buffer. |
[in] | BufferSize | The size of transfer buffer. |
[in] | IsRead | Boolean to show the operation direction. |
- Return values
-
EFI_SUCCESS | The operation is done correctly. |
Others | The operation fails. |
Send command READ_MULTIPLE_BLOCK/WRITE_MULTIPLE_BLOCK to the addressed SD device to read/write the specified number of blocks.
Refer to SD Physical Layer Simplified Spec 4.1 Section 4.7 for details.
- Parameters
-
[in] | Slot | The slot number of the SD card to send the command to. |
[in] | Lba | The logical block address of starting access. |
[in] | BlockSize | The block size of specified SD device partition. |
[in] | Buffer | The pointer to the transfer buffer. |
[in] | BufferSize | The size of transfer buffer. |
[in] | IsRead | Boolean to show the operation direction. |
- Return values
-
EFI_SUCCESS | The operation is done correctly. |
Others | The operation fails. |
Definition at line 2435 of file SdHci.c.