#ifndef _UFS_PEIM_MEM_H_\r
#define _UFS_PEIM_MEM_H_\r
\r
-#define UFS_PEIM_MEM_BIT(a) ((UINTN)(1 << (a)))\r
+#define UFS_PEIM_MEM_BIT(a) ((UINTN)(1 << (a)))\r
\r
#define UFS_PEIM_MEM_BIT_IS_SET(Data, Bit) \\r
((BOOLEAN)(((Data) & UFS_PEIM_MEM_BIT(Bit)) == UFS_PEIM_MEM_BIT(Bit)))\r
typedef struct _UFS_PEIM_MEM_BLOCK UFS_PEIM_MEM_BLOCK;\r
\r
struct _UFS_PEIM_MEM_BLOCK {\r
- UINT8 *Bits; // Bit array to record which unit is allocated\r
- UINTN BitsLen;\r
- UINT8 *Buf;\r
- UINT8 *BufHost;\r
- UINTN BufLen; // Memory size in bytes\r
- VOID *Mapping;\r
- UFS_PEIM_MEM_BLOCK *Next;\r
+ UINT8 *Bits; // Bit array to record which unit is allocated\r
+ UINTN BitsLen;\r
+ UINT8 *Buf;\r
+ UINT8 *BufHost;\r
+ UINTN BufLen; // Memory size in bytes\r
+ VOID *Mapping;\r
+ UFS_PEIM_MEM_BLOCK *Next;\r
};\r
\r
typedef struct _UFS_PEIM_MEM_POOL {\r
- UFS_PEIM_MEM_BLOCK *Head;\r
+ UFS_PEIM_MEM_BLOCK *Head;\r
} UFS_PEIM_MEM_POOL;\r
\r
//\r
// Memory allocation unit, note that the value must meet UFS spec alignment requirement.\r
//\r
-#define UFS_PEIM_MEM_UNIT 128\r
+#define UFS_PEIM_MEM_UNIT 128\r
\r
#define UFS_PEIM_MEM_UNIT_MASK (UFS_PEIM_MEM_UNIT - 1)\r
#define UFS_PEIM_MEM_DEFAULT_PAGES 16\r
} while (0)\r
\r
#endif\r
-\r