Files
Pete Batard 03f36b8fcf Platforms/RPi3: Restructure platform in preparation for Pi 4
In preparation for adding Raspberry Pi 4 support, the Pi 3 platform
is restructured by factorizing all the drivers and libraries that are
going to be commonly used by the two platforms.

Because much of the Pi 4 SoC is an extension of the Pi 3 one this
means that almost everything, except the ACPI tables, is moved up
into a new common RaspberryPi/ subdirectory that will serve both
platforms. The .dec is also moved to this directory, under a new
RaspberryPi.dec name, and existing references to it are updated.

This commit requires the edk2-non-osi in use to contain commit 243e55f622ea
in order to build.

Signed-off-by: Pete Batard <pete@akeo.ie>
Reviewed-by: Philippe Mathieu-Daude <philmd@redhat.com>
Reviewed-by: Leif Lindholm <leif.lindholm@linaro.org>
2019-10-21 15:32:32 +01:00

48 lines
1.0 KiB
C

/** @file
*
* Copyright (c) 2015-2016, Linaro. All rights reserved.
* Copyright (c) 2015-2016, Hisilicon Limited. All rights reserved.
*
* SPDX-License-Identifier: BSD-2-Clause-Patent
*
**/
#ifndef __DW_USB_PROTOCOL_H__
#define __DW_USB_PROTOCOL_H__
//
// Protocol GUID
//
#define DW_USB_PROTOCOL_GUID { 0x109fa264, 0x7811, 0x4862, { 0xa9, 0x73, 0x4a, 0xb2, 0xef, 0x2e, 0xe2, 0xff }}
//
// Protocol interface structure
//
typedef struct _DW_USB_PROTOCOL DW_USB_PROTOCOL;
#define USB_HOST_MODE 0
#define USB_DEVICE_MODE 1
#define USB_CABLE_NOT_ATTACHED 2
typedef
EFI_STATUS
(EFIAPI *DW_USB_GET_SERIAL_NO) (
OUT CHAR16 *SerialNo,
OUT UINT8 *Length
);
typedef
EFI_STATUS
(EFIAPI *DW_USB_PHY_INIT) (
IN UINT8 Mode
);
struct _DW_USB_PROTOCOL {
DW_USB_GET_SERIAL_NO Get;
DW_USB_PHY_INIT PhyInit;
};
extern EFI_GUID gDwUsbProtocolGuid;
#endif /* __DW_USB_PROTOCOL_H__ */