|
| AU_EXTERN AU_EXPORT int | AuDriverUnload () |
| |
| void | virtioblk_reset (VirtioCommonCfg *cfg) |
| | virtioblk_reset – reset the device
|
| |
| void | virtioblk_feature_negotiate (VirtioCommonCfg *cfg) |
| | virtioblk_feature_negotiate – check available features of host device and enable only those supported by the driver
|
| |
| void | virtioblk_notify_queu (VirtioCommonCfg *cfg, uint16_t queueIdx) |
| | virtioblk_notify_queue – notify host that new command is present
|
| |
| void | virtioblk_interrupt_handler (int spiID) |
| |
| void | virtioblk_alloc_requestQ (VirtioCommonCfg *cfg) |
| | virtioblk_alloc_requestQ – allocate requestQ of virtio
|
| |
| bool | virtioblk_read (VirtioCommonCfg *cfg, size_t lba, uint64_t buffer, size_t numSector) |
| | virtioblk_read – read data from disc
|
| |
| bool | virtioblk_write (VirtioCommonCfg *cfg, size_t lba, uint64_t buffer, size_t numSector) |
| | virtioblk_write – write data to disc
|
| |
| int | virtblk_read_vdisk (AuVDisk *disk, uint64_t lba, uint32_t count, uint64_t *buffer) |
| |
| int | virtblk_write_vdisk (AuVDisk *disk, uint64_t lba, uint32_t count, uint64_t *buffer) |
| |
| AU_EXTERN AU_EXPORT int | AuDriverMain (AuDriver *drv) |
| |
BSD 2-Clause License
Copyright (c) 2022-2026, Manas Kamal Choudhury All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
- Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
- Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.