kexts: ahci: implement read support for ATA devices
This commit is contained in:
22
kexts/drivers/block/ahci/atapi.c
Normal file
22
kexts/drivers/block/ahci/atapi.c
Normal file
@@ -0,0 +1,22 @@
|
||||
#include <socks/device.h>
|
||||
|
||||
kern_status_t atapi_read_blocks(struct device *dev, sectors_t offset, size_t *count, struct iovec *vec, size_t nvec, socks_flags_t flags)
|
||||
{
|
||||
return KERN_UNSUPPORTED;
|
||||
}
|
||||
|
||||
kern_status_t atapi_write_blocks(struct device *dev, sectors_t offset, size_t *count, struct iovec *vec, size_t nvec, socks_flags_t flags)
|
||||
{
|
||||
return KERN_UNSUPPORTED;
|
||||
}
|
||||
|
||||
kern_status_t atapi_ioctl(struct device *dev, unsigned int req, void *argp)
|
||||
{
|
||||
return KERN_UNSUPPORTED;
|
||||
}
|
||||
|
||||
struct block_device_ops atapi_device_ops = {
|
||||
.read_blocks = atapi_read_blocks,
|
||||
.write_blocks = atapi_write_blocks,
|
||||
.ioctl = atapi_ioctl,
|
||||
};
|
||||
Reference in New Issue
Block a user