40 lines
717 B
C
40 lines
717 B
C
#ifndef _KERNEL_DEVICE_PARTDRV_H
|
|
#define _KERNEL_DEVICE_PARTDRV_H
|
|
|
|
#include <device/def_device_op.h>
|
|
#include <libk/std.h>
|
|
#include <proc/proc.h>
|
|
#include <proc/reschedule.h>
|
|
|
|
struct device;
|
|
|
|
struct partdrv_init {
|
|
struct device* super;
|
|
size_t start_sector;
|
|
size_t total_size;
|
|
};
|
|
|
|
struct partdrv {
|
|
struct device* super;
|
|
size_t start_sector;
|
|
size_t total_size;
|
|
};
|
|
|
|
DEFINE_DEVICE_INIT(partdrv_init);
|
|
|
|
DEFINE_DEVICE_FINI(partdrv_fini);
|
|
|
|
DEFINE_DEVICE_OP(partdrv_read);
|
|
|
|
DEFINE_DEVICE_OP(partdrv_write);
|
|
|
|
DEFINE_DEVICE_OP(partdrv_get_device_type);
|
|
|
|
DEFINE_DEVICE_OP(partdrv_get_sector_size);
|
|
|
|
DEFINE_DEVICE_OP(partdrv_get_size);
|
|
|
|
DEFINE_DEVICE_OP(partdrv_partition_rescan);
|
|
|
|
#endif // _KERNEL_DEVICE_PARTDRV_H
|