Turnstone Operating System
|
efi disk implementation. More...
#include <setup.h>
Classes | |
struct | efi_disk_impl_context_t |
efi disk implementation context. More... | |
Typedefs | |
typedef struct efi_disk_impl_context_t | efi_disk_impl_context_t |
typedef for efi_disk_impl_context_t. | |
Functions | |
MODULE ("turnstone.efi") | |
memory_heap_t * | efi_disk_impl_get_heap (const disk_or_partition_t *d) |
returns heap. More... | |
uint64_t | efi_disk_impl_get_disk_size (const disk_or_partition_t *d) |
returns disk size. More... | |
uint64_t | efi_disk_impl_get_block_size (const disk_or_partition_t *d) |
returns block size. More... | |
int8_t | efi_disk_impl_write (const disk_or_partition_t *d, uint64_t lba, uint64_t count, uint8_t *data) |
writes data to disk. More... | |
int8_t | efi_disk_impl_read (const disk_or_partition_t *d, uint64_t lba, uint64_t count, uint8_t **data) |
reads data from disk. More... | |
int8_t | efi_disk_impl_close (const disk_or_partition_t *d) |
closes and frees disk. More... | |
int8_t | efi_disk_impl_flush (const disk_or_partition_t *d) |
flushes disk. More... | |
disk_t * | efi_disk_impl_open (efi_block_io_t *bio) |
opens an efi protocol based disk More... | |
efi disk implementation.
uses efi block io protocol to implement disk methods.
This work is licensed under TURNSTONE OS Public License. Please read and understand latest version of Licence.
int8_t efi_disk_impl_close | ( | const disk_or_partition_t * | d | ) |
closes and frees disk.
[in] | d | disk or partition. |
int8_t efi_disk_impl_flush | ( | const disk_or_partition_t * | d | ) |
flushes disk.
[in] | d | disk or partition. |
uint64_t efi_disk_impl_get_block_size | ( | const disk_or_partition_t * | d | ) |
returns block size.
[in] | d | disk or partition. |
uint64_t efi_disk_impl_get_disk_size | ( | const disk_or_partition_t * | d | ) |
returns disk size.
[in] | d | disk or partition. |
memory_heap_t * efi_disk_impl_get_heap | ( | const disk_or_partition_t * | d | ) |
returns heap.
[in] | d | disk or partition. |
disk_t * efi_disk_impl_open | ( | efi_block_io_t * | bio | ) |
opens an efi protocol based disk
[in] | bio | efi block io protocol |
int8_t efi_disk_impl_read | ( | const disk_or_partition_t * | d, |
uint64_t | lba, | ||
uint64_t | count, | ||
uint8_t ** | data | ||
) |
reads data from disk.
[in] | d | disk or partition. |
[in] | lba | logical block address. |
[in] | count | number of blocks to read. |
[out] | data | data to read. |
int8_t efi_disk_impl_write | ( | const disk_or_partition_t * | d, |
uint64_t | lba, | ||
uint64_t | count, | ||
uint8_t * | data | ||
) |
writes data to disk.
[in] | d | disk or partition. |
[in] | lba | logical block address. |
[in] | count | number of blocks to write. |
[in] | data | data to write. |
MODULE | ( | "turnstone.efi" | ) |
module name