pang-o-lin/include/fat12.h
Sean Cross 5fb4ea8474 commit some source
Signed-off-by: Sean Cross <sean@xobs.io>
2019-06-03 09:57:25 +08:00

14 lines
390 B
C

#ifndef PANG_O_LIN_FAT12_H__
#define PANG_O_LIN_FAT12_H__
#include <stdint.h>
void fat12_write_u16(void *ptr, uint16_t val);
uint16_t fat12_read_u16(void *ptr);
void fat12_set_cluster(void *fat, uint32_t cluster, uint32_t value);
uint32_t fat12_get_cluster(void *fat, uint32_t cluster);
int fat12_defrag(int fd);
int fat12_mkfs(int fd, uint32_t bytes);
#endif /* PANG_O_LIN_FAT12_H__ */