XenevaOS
Loading...
Searching...
No Matches
Classes | Macros | Enumerations
virtioblk.h File Reference
#include <aurora.h>
Include dependency graph for virtioblk.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  virtio_blk_req_header_t
 
struct  virtio_blk_req_footer_t
 
struct  virtio_blk_cfg_t
 
struct  virtio_blk_discard_write_zeroes
 
struct  virtio_blk_lifetime
 
struct  virtioblk_dev_config
 
struct  virtioblk_dev_config::virtio_blk_geometry
 
struct  virtioblk_dev_config::virtio_blk_topology
 
struct  virtioblk_dev_config::virtio_blk_zoned_characteristics
 

Macros

#define VIRTIO_BLK_BLOCK_SZ   512
 
#define VIRTIO_BLK_OP_IN   0
 
#define VIRTIO_BLK_OP_OUT   1
 
#define VIRTIO_BLK_T_FLUSH   4
 
#define VIRTIO_BLK_T_GET_ID   8
 
#define VIRTIO_BLK_T_GET_LIFETIME   10
 
#define VIRTIO_BLK_T_DISCARD   11
 
#define VIRTIO_BLK_T_WRITE_ZEROES   13
 
#define VIRTIO_BLK_T_SECURE_ERASE   14
 
#define RQ_BUFFERS   32
 
#define VIRTIO_BLK_F_RO   (1u << 5)
 

Enumerations

enum  { VIRTIO_BLK_S_OK , VIRTIO_BLK_S_IOERR , VIRTIO_BLK_S_UNSUPP }
 

Detailed Description

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:

  1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
  2. 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.

Macro Definition Documentation

◆ RQ_BUFFERS

#define RQ_BUFFERS   32

◆ VIRTIO_BLK_BLOCK_SZ

#define VIRTIO_BLK_BLOCK_SZ   512

◆ VIRTIO_BLK_F_RO

#define VIRTIO_BLK_F_RO   (1u << 5)

◆ VIRTIO_BLK_OP_IN

#define VIRTIO_BLK_OP_IN   0

◆ VIRTIO_BLK_OP_OUT

#define VIRTIO_BLK_OP_OUT   1

◆ VIRTIO_BLK_T_DISCARD

#define VIRTIO_BLK_T_DISCARD   11

◆ VIRTIO_BLK_T_FLUSH

#define VIRTIO_BLK_T_FLUSH   4

◆ VIRTIO_BLK_T_GET_ID

#define VIRTIO_BLK_T_GET_ID   8

◆ VIRTIO_BLK_T_GET_LIFETIME

#define VIRTIO_BLK_T_GET_LIFETIME   10

◆ VIRTIO_BLK_T_SECURE_ERASE

#define VIRTIO_BLK_T_SECURE_ERASE   14

◆ VIRTIO_BLK_T_WRITE_ZEROES

#define VIRTIO_BLK_T_WRITE_ZEROES   13

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
VIRTIO_BLK_S_OK 
VIRTIO_BLK_S_IOERR 
VIRTIO_BLK_S_UNSUPP