mirror of
https://review.haiku-os.org/haiku
synced 2025-02-19 12:09:30 +01:00
* Drop gnu-efi Change-Id: Ib601fc8ced49b18281b6b98cf861a5aef1b9c065 Reviewed-on: https://review.haiku-os.org/c/haiku/+/2026 Reviewed-by: Alex von Gluck IV <kallisti5@unixzen.com> Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
29 lines
969 B
C
29 lines
969 B
C
// Copyright 2016 The Fuchsia Authors. All rights reserved.
|
|
// Use of this source code is governed by a BSD-style license that can be
|
|
// found in the LICENSE file.
|
|
|
|
#pragma once
|
|
|
|
#include <efi/types.h>
|
|
#include <efi/boot-services.h>
|
|
#include <efi/runtime-services.h>
|
|
|
|
#define EFI_DISK_IO_PROTOCOL_GUID \
|
|
{0xCE345171, 0xBA0B, 0x11d2, {0x8e, 0x4F, 0x00, 0xa0, 0xc9, 0x69, 0x72, 0x3b}}
|
|
|
|
extern efi_guid DiskIoProtocol;
|
|
|
|
#define EFI_DISK_IO_PROTOCOL_REVISION 0x00010000
|
|
|
|
typedef struct efi_disk_io_protocol efi_disk_io_protocol;
|
|
|
|
struct efi_disk_io_protocol {
|
|
uint64_t Revision;
|
|
efi_status (*ReadDisk)(efi_disk_io_protocol* self,
|
|
uint32_t MediaId, uint64_t Offset,
|
|
uint64_t BufferSize, void* Buffer) EFIAPI;
|
|
efi_status (*WriteDisk)(efi_disk_io_protocol* self,
|
|
uint32_t MediaId, uint64_t Offset,
|
|
uint64_t BufferSize, const void* Buffer) EFIAPI;
|
|
};
|