1  /*
2   * Copyright (c) 2014 Travis Geiselbrecht
3   *
4   * Use of this source code is governed by a MIT-style
5   * license that can be found in the LICENSE file or at
6   * https://opensource.org/licenses/MIT
7   */
8  #pragma once
9  
10  #include <lk/compiler.h>
11  #include <sys/types.h>
12  #include <dev/virtio.h>
13  
14  status_t virtio_block_init(struct virtio_device *dev, uint32_t host_features) __NONNULL();
15  
16  ssize_t virtio_block_read_write(struct virtio_device *dev, void *buf, off_t offset, size_t len, bool write) __NONNULL();
17  
18