Implement an ATA driver, Add vfsmount/vfsunmount syscalls
This commit is contained in:
@ -4,6 +4,8 @@
|
||||
#include <stdint.h>
|
||||
#include <stddef.h>
|
||||
|
||||
#define STOREDEV_RAMSD_SECTORSIZE 512
|
||||
|
||||
struct StoreDev;
|
||||
|
||||
typedef struct {
|
||||
@ -17,8 +19,8 @@ typedef struct {
|
||||
} RamSdInitExtra;
|
||||
|
||||
int32_t ramsd_init(struct StoreDev *sd, void *extra);
|
||||
int32_t ramsd_read(struct StoreDev *sd, uint8_t *const buffer, size_t n, size_t off);
|
||||
int32_t ramsd_write(struct StoreDev *sd, const uint8_t *const buffer, size_t n, size_t off);
|
||||
int32_t ramsd_read(struct StoreDev *sd, uint8_t *const buffer, ptrdiff_t sector, ptrdiff_t off, size_t size);
|
||||
int32_t ramsd_write(struct StoreDev *sd, const uint8_t *const buffer, ptrdiff_t sector, ptrdiff_t off, size_t size);
|
||||
int32_t ramsd_cleanup(struct StoreDev *sd);
|
||||
size_t ramsd_capacity(struct StoreDev *sd);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user