TianoCore EDK2 master
Loading...
Searching...
No Matches
SdHcMem.h File Reference

Go to the source code of this file.

Data Structures

struct  _SD_PEIM_MEM_BLOCK
 
struct  _SD_PEIM_MEM_POOL
 

Macros

#define SD_PEIM_MEM_BIT(a)   ((UINTN)(1 << (a)))
 
#define SD_PEIM_MEM_BIT_IS_SET(Data, Bit)    ((BOOLEAN)(((Data) & SD_PEIM_MEM_BIT(Bit)) == SD_PEIM_MEM_BIT(Bit)))
 
#define SD_PEIM_MEM_UNIT   128
 
#define SD_PEIM_MEM_UNIT_MASK   (SD_PEIM_MEM_UNIT - 1)
 
#define SD_PEIM_MEM_DEFAULT_PAGES   16
 
#define SD_PEIM_MEM_ROUND(Len)   (((Len) + SD_PEIM_MEM_UNIT_MASK) & (~SD_PEIM_MEM_UNIT_MASK))
 
#define SD_PEIM_NEXT_BIT(Byte, Bit)
 

Typedefs

typedef struct _SD_PEIM_MEM_BLOCK SD_PEIM_MEM_BLOCK
 
typedef struct _SD_PEIM_MEM_POOL SD_PEIM_MEM_POOL
 

Detailed Description

Copyright (c) 2015 - 2017, Intel Corporation. All rights reserved.

SPDX-License-Identifier: BSD-2-Clause-Patent

Definition in file SdHcMem.h.

Macro Definition Documentation

◆ SD_PEIM_MEM_BIT

#define SD_PEIM_MEM_BIT (   a)    ((UINTN)(1 << (a)))

Definition at line 12 of file SdHcMem.h.

◆ SD_PEIM_MEM_BIT_IS_SET

#define SD_PEIM_MEM_BIT_IS_SET (   Data,
  Bit 
)     ((BOOLEAN)(((Data) & SD_PEIM_MEM_BIT(Bit)) == SD_PEIM_MEM_BIT(Bit)))

Definition at line 14 of file SdHcMem.h.

◆ SD_PEIM_MEM_DEFAULT_PAGES

#define SD_PEIM_MEM_DEFAULT_PAGES   16

Definition at line 39 of file SdHcMem.h.

◆ SD_PEIM_MEM_ROUND

#define SD_PEIM_MEM_ROUND (   Len)    (((Len) + SD_PEIM_MEM_UNIT_MASK) & (~SD_PEIM_MEM_UNIT_MASK))

Definition at line 41 of file SdHcMem.h.

◆ SD_PEIM_MEM_UNIT

#define SD_PEIM_MEM_UNIT   128

Definition at line 36 of file SdHcMem.h.

◆ SD_PEIM_MEM_UNIT_MASK

#define SD_PEIM_MEM_UNIT_MASK   (SD_PEIM_MEM_UNIT - 1)

Definition at line 38 of file SdHcMem.h.

◆ SD_PEIM_NEXT_BIT

#define SD_PEIM_NEXT_BIT (   Byte,
  Bit 
)
Value:
do { \
(Bit)++; \
if ((Bit) > 7) { \
(Byte)++; \
(Bit) = 0; \
} \
} while (0)

Definition at line 46 of file SdHcMem.h.

Typedef Documentation

◆ SD_PEIM_MEM_BLOCK

Definition at line 17 of file SdHcMem.h.