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

Go to the source code of this file.

Data Structures

struct  _UFS_PEIM_MEM_BLOCK
 
struct  _UFS_PEIM_MEM_POOL
 

Macros

#define UFS_PEIM_MEM_BIT(a)   ((UINTN)(1 << (a)))
 
#define UFS_PEIM_MEM_BIT_IS_SET(Data, Bit)    ((BOOLEAN)(((Data) & UFS_PEIM_MEM_BIT(Bit)) == UFS_PEIM_MEM_BIT(Bit)))
 
#define UFS_PEIM_MEM_UNIT   128
 
#define UFS_PEIM_MEM_UNIT_MASK   (UFS_PEIM_MEM_UNIT - 1)
 
#define UFS_PEIM_MEM_DEFAULT_PAGES   16
 
#define UFS_PEIM_MEM_ROUND(Len)   (((Len) + UFS_PEIM_MEM_UNIT_MASK) & (~UFS_PEIM_MEM_UNIT_MASK))
 
#define UFS_PEIM_NEXT_BIT(Byte, Bit)
 

Typedefs

typedef struct _UFS_PEIM_MEM_BLOCK UFS_PEIM_MEM_BLOCK
 
typedef struct _UFS_PEIM_MEM_POOL UFS_PEIM_MEM_POOL
 

Detailed Description

Copyright (c) 2014 - 2018, Intel Corporation. All rights reserved.

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

Definition in file UfsHcMem.h.

Macro Definition Documentation

◆ UFS_PEIM_MEM_BIT

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

Definition at line 12 of file UfsHcMem.h.

◆ UFS_PEIM_MEM_BIT_IS_SET

#define UFS_PEIM_MEM_BIT_IS_SET (   Data,
  Bit 
)     ((BOOLEAN)(((Data) & UFS_PEIM_MEM_BIT(Bit)) == UFS_PEIM_MEM_BIT(Bit)))

Definition at line 14 of file UfsHcMem.h.

◆ UFS_PEIM_MEM_DEFAULT_PAGES

#define UFS_PEIM_MEM_DEFAULT_PAGES   16

Definition at line 39 of file UfsHcMem.h.

◆ UFS_PEIM_MEM_ROUND

#define UFS_PEIM_MEM_ROUND (   Len)    (((Len) + UFS_PEIM_MEM_UNIT_MASK) & (~UFS_PEIM_MEM_UNIT_MASK))

Definition at line 41 of file UfsHcMem.h.

◆ UFS_PEIM_MEM_UNIT

#define UFS_PEIM_MEM_UNIT   128

Definition at line 36 of file UfsHcMem.h.

◆ UFS_PEIM_MEM_UNIT_MASK

#define UFS_PEIM_MEM_UNIT_MASK   (UFS_PEIM_MEM_UNIT - 1)

Definition at line 38 of file UfsHcMem.h.

◆ UFS_PEIM_NEXT_BIT

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

Definition at line 46 of file UfsHcMem.h.

Typedef Documentation

◆ UFS_PEIM_MEM_BLOCK

Definition at line 17 of file UfsHcMem.h.