Files
mop3/kernel/device/storage/partdrv.h
kamkow1 c8fb575bdd
All checks were successful
Build ISO image / build-and-deploy (push) Successful in 2m7s
Build documentation / build-and-deploy (push) Successful in 39s
Change formatting rules
2026-04-24 01:54:48 +02:00

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