|
|
1.1 ! root 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-fs device ! 14: ! 15: s" virtio [ network ]" 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-fs.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
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.