/** @file\r
\r
Copyright (c) 2014 - 2019, Intel Corporation. All rights reserved.<BR>\r
+ Copyright (c) Microsoft Corporation.<BR>\r
SPDX-License-Identifier: BSD-2-Clause-Patent\r
\r
**/\r
// Cleanup the resources of I/O requests in the async I/O queue\r
//\r
if (!IsListEmpty(&Private->Queue)) {\r
- EFI_LIST_FOR_EACH_SAFE (Entry, NextEntry, &Private->Queue) {\r
+ BASE_LIST_FOR_EACH_SAFE (Entry, NextEntry, &Private->Queue) {\r
TransReq = UFS_PASS_THRU_TRANS_REQ_FROM_THIS (Entry);\r
\r
//\r
/** @file\r
\r
Copyright (c) 2014 - 2019, Intel Corporation. All rights reserved.<BR>\r
+ Copyright (c) Microsoft Corporation.<BR>\r
SPDX-License-Identifier: BSD-2-Clause-Patent\r
\r
**/\r
UINT16 Rsvd:4;\r
} UFS_EXPOSED_LUNS;\r
\r
-//\r
-// Iterate through the double linked list. This is delete-safe.\r
-// Do not touch NextEntry\r
-//\r
-#define EFI_LIST_FOR_EACH_SAFE(Entry, NextEntry, ListHead) \\r
- for(Entry = (ListHead)->ForwardLink, NextEntry = Entry->ForwardLink;\\r
- Entry != (ListHead); Entry = NextEntry, NextEntry = Entry->ForwardLink)\r
-\r
typedef struct _UFS_PASS_THRU_PRIVATE_DATA {\r
UINT32 Signature;\r
EFI_HANDLE Handle;\r
for upper layer application to execute UFS-supported SCSI cmds.\r
\r
Copyright (c) 2014 - 2019, Intel Corporation. All rights reserved.<BR>\r
+ Copyright (c) Microsoft Corporation.<BR>\r
SPDX-License-Identifier: BSD-2-Clause-Patent\r
\r
**/\r
// Check the entries in the async I/O queue are done or not.\r
//\r
if (!IsListEmpty(&Private->Queue)) {\r
- EFI_LIST_FOR_EACH_SAFE (Entry, NextEntry, &Private->Queue) {\r
+ BASE_LIST_FOR_EACH_SAFE (Entry, NextEntry, &Private->Queue) {\r
TransReq = UFS_PASS_THRU_TRANS_REQ_FROM_THIS (Entry);\r
Packet = TransReq->Packet;\r
\r