44#ifndef _PHYSICAL_DRIVE_H_
45#define _PHYSICAL_DRIVE_H_
52#include "generic_pointer.h"
72#define PDS_OK ((uint8_t)0)
77#define PDS_GENERAL_ERROR ((uint8_t)1)
82#define PDS_NOT_IMPLEMENTED ((uint8_t)2)
84typedef uint8_t pd_status_t;
96 PD_TYPE_UNINITIALIZED = 0,
98} physical_drive_type_t;
pd_status_t physical_drive_write(physical_drive_t *physical_drive, const void *__generic_ptr buffer, unsigned long long addr, unsigned long long size)
Read from a Hardware Memory Module.
pd_status_t physical_drive_read(physical_drive_t *physical_drive, void *buffer, unsigned long long addr, unsigned long long size)
Write to a Hardware Memory Module.
pd_status_t physical_drive_init(physical_drive_t *physical_drive)
Initialize a Hardware memory module.
Physical Drive Base Data Structure Reference.
Definition physical_drive.h:127
uint8_t error
Definition physical_drive.h:134
physical_drive_type_t type
Definition physical_drive.h:129
uint32_t sector_count
Definition physical_drive.h:130
uint16_t sector_size
Definition physical_drive.h:131
uint16_t erase_block_size
Definition physical_drive.h:132
uint8_t volumes
Definition physical_drive.h:133
physical_drive_vector_table_t * vtptr
Definition physical_drive.h:128
Physical Drive Vector Table.
Definition pd_common.h:62