VirtualBox

忽略:
時間撮記:
2023-4-14 下午03:17:44 (2 年 以前)
作者:
vboxsync
svn:sync-xref-src-repo-rev:
156854
訊息:

Devices/EFI/FirmwareNew: Update to edk2-stable202302 and make it build, bugref:4643

位置:
trunk/src/VBox/Devices/EFI/FirmwareNew
檔案:
修改 2 筆資料

圖例:

未更動
新增
刪除
  • trunk/src/VBox/Devices/EFI/FirmwareNew

  • trunk/src/VBox/Devices/EFI/FirmwareNew/MdePkg/Include/Protocol/UsbIo.h

    r80721 r99404  
    2424  }
    2525
    26 typedef struct _EFI_USB_IO_PROTOCOL   EFI_USB_IO_PROTOCOL;
     26typedef struct _EFI_USB_IO_PROTOCOL EFI_USB_IO_PROTOCOL;
    2727
    2828//
     
    3333// USB standard descriptors and reqeust
    3434//
    35 typedef USB_DEVICE_REQUEST        EFI_USB_DEVICE_REQUEST;
    36 typedef USB_DEVICE_DESCRIPTOR     EFI_USB_DEVICE_DESCRIPTOR;
    37 typedef USB_CONFIG_DESCRIPTOR     EFI_USB_CONFIG_DESCRIPTOR;
    38 typedef USB_INTERFACE_DESCRIPTOR  EFI_USB_INTERFACE_DESCRIPTOR;
    39 typedef USB_ENDPOINT_DESCRIPTOR   EFI_USB_ENDPOINT_DESCRIPTOR;
     35typedef USB_DEVICE_REQUEST       EFI_USB_DEVICE_REQUEST;
     36typedef USB_DEVICE_DESCRIPTOR    EFI_USB_DEVICE_DESCRIPTOR;
     37typedef USB_CONFIG_DESCRIPTOR    EFI_USB_CONFIG_DESCRIPTOR;
     38typedef USB_INTERFACE_DESCRIPTOR EFI_USB_INTERFACE_DESCRIPTOR;
     39typedef USB_ENDPOINT_DESCRIPTOR  EFI_USB_ENDPOINT_DESCRIPTOR;
    4040
    4141///
     
    5151// USB Transfer Results
    5252//
    53 #define EFI_USB_NOERROR             0x00
    54 #define EFI_USB_ERR_NOTEXECUTE      0x01
    55 #define EFI_USB_ERR_STALL           0x02
    56 #define EFI_USB_ERR_BUFFER          0x04
    57 #define EFI_USB_ERR_BABBLE          0x08
    58 #define EFI_USB_ERR_NAK             0x10
    59 #define EFI_USB_ERR_CRC             0x20
    60 #define EFI_USB_ERR_TIMEOUT         0x40
    61 #define EFI_USB_ERR_BITSTUFF        0x80
    62 #define EFI_USB_ERR_SYSTEM          0x100
     53#define EFI_USB_NOERROR         0x00
     54#define EFI_USB_ERR_NOTEXECUTE  0x01
     55#define EFI_USB_ERR_STALL       0x02
     56#define EFI_USB_ERR_BUFFER      0x04
     57#define EFI_USB_ERR_BABBLE      0x08
     58#define EFI_USB_ERR_NAK         0x10
     59#define EFI_USB_ERR_CRC         0x20
     60#define EFI_USB_ERR_TIMEOUT     0x40
     61#define EFI_USB_ERR_BITSTUFF    0x80
     62#define EFI_USB_ERR_SYSTEM      0x100
    6363
    6464/**
     
    8888// Prototype for EFI USB I/O protocol
    8989//
    90 
    9190
    9291/**
     
    107106  @retval EFI_SUCCESS           The control transfer has been successfully executed.
    108107  @retval EFI_DEVICE_ERROR      The transfer failed. The transfer status is returned in Status.
    109   @retval EFI_INVALID_PARAMETE  One or more parameters are invalid.
     108  @retval EFI_INVALID_PARAMETER One or more parameters are invalid.
    110109  @retval EFI_OUT_OF_RESOURCES  The request could not be completed due to a lack of resources.
    111110  @retval EFI_TIMEOUT           The control transfer fails due to timeout.
     
    150149  @retval EFI_SUCCESS           The bulk transfer has been successfully executed.
    151150  @retval EFI_DEVICE_ERROR      The transfer failed. The transfer status is returned in Status.
    152   @retval EFI_INVALID_PARAMETE  One or more parameters are invalid.
     151  @retval EFI_INVALID_PARAMETER One or more parameters are invalid.
    153152  @retval EFI_OUT_OF_RESOURCES  The request could not be submitted due to a lack of resources.
    154153  @retval EFI_TIMEOUT           The control transfer fails due to timeout.
     
    479478  // IO transfer
    480479  //
    481   EFI_USB_IO_CONTROL_TRANSFER           UsbControlTransfer;
    482   EFI_USB_IO_BULK_TRANSFER              UsbBulkTransfer;
    483   EFI_USB_IO_ASYNC_INTERRUPT_TRANSFER   UsbAsyncInterruptTransfer;
    484   EFI_USB_IO_SYNC_INTERRUPT_TRANSFER    UsbSyncInterruptTransfer;
    485   EFI_USB_IO_ISOCHRONOUS_TRANSFER       UsbIsochronousTransfer;
    486   EFI_USB_IO_ASYNC_ISOCHRONOUS_TRANSFER UsbAsyncIsochronousTransfer;
     480  EFI_USB_IO_CONTROL_TRANSFER              UsbControlTransfer;
     481  EFI_USB_IO_BULK_TRANSFER                 UsbBulkTransfer;
     482  EFI_USB_IO_ASYNC_INTERRUPT_TRANSFER      UsbAsyncInterruptTransfer;
     483  EFI_USB_IO_SYNC_INTERRUPT_TRANSFER       UsbSyncInterruptTransfer;
     484  EFI_USB_IO_ISOCHRONOUS_TRANSFER          UsbIsochronousTransfer;
     485  EFI_USB_IO_ASYNC_ISOCHRONOUS_TRANSFER    UsbAsyncIsochronousTransfer;
    487486
    488487  //
    489488  // Common device request
    490489  //
    491   EFI_USB_IO_GET_DEVICE_DESCRIPTOR      UsbGetDeviceDescriptor;
    492   EFI_USB_IO_GET_CONFIG_DESCRIPTOR      UsbGetConfigDescriptor;
    493   EFI_USB_IO_GET_INTERFACE_DESCRIPTOR   UsbGetInterfaceDescriptor;
    494   EFI_USB_IO_GET_ENDPOINT_DESCRIPTOR    UsbGetEndpointDescriptor;
    495   EFI_USB_IO_GET_STRING_DESCRIPTOR      UsbGetStringDescriptor;
    496   EFI_USB_IO_GET_SUPPORTED_LANGUAGE     UsbGetSupportedLanguages;
     490  EFI_USB_IO_GET_DEVICE_DESCRIPTOR         UsbGetDeviceDescriptor;
     491  EFI_USB_IO_GET_CONFIG_DESCRIPTOR         UsbGetConfigDescriptor;
     492  EFI_USB_IO_GET_INTERFACE_DESCRIPTOR      UsbGetInterfaceDescriptor;
     493  EFI_USB_IO_GET_ENDPOINT_DESCRIPTOR       UsbGetEndpointDescriptor;
     494  EFI_USB_IO_GET_STRING_DESCRIPTOR         UsbGetStringDescriptor;
     495  EFI_USB_IO_GET_SUPPORTED_LANGUAGE        UsbGetSupportedLanguages;
    497496
    498497  //
    499498  // Reset controller's parent port
    500499  //
    501   EFI_USB_IO_PORT_RESET                 UsbPortReset;
     500  EFI_USB_IO_PORT_RESET                    UsbPortReset;
    502501};
    503502
    504 extern EFI_GUID gEfiUsbIoProtocolGuid;
     503extern EFI_GUID  gEfiUsbIoProtocolGuid;
    505504
    506505#endif
注意: 瀏覽 TracChangeset 來幫助您使用更動檢視器

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette