Use macro wrappers for device op prototypes
All checks were successful
Build documentation / build-and-deploy (push) Successful in 3m35s
All checks were successful
Build documentation / build-and-deploy (push) Successful in 3m35s
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
#ifndef _KERNEL_DEVICE_IDEDRV_H
|
||||
#define _KERNEL_DEVICE_IDEDRV_H
|
||||
|
||||
#include <device/def_device_op.h>
|
||||
#include <libk/list.h>
|
||||
#include <libk/std.h>
|
||||
#include <proc/proc.h>
|
||||
@@ -53,24 +54,19 @@ struct ide_probe {
|
||||
bool irqs_support;
|
||||
};
|
||||
|
||||
bool idedrv_init (struct device* device, void* arg, struct proc* proc, struct reschedule_ctx* rctx);
|
||||
DEFINE_DEVICE_INIT (idedrv_init);
|
||||
|
||||
void idedrv_fini (struct device* device, struct proc* proc, struct reschedule_ctx* rctx);
|
||||
DEFINE_DEVICE_FINI (idedrv_fini);
|
||||
|
||||
int idedrv_read (struct device* device, struct proc* proc, struct reschedule_ctx* rctx,
|
||||
uint64_t* lockflags, void* a1, void* a2, void* a3, void* a4);
|
||||
DEFINE_DEVICE_OP (idedrv_read);
|
||||
|
||||
int idedrv_write (struct device* device, struct proc* proc, struct reschedule_ctx* rctx,
|
||||
uint64_t* lockflags, void* a1, void* a2, void* a3, void* a4);
|
||||
DEFINE_DEVICE_OP (idedrv_write);
|
||||
|
||||
int idedrv_get_device_type (struct device* device, struct proc* proc, struct reschedule_ctx* rctx,
|
||||
uint64_t* lockflags, void* a1, void* a2, void* a3, void* a4);
|
||||
DEFINE_DEVICE_OP (idedrv_get_device_type);
|
||||
|
||||
int idedrv_get_sector_size (struct device* device, struct proc* proc, struct reschedule_ctx* rctx,
|
||||
uint64_t* lockflags, void* a1, void* a2, void* a3, void* a4);
|
||||
DEFINE_DEVICE_OP (idedrv_get_sector_size);
|
||||
|
||||
int idedrv_get_size (struct device* device, struct proc* proc, struct reschedule_ctx* rctx,
|
||||
uint64_t* lockflags, void* a1, void* a2, void* a3, void* a4);
|
||||
DEFINE_DEVICE_OP (idedrv_get_size);
|
||||
|
||||
void ide_probe (uint16_t io, uint16_t ctrl, uint8_t devno, struct ide_probe* probe);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user