summaryrefslogtreecommitdiffstats
path: root/qemu/roms/SLOF/slof/fs/devices
diff options
context:
space:
mode:
authorRajithaY <rajithax.yerrumsetty@intel.com>2017-04-25 03:31:15 -0700
committerRajitha Yerrumchetty <rajithax.yerrumsetty@intel.com>2017-05-22 06:48:08 +0000
commitbb756eebdac6fd24e8919e2c43f7d2c8c4091f59 (patch)
treeca11e03542edf2d8f631efeca5e1626d211107e3 /qemu/roms/SLOF/slof/fs/devices
parenta14b48d18a9ed03ec191cf16b162206998a895ce (diff)
Adding qemu as a submodule of KVMFORNFV
This Patch includes the changes to add qemu as a submodule to kvmfornfv repo and make use of the updated latest qemu for the execution of all testcase Change-Id: I1280af507a857675c7f81d30c95255635667bdd7 Signed-off-by:RajithaY<rajithax.yerrumsetty@intel.com>
Diffstat (limited to 'qemu/roms/SLOF/slof/fs/devices')
-rw-r--r--qemu/roms/SLOF/slof/fs/devices/pci-class_02.fs37
-rw-r--r--qemu/roms/SLOF/slof/fs/devices/pci-class_0c.fs71
-rw-r--r--qemu/roms/SLOF/slof/fs/devices/pci-device_10de_0141.fs49
3 files changed, 0 insertions, 157 deletions
diff --git a/qemu/roms/SLOF/slof/fs/devices/pci-class_02.fs b/qemu/roms/SLOF/slof/fs/devices/pci-class_02.fs
deleted file mode 100644
index 271420f03..000000000
--- a/qemu/roms/SLOF/slof/fs/devices/pci-class_02.fs
+++ /dev/null
@@ -1,37 +0,0 @@
-\ *****************************************************************************
-\ * Copyright (c) 2004, 2008 IBM Corporation
-\ * All rights reserved.
-\ * This program and the accompanying materials
-\ * are made available under the terms of the BSD License
-\ * which accompanies this distribution, and is available at
-\ * http://www.opensource.org/licenses/bsd-license.php
-\ *
-\ * Contributors:
-\ * IBM Corporation - initial implementation
-\ ****************************************************************************/
-
-s" network [ " type my-space pci-class-name type s" ]" type
-
-my-space pci-device-generic-setup
-my-space pci-alias-net
-
-s" network" device-type
-
-cr
-
-INSTANCE VARIABLE obp-tftp-package
-: open ( -- okay? )
- open IF \ enables PCI mem, io and Bus master and returns TRUE
- my-args s" obp-tftp" $open-package obp-tftp-package ! true
- ELSE
- false
- THEN ;
-
-: close ( -- )
- obp-tftp-package @ close-package
- close ; \ disables PCI mem, io and Bus master
-
-: load ( addr -- len )
- s" load" obp-tftp-package @ $call-method ;
-
-: ping ( -- ) s" ping" obp-tftp-package @ $call-method ;
diff --git a/qemu/roms/SLOF/slof/fs/devices/pci-class_0c.fs b/qemu/roms/SLOF/slof/fs/devices/pci-class_0c.fs
deleted file mode 100644
index 39453fbc0..000000000
--- a/qemu/roms/SLOF/slof/fs/devices/pci-class_0c.fs
+++ /dev/null
@@ -1,71 +0,0 @@
-\ *****************************************************************************
-\ * Copyright (c) 2004, 2011 IBM Corporation
-\ * All rights reserved.
-\ * This program and the accompanying materials
-\ * are made available under the terms of the BSD License
-\ * which accompanies this distribution, and is available at
-\ * http://www.opensource.org/licenses/bsd-license.php
-\ *
-\ * Contributors:
-\ * IBM Corporation - initial implementation
-\ ****************************************************************************/
-
-s" serial bus [ " type my-space pci-class-name type s" ]" type cr
-
-my-space pci-device-generic-setup
-
-STRUCT
- /n FIELD hcd>base
- /n FIELD hcd>type
- /n FIELD hcd>num
- /n FIELD hcd>ops
- /n FIELD hcd>priv
- /n FIELD hcd>nextaddr
-CONSTANT /hci-dev
-
-: usb-setup-hcidev ( num hci-dev -- )
- >r
- 10 config-l@ F AND case
- 0 OF 10 config-l@ translate-my-address ENDOF \ 32-bit memory space
- 4 OF \ 64-bit memory space
- 14 config-l@ 20 lshift \ Read two bars
- 10 config-l@ OR translate-my-address
- ENDOF
- ENDCASE
- F not AND
- ( io-base ) r@ hcd>base !
- 08 config-l@ 8 rshift 0000000F0 AND 4 rshift
- ( usb-type ) r@ hcd>type !
- ( usb-num ) r@ hcd>num !
- r> drop
-;
-
-\ Handle USB OHCI controllers:
-: handle-usb-class ( -- )
- \ set Memory Write and Invalidate Enable, SERR# Enable
- \ (see PCI 3.0 Spec Chapter 6.2.2 device control):
- 4 config-w@ 110 or 4 config-w!
- pci-master-enable \ set PCI Bus master bit and
- pci-mem-enable \ memory space enable for USB scan
-;
-
-\ Check PCI sub-class and interface type of Serial Bus Controller
-\ to include the appropriate driver:
-: handle-sbc-subclass ( -- )
- my-space pci-class@ ffff and CASE \ get PCI sub-class and interface
- 0310 OF \ OHCI controller
- handle-usb-class
- set-ohci-alias
- ENDOF
- 0320 OF \ EHCI controller
- handle-usb-class
- set-ehci-alias
- ENDOF
- 0330 OF \ XHCI controller
- handle-usb-class
- set-xhci-alias
- ENDOF
- ENDCASE
-;
-
-handle-sbc-subclass
diff --git a/qemu/roms/SLOF/slof/fs/devices/pci-device_10de_0141.fs b/qemu/roms/SLOF/slof/fs/devices/pci-device_10de_0141.fs
deleted file mode 100644
index bb3b83516..000000000
--- a/qemu/roms/SLOF/slof/fs/devices/pci-device_10de_0141.fs
+++ /dev/null
@@ -1,49 +0,0 @@
-\ *****************************************************************************
-\ * Copyright (c) 2004, 2008 IBM Corporation
-\ * All rights reserved.
-\ * This program and the accompanying materials
-\ * are made available under the terms of the BSD License
-\ * which accompanies this distribution, and is available at
-\ * http://www.opensource.org/licenses/bsd-license.php
-\ *
-\ * Contributors:
-\ * IBM Corporation - initial implementation
-\ ****************************************************************************/
-
-my-space pci-class-name type
-
-my-space pci-device-generic-setup
-
-pci-io-enable
-pci-mem-enable
-
-30 config-l@ pci-find-fcode execute-rom-fcode
-
-: check-display ( nodepath len -- true|false ) \ true if display found and "screen" alias set
-\ check if display available, set screen alias
-2dup find-node \ ( path len phandle|0 ) find node
-?dup IF
- \ node found, get "display-type" property
- s" display-type" rot get-property ( path len true|propaddr proplen 0 )
- 0= IF
- ( path len propaddr proplen ) \ property found, check if the value is not "NONE"
- s" NONE" 0 char-cat ( path len propaddr proplen str strlen ) \ null-terminated NONE string
- str= 0= IF
- ( path len ) \ "display-type" property is not "NONE" so we can set "screen" alias
- s" screen" 2swap set-alias
- true ( true ) \ return true
- ELSE
- 2drop false ( false ) \ return false
- THEN
- THEN
-THEN
-;
-
-get-node node>path s" /NVDA,DISPLAY-A" $cat check-display
-0= IF
- \ no display found on DISPLAY-A ... check DISPLAY-B
- get-node node>path s" /NVDA,DISPLAY-B" $cat check-display
- drop \ drop result
-THEN
-
-s" name" get-my-property drop s" ( " type type s" ) " type cr