MdeModulePkg: Apply uncrustify changes
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3737 Apply uncrustify changes to .c/.h files in the MdeModulePkg package Cc: Andrew Fish <afish@apple.com> Cc: Leif Lindholm <leif@nuviainc.com> Cc: Michael D Kinney <michael.d.kinney@intel.com> Signed-off-by: Michael Kubacki <michael.kubacki@microsoft.com> Reviewed-by: Liming Gao <gaoliming@byosoft.com.cn>
This commit is contained in:
committed by
mergify[bot]
parent
7c7184e201
commit
1436aea4d5
@@ -10,7 +10,6 @@ SPDX-License-Identifier: BSD-2-Clause-Patent
|
||||
#ifndef _EFI_UHCI_SCHED_H_
|
||||
#define _EFI_UHCI_SCHED_H_
|
||||
|
||||
|
||||
#define UHCI_ASYNC_INT_SIGNATURE SIGNATURE_32 ('u', 'h', 'c', 'a')
|
||||
//
|
||||
// The failure mask for USB transfer return status. If any of
|
||||
@@ -23,7 +22,6 @@ SPDX-License-Identifier: BSD-2-Clause-Patent
|
||||
EFI_USB_ERR_TIMEOUT | EFI_USB_ERR_BITSTUFF | \
|
||||
EFI_USB_ERR_SYSTEM)
|
||||
|
||||
|
||||
//
|
||||
// Structure to return the result of UHCI QH execution.
|
||||
// Result is the final result of the QH's QTD. NextToggle
|
||||
@@ -31,49 +29,48 @@ SPDX-License-Identifier: BSD-2-Clause-Patent
|
||||
// length of data transferred.
|
||||
//
|
||||
typedef struct {
|
||||
UINT32 Result;
|
||||
UINT8 NextToggle;
|
||||
UINTN Complete;
|
||||
UINT32 Result;
|
||||
UINT8 NextToggle;
|
||||
UINTN Complete;
|
||||
} UHCI_QH_RESULT;
|
||||
|
||||
typedef struct _UHCI_ASYNC_REQUEST UHCI_ASYNC_REQUEST;
|
||||
typedef struct _UHCI_ASYNC_REQUEST UHCI_ASYNC_REQUEST;
|
||||
|
||||
//
|
||||
// Structure used to manager the asynchronous interrupt transfers.
|
||||
//
|
||||
struct _UHCI_ASYNC_REQUEST{
|
||||
UINTN Signature;
|
||||
LIST_ENTRY Link;
|
||||
UHCI_ASYNC_REQUEST *Recycle;
|
||||
struct _UHCI_ASYNC_REQUEST {
|
||||
UINTN Signature;
|
||||
LIST_ENTRY Link;
|
||||
UHCI_ASYNC_REQUEST *Recycle;
|
||||
|
||||
//
|
||||
// Endpoint attributes
|
||||
//
|
||||
UINT8 DevAddr;
|
||||
UINT8 EndPoint;
|
||||
BOOLEAN IsLow;
|
||||
UINTN Interval;
|
||||
UINT8 DevAddr;
|
||||
UINT8 EndPoint;
|
||||
BOOLEAN IsLow;
|
||||
UINTN Interval;
|
||||
|
||||
//
|
||||
// Data and UHC structures
|
||||
//
|
||||
UHCI_QH_SW *QhSw;
|
||||
UHCI_TD_SW *FirstTd;
|
||||
UINT8 *Data; // Allocated host memory, not mapped memory
|
||||
UINTN DataLen;
|
||||
VOID *Mapping;
|
||||
UHCI_QH_SW *QhSw;
|
||||
UHCI_TD_SW *FirstTd;
|
||||
UINT8 *Data; // Allocated host memory, not mapped memory
|
||||
UINTN DataLen;
|
||||
VOID *Mapping;
|
||||
|
||||
//
|
||||
// User callback and its context
|
||||
//
|
||||
EFI_ASYNC_USB_TRANSFER_CALLBACK Callback;
|
||||
VOID *Context;
|
||||
EFI_ASYNC_USB_TRANSFER_CALLBACK Callback;
|
||||
VOID *Context;
|
||||
};
|
||||
|
||||
#define UHCI_ASYNC_INT_FROM_LINK(a) \
|
||||
CR (a, UHCI_ASYNC_REQUEST, Link, UHCI_ASYNC_INT_SIGNATURE)
|
||||
|
||||
|
||||
/**
|
||||
Create Frame List Structure.
|
||||
|
||||
@@ -86,7 +83,7 @@ struct _UHCI_ASYNC_REQUEST{
|
||||
**/
|
||||
EFI_STATUS
|
||||
UhciInitFrameList (
|
||||
IN USB_HC_DEV *Uhc
|
||||
IN USB_HC_DEV *Uhc
|
||||
);
|
||||
|
||||
/**
|
||||
@@ -99,10 +96,9 @@ UhciInitFrameList (
|
||||
**/
|
||||
VOID
|
||||
UhciDestoryFrameList (
|
||||
IN USB_HC_DEV *Uhc
|
||||
IN USB_HC_DEV *Uhc
|
||||
);
|
||||
|
||||
|
||||
/**
|
||||
Convert the poll rate to the maxium 2^n that is smaller
|
||||
than Interval.
|
||||
@@ -114,10 +110,9 @@ UhciDestoryFrameList (
|
||||
**/
|
||||
UINTN
|
||||
UhciConvertPollRate (
|
||||
IN UINTN Interval
|
||||
IN UINTN Interval
|
||||
);
|
||||
|
||||
|
||||
/**
|
||||
Link a queue head (for asynchronous interrupt transfer) to
|
||||
the frame list.
|
||||
@@ -128,11 +123,10 @@ UhciConvertPollRate (
|
||||
**/
|
||||
VOID
|
||||
UhciLinkQhToFrameList (
|
||||
USB_HC_DEV *Uhc,
|
||||
UHCI_QH_SW *Qh
|
||||
USB_HC_DEV *Uhc,
|
||||
UHCI_QH_SW *Qh
|
||||
);
|
||||
|
||||
|
||||
/**
|
||||
Unlink QH from the frame list is easier: find all
|
||||
the precedence node, and pointer there next to QhSw's
|
||||
@@ -144,11 +138,10 @@ UhciLinkQhToFrameList (
|
||||
**/
|
||||
VOID
|
||||
UhciUnlinkQhFromFrameList (
|
||||
USB_HC_DEV *Uhc,
|
||||
UHCI_QH_SW *Qh
|
||||
USB_HC_DEV *Uhc,
|
||||
UHCI_QH_SW *Qh
|
||||
);
|
||||
|
||||
|
||||
/**
|
||||
Check the result of the transfer.
|
||||
|
||||
@@ -165,15 +158,14 @@ UhciUnlinkQhFromFrameList (
|
||||
**/
|
||||
EFI_STATUS
|
||||
UhciExecuteTransfer (
|
||||
IN USB_HC_DEV *Uhc,
|
||||
IN UHCI_QH_SW *Qh,
|
||||
IN UHCI_TD_SW *Td,
|
||||
IN UINTN TimeOut,
|
||||
IN BOOLEAN IsLow,
|
||||
OUT UHCI_QH_RESULT *QhResult
|
||||
IN USB_HC_DEV *Uhc,
|
||||
IN UHCI_QH_SW *Qh,
|
||||
IN UHCI_TD_SW *Td,
|
||||
IN UINTN TimeOut,
|
||||
IN BOOLEAN IsLow,
|
||||
OUT UHCI_QH_RESULT *QhResult
|
||||
);
|
||||
|
||||
|
||||
/**
|
||||
Create Async Request node, and Link to List.
|
||||
|
||||
@@ -209,7 +201,6 @@ UhciCreateAsyncReq (
|
||||
IN BOOLEAN IsLow
|
||||
);
|
||||
|
||||
|
||||
/**
|
||||
Delete Async Interrupt QH and TDs.
|
||||
|
||||
@@ -225,13 +216,12 @@ UhciCreateAsyncReq (
|
||||
**/
|
||||
EFI_STATUS
|
||||
UhciRemoveAsyncReq (
|
||||
IN USB_HC_DEV *Uhc,
|
||||
IN UINT8 DevAddr,
|
||||
IN UINT8 EndPoint,
|
||||
OUT UINT8 *Toggle
|
||||
IN USB_HC_DEV *Uhc,
|
||||
IN UINT8 DevAddr,
|
||||
IN UINT8 EndPoint,
|
||||
OUT UINT8 *Toggle
|
||||
);
|
||||
|
||||
|
||||
/**
|
||||
Release all the asynchronous transfers on the lsit.
|
||||
|
||||
@@ -242,10 +232,9 @@ UhciRemoveAsyncReq (
|
||||
**/
|
||||
VOID
|
||||
UhciFreeAllAsyncReq (
|
||||
IN USB_HC_DEV *Uhc
|
||||
IN USB_HC_DEV *Uhc
|
||||
);
|
||||
|
||||
|
||||
/**
|
||||
Interrupt transfer periodic check handler.
|
||||
|
||||
@@ -258,8 +247,8 @@ UhciFreeAllAsyncReq (
|
||||
VOID
|
||||
EFIAPI
|
||||
UhciMonitorAsyncReqList (
|
||||
IN EFI_EVENT Event,
|
||||
IN VOID *Context
|
||||
IN EFI_EVENT Event,
|
||||
IN VOID *Context
|
||||
);
|
||||
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user