GitOS
Operating system exercise
|
#include <stdint.h>
Go to the source code of this file.
Data Structures | |
struct | disk |
struct | partition_entry |
Macros | |
#define | DISK_TYPE_REAL 0 |
Represents a real physical hard disk. | |
#define | DISK_SECTOR_SIZE 512 |
Represents disk sector size. | |
Typedefs | |
typedef unsigned int | DISK_TYPE |
Functions | |
struct partition_entry | __attribute__ ((packed)) |
void | disk_search_and_init () |
int | disk_read_block (struct disk *disk, unsigned int lba, int total, void *buf) |
struct disk * | disk_get (int index) |
Variables | |
uint8_t | status |
uint8_t | chs_first [3] |
uint8_t | type |
uint8_t | chs_last [3] |
uint32_t | starting_lba |
uint32_t | size_in_sectors |
#define DISK_SECTOR_SIZE 512 |
Represents disk sector size.
#define DISK_TYPE_REAL 0 |
Represents a real physical hard disk.
typedef unsigned int DISK_TYPE |
struct partition_entry __attribute__ | ( | (packed) | ) |
struct disk * disk_get | ( | int | index | ) |
References primary_disk.
int disk_read_block | ( | struct disk * | disk, |
unsigned int | lba, | ||
int | total, | ||
void * | buf | ||
) |
References EIO, and primary_disk.
void disk_search_and_init | ( | ) |
References DISK_SECTOR_SIZE, disk::disk_type, DISK_TYPE_REAL, disk::filesystem, fs_resolve(), disk::id, memset(), primary_disk, and disk::sector_size.
uint8_t chs_first[3] |
uint8_t chs_last[3] |
uint32_t size_in_sectors |
uint32_t starting_lba |
uint8_t status |
uint8_t type |