1
\ *****************************************************************************
2
\ * Copyright (c) 2011 IBM Corporation
3
\ * All rights reserved.
4
\ * This program and the accompanying materials
5
\ * are made available under the terms of the BSD License
6
\ * which accompanies this distribution, and is available at
7
\ * http://www.opensource.org/licenses/bsd-license.php
10
\ * IBM Corporation - initial implementation
11
\ ****************************************************************************/
13
\ Handle virtio-blk device
15
s" virtio [ block ]" type cr
17
my-space pci-device-generic-setup
23
s" virtio-block.fs" included
25
\ Allocate memory for virtio queue:
26
virtiodev 0 virtio-get-qsize virtio-vring-size
27
1000 CLAIM VALUE queue-addr
29
\ Write queue address into device:
31
virtiodev vd>base @ 8 +