Lines Matching defs:vsic
15 #include <storage/vsic.h>
25 static errval_t vsic_write(struct storage_vsic *vsic, struct storage_vsa *vsa,
28 assert(vsic != NULL);
31 struct ahci_vsic *mydata = vsic->data;
35 write_dma(&mydata->ata_rw28_rpc, buffer, STORAGE_VSIC_ROUND(vsic, size),
47 static errval_t vsic_read(struct storage_vsic *vsic, struct storage_vsa *vsa,
50 assert(vsic != NULL);
53 struct ahci_vsic *mydata = vsic->data;
55 size_t bytes_read, toread = STORAGE_VSIC_ROUND(vsic, size);
70 static errval_t vsic_flush(struct storage_vsic *vsic, struct storage_vsa *vsa)
72 assert(vsic != NULL);
74 struct ahci_vsic *mydata = vsic->data;
84 static errval_t vsic_wait(struct storage_vsic *vsic)
106 static errval_t ahci_vsic_alloc(struct storage_vsic *vsic, uint8_t port)
108 assert(vsic != NULL);
135 vsic->ops = ahci_vsic_ops;
136 vsic->data = mydata;
137 vsic->blocksize = 512; // XXX: Determine from drive?
143 struct storage_vsic *vsic)
149 return ahci_vsic_alloc(vsic, 0);