mirror of https://github.com/acidanthera/audk.git
clean ecc
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@7461 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
b2c0a17556
commit
fd0d484170
|
@ -27,17 +27,15 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
||||||
#define USB_HC_HIGH_32BIT(Addr64) \
|
#define USB_HC_HIGH_32BIT(Addr64) \
|
||||||
((UINT32)(RShiftU64((UINTN)(Addr64), 32) & 0XFFFFFFFF))
|
((UINT32)(RShiftU64((UINTN)(Addr64), 32) & 0XFFFFFFFF))
|
||||||
|
|
||||||
typedef struct _USBHC_MEM_BLOCK USBHC_MEM_BLOCK;
|
typedef struct _USBHC_MEM_BLOCK {
|
||||||
|
|
||||||
struct _USBHC_MEM_BLOCK {
|
|
||||||
UINT8 *Bits; // Bit array to record which unit is allocated
|
UINT8 *Bits; // Bit array to record which unit is allocated
|
||||||
UINTN BitsLen;
|
UINTN BitsLen;
|
||||||
UINT8 *Buf;
|
UINT8 *Buf;
|
||||||
UINT8 *BufHost;
|
UINT8 *BufHost;
|
||||||
UINTN BufLen; // Memory size in bytes
|
UINTN BufLen; // Memory size in bytes
|
||||||
VOID *Mapping;
|
VOID *Mapping;
|
||||||
USBHC_MEM_BLOCK *Next;
|
struct _USBHC_MEM_BLOCK *Next;
|
||||||
};
|
} USBHC_MEM_BLOCK;
|
||||||
|
|
||||||
//
|
//
|
||||||
// USBHC_MEM_POOL is used to manage the memory used by USB
|
// USBHC_MEM_POOL is used to manage the memory used by USB
|
||||||
|
|
|
@ -26,17 +26,16 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
||||||
#define USB_HC_HIGH_32BIT(Addr64) \
|
#define USB_HC_HIGH_32BIT(Addr64) \
|
||||||
((UINT32)(RShiftU64((UINTN)(Addr64), 32) & 0XFFFFFFFF))
|
((UINT32)(RShiftU64((UINTN)(Addr64), 32) & 0XFFFFFFFF))
|
||||||
|
|
||||||
typedef struct _USBHC_MEM_BLOCK USBHC_MEM_BLOCK;
|
|
||||||
|
|
||||||
struct _USBHC_MEM_BLOCK {
|
typedef struct _USBHC_MEM_BLOCK {
|
||||||
UINT8 *Bits; // Bit array to record which unit is allocated
|
UINT8 *Bits; // Bit array to record which unit is allocated
|
||||||
UINTN BitsLen;
|
UINTN BitsLen;
|
||||||
UINT8 *Buf;
|
UINT8 *Buf;
|
||||||
UINT8 *BufHost;
|
UINT8 *BufHost;
|
||||||
UINTN BufLen; // Memory size in bytes
|
UINTN BufLen; // Memory size in bytes
|
||||||
VOID *Mapping;
|
VOID *Mapping;
|
||||||
USBHC_MEM_BLOCK *Next;
|
struct _USBHC_MEM_BLOCK *Next;
|
||||||
};
|
} USBHC_MEM_BLOCK;
|
||||||
|
|
||||||
//
|
//
|
||||||
// USBHC_MEM_POOL is used to manage the memory used by USB
|
// USBHC_MEM_POOL is used to manage the memory used by USB
|
||||||
|
|
Loading…
Reference in New Issue