MicrOS
partition.h
Go to the documentation of this file.
1
#ifndef PARTITION_H
2
#define PARTITION_H
3
4
#include "
filesystem_type.h
"
5
#include "
device_type.h
"
6
7
typedef
struct
partition
8
{
9
char
symbol
;
10
11
filesystem_type
type
;
12
fat_header
*
header
;
13
14
device_type
device_type
;
15
int
device_number
;
16
void (*
write_on_device
)(
int
device_number
,
int
sector, uint8_t *data);
17
uint8_t *(*read_from_device)(
int
device_number
,
int
sector,
int
count);
18
19
uint8_t *
fat
;
20
fat_directory_entry
*
root
;
21
22
int
first_sector
;
23
uint32_t
fat_length
;
24
uint32_t
directory_length
;
25
26
int
end_cluster_mark
;
27
int
last_valid_cluster_mark
;
28
}
partition
;
29
30
#endif
fat_header
Definition:
fat_header.h:6
partition::last_valid_cluster_mark
int last_valid_cluster_mark
Definition:
partition.h:27
partition
Definition:
partition.h:7
partition::directory_length
uint32_t directory_length
Definition:
partition.h:24
partition::device_number
int device_number
Definition:
partition.h:15
partition::fat_length
uint32_t fat_length
Definition:
partition.h:23
partition::header
fat_header * header
Definition:
partition.h:12
partition::symbol
char symbol
Definition:
partition.h:9
filesystem_type
filesystem_type
Definition:
filesystem_type.h:4
device_type.h
partition::type
filesystem_type type
Definition:
partition.h:11
filesystem_type.h
partition::write_on_device
void(* write_on_device)(int device_number, int sector, uint8_t *data)
Definition:
partition.h:16
partition::root
fat_directory_entry * root
Definition:
partition.h:20
partition::fat
uint8_t * fat
Definition:
partition.h:19
partition::first_sector
int first_sector
Definition:
partition.h:22
device_type
device_type
Definition:
device_type.h:4
partition::device_type
device_type device_type
Definition:
partition.h:14
uint32_t
size_t uint32_t
Unsigned integral type.
Definition:
string.h:8
partition::end_cluster_mark
int end_cluster_mark
Definition:
partition.h:26
fat_directory_entry
Definition:
fat_directory_entry.h:61
os
kernel
src
filesystems
partitions
partition.h
Generated by
1.8.13