| /* |
| * Copyright (c) 2026 The Fuchsia Authors |
| * |
| * SPDX-License-Identifier: BSD-3-Clause |
| */ |
| |
| #include <efi_api.h> |
| #include <gbl_efi_common.h> |
| |
| #define GBL_EFI_FASTBOOT_TRANSPORT_PROTOCOL_REVISION GBL_PROTOCOL_REVISION(1, 0) |
| |
| #define GBL_EFI_FASTBOOT_TRANSPORT_PROTOCOL_GUID \ |
| EFI_GUID(0xedade92c, 0x5c48, 0x440d, 0x84, 0x9c, 0xe2, 0xa0, 0xc7, \ |
| 0xe5, 0x51, 0x43) |
| |
| EFI_ENUM(GblEfiFastbootRxMode, uint32_t, |
| SINGLE_PACKET = 0, |
| FIXED_LENGTH); |
| |
| typedef struct GblEfiFastbootTransportProtocol { |
| uint64_t revision; |
| const char *description; |
| efi_status_t (*start)(struct GblEfiFastbootTransportProtocol *self); |
| efi_status_t (*stop)(struct GblEfiFastbootTransportProtocol *self); |
| efi_status_t (*receive)(struct GblEfiFastbootTransportProtocol *self, |
| size_t *buffer_size, void *buffer, |
| GblEfiFastbootRxMode mode); |
| efi_status_t (*send)(struct GblEfiFastbootTransportProtocol *self, |
| size_t *buffer_size, const void *buffer); |
| efi_status_t (*flush)(struct GblEfiFastbootTransportProtocol *self); |
| } GblEfiFastbootTransportProtocol; |