~ubuntu-branches/ubuntu/wily/slof/wily

« back to all changes in this revision

Viewing changes to board-qemu/slof/pci-device_1af4_1001.fs

  • Committer: Package Import Robot
  • Author(s): Aurelien Jarno
  • Date: 2012-09-16 23:05:23 UTC
  • Revision ID: package-import@ubuntu.com-20120916230523-r2ynulqmp2tyu2e5
Tags: upstream-20120217+dfsg
ImportĀ upstreamĀ versionĀ 20120217+dfsg

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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
 
8
\ *
 
9
\ * Contributors:
 
10
\ *     IBM Corporation - initial implementation
 
11
\ ****************************************************************************/
 
12
 
 
13
\ Handle virtio-blk device
 
14
 
 
15
s" virtio [ block ]" type cr
 
16
 
 
17
my-space pci-device-generic-setup
 
18
 
 
19
pci-master-enable
 
20
pci-mem-enable
 
21
pci-io-enable
 
22
 
 
23
s" virtio-block.fs" included
 
24
 
 
25
\ Allocate memory for virtio queue:
 
26
virtiodev 0 virtio-get-qsize virtio-vring-size
 
27
1000 CLAIM VALUE queue-addr
 
28
 
 
29
\ Write queue address into device:
 
30
queue-addr c rshift
 
31
virtiodev vd>base @ 8 +
 
32
rl!-le
 
33
 
 
34
pci-device-disable