diff options
author | RajithaY <rajithax.yerrumsetty@intel.com> | 2017-04-25 03:31:15 -0700 |
---|---|---|
committer | Rajitha Yerrumchetty <rajithax.yerrumsetty@intel.com> | 2017-05-22 06:48:08 +0000 |
commit | bb756eebdac6fd24e8919e2c43f7d2c8c4091f59 (patch) | |
tree | ca11e03542edf2d8f631efeca5e1626d211107e3 /qemu/roms/SLOF/lib/libipmi | |
parent | a14b48d18a9ed03ec191cf16b162206998a895ce (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/lib/libipmi')
-rw-r--r-- | qemu/roms/SLOF/lib/libipmi/Makefile | 28 | ||||
-rw-r--r-- | qemu/roms/SLOF/lib/libipmi/libipmi.code | 120 | ||||
-rw-r--r-- | qemu/roms/SLOF/lib/libipmi/libipmi.h | 33 | ||||
-rw-r--r-- | qemu/roms/SLOF/lib/libipmi/libipmi.in | 24 | ||||
-rw-r--r-- | qemu/roms/SLOF/lib/libipmi/libipmi.oco | bin | 104462 -> 0 bytes |
5 files changed, 0 insertions, 205 deletions
diff --git a/qemu/roms/SLOF/lib/libipmi/Makefile b/qemu/roms/SLOF/lib/libipmi/Makefile deleted file mode 100644 index 4777f9edd..000000000 --- a/qemu/roms/SLOF/lib/libipmi/Makefile +++ /dev/null @@ -1,28 +0,0 @@ -# ***************************************************************************** -# * Copyright (c) 2004, 2007 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 -# ****************************************************************************/ - -TOPCMNDIR ?= ../.. - -LIBIPMICMNDIR = $(shell pwd) - -include $(TOPCMNDIR)/make.rules - -TARGET = ../libipmi.a - -all: $(TARGET) - -$(TARGET): - cp libipmi.oco $@ - -clean: - -distclean: diff --git a/qemu/roms/SLOF/lib/libipmi/libipmi.code b/qemu/roms/SLOF/lib/libipmi/libipmi.code deleted file mode 100644 index 59c124418..000000000 --- a/qemu/roms/SLOF/lib/libipmi/libipmi.code +++ /dev/null @@ -1,120 +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 - *****************************************************************************/ - -#include <libipmi.h> - -// : ipmi-kcs-cmd ( in-buf in-len out-buf out-maxlen -- out-len errorcode ) -PRIM(IPMI_X2d_KCS_X2d_CMD) - cell maxlen = TOS; POP; - cell outbuf = TOS; POP; - int len = TOS.n; POP; - cell inbuf = TOS; - int retval; - retval = ipmi_kcs_cmd(inbuf.a, outbuf.a, maxlen.n, (uint32_t *) &len); - TOS.n = len; - PUSH; TOS.n = retval; -MIRP - - -PRIM(IPMI_X2d_SYSTEM_X2d_REBOOT) - ipmi_system_reboot(); -MIRP - - -PRIM(IPMI_X2d_POWER_X2d_OFF) - ipmi_power_off(); -MIRP - - -// : ipmi-oem-stop-bootwatchdog ( -- errorcode ) -PRIM(IPMI_X2d_OEM_X2d_STOP_X2d_BOOTWATCHDOG) - PUSH; - TOS.n = ipmi_oem_stop_bootwatchdog(); -MIRP - - -// : ipmi-oem-set-bootwatchdog ( seconds -- errorcode ) -PRIM(IPMI_X2d_OEM_X2d_SET_X2d_BOOTWATCHDOG) - int sec = TOS.n; - TOS.n = ipmi_oem_set_bootwatchdog(sec); -MIRP - - -// : ipmi-oem-reset-bootwatchdog ( -- errorcode ) -PRIM(IPMI_X2d_OEM_X2d_RESET_X2d_BOOTWATCHDOG) - PUSH; - TOS.n = ipmi_oem_reset_bootwatchdog(); -MIRP - - -// : ipmi-oem-led-set ( type instance state -- errorcode ) -PRIM(IPMI_X2d_OEM_X2d_LED_X2d_SET) - int state = TOS.n; POP; - int instance = TOS.n; POP; - int type = TOS.n; - TOS.n = ipmi_oem_led_set(type, instance, state); -MIRP - - -// : ipmi-oem-read-vpd ( offset length dst -- status ) -PRIM(IPMI_X2d_OEM_X2d_READ_X2d_VPD) - cell dest = TOS; POP; - int len = TOS.n; POP; - int offset = TOS.n; - TOS.n = ipmi_oem_read_vpd(dest.a, len, offset); -MIRP - -// : ipmi-oem-write-vpd ( offset length src -- status ) -PRIM(IPMI_X2d_OEM_X2d_WRITE_X2d_VPD) - cell src = TOS; POP; - int len = TOS.n; POP; - int offset = TOS.n; - TOS.n = ipmi_oem_write_vpd(src.a, len, offset); -MIRP - - -// : ipmi-oem-get-blade-descr ( buf maxlen -- len status ) -PRIM(IPMI_X2d_OEM_X2d_GET_X2d_BLADE_X2d_DESCR) - int maxlen = TOS.n; POP; - cell buf = TOS; - int len = 0; - int retval; - retval = ipmi_oem_get_blade_descr(buf.a, maxlen, (uint32_t *) &len); - TOS.n = len; - PUSH; TOS.n = retval; -MIRP - - -// : ipmi-oem-bios2sp ( str-ptr str-len swid type -- errorcode ) -PRIM(IPMI_X2d_OEM_X2d_BIOS2SP) - int type = TOS.n; POP; - int swid = TOS.n; POP; - int len = TOS.n; POP; - void* addr = TOS.a; - TOS.n = ipmi_oem_bios2sp(swid, type, addr, len); -MIRP - -// : ipmi-set-sensor ( param-1 ... param-n n command sensor - errorcode ) -PRIM(IPMI_X2d_SET_X2d_SENSOR) - int sensor = TOS.n; POP; - int cmd = TOS.n; POP; - int n = TOS.n; - int i = n; - uint8_t param[10]; - while (i>0) { - i--; - POP; param[i]=TOS.n; - }; - TOS.n = ipmi_set_sensor((cmd<<8)+sensor,n, - param[0],param[1],param[2],param[3],param[4], - param[5],param[6],param[7],param[8],param[9]); -MIRP diff --git a/qemu/roms/SLOF/lib/libipmi/libipmi.h b/qemu/roms/SLOF/lib/libipmi/libipmi.h deleted file mode 100644 index 9ac83087e..000000000 --- a/qemu/roms/SLOF/lib/libipmi/libipmi.h +++ /dev/null @@ -1,33 +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 - *****************************************************************************/ - -#ifndef __LIBIPMI_H -#define __LIBIPMI_H - -#include <stdint.h> - -extern int ipmi_kcs_cmd(uint8_t *, uint8_t *, uint32_t, uint32_t *); - -extern void ipmi_system_reboot(void); -extern void ipmi_power_off(void); -extern int ipmi_set_sensor(const int sensor, int number_of_args, ...); - -extern int ipmi_oem_stop_bootwatchdog(void); -extern int ipmi_oem_set_bootwatchdog(uint16_t seconds); -extern int ipmi_oem_reset_bootwatchdog(void); -extern int ipmi_oem_led_set(int type, int instance, int state); -extern uint32_t ipmi_oem_read_vpd(uint8_t *dst, uint32_t len, uint32_t offset); -extern uint32_t ipmi_oem_write_vpd(uint8_t *src, uint32_t len, uint32_t offset); -extern uint32_t ipmi_oem_get_blade_descr(uint8_t *dst, uint32_t maxlen, uint32_t *len); -extern int ipmi_oem_bios2sp(int swid, int type, char *data, int len); - -#endif diff --git a/qemu/roms/SLOF/lib/libipmi/libipmi.in b/qemu/roms/SLOF/lib/libipmi/libipmi.in deleted file mode 100644 index 5b0e0ec5e..000000000 --- a/qemu/roms/SLOF/lib/libipmi/libipmi.in +++ /dev/null @@ -1,24 +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 - *****************************************************************************/ - -cod(IPMI-KCS-CMD) -cod(IPMI-SYSTEM-REBOOT) -cod(IPMI-POWER-OFF) -cod(IPMI-OEM-STOP-BOOTWATCHDOG) -cod(IPMI-OEM-SET-BOOTWATCHDOG) -cod(IPMI-OEM-RESET-BOOTWATCHDOG) -cod(IPMI-OEM-LED-SET) -cod(IPMI-OEM-READ-VPD) -cod(IPMI-OEM-WRITE-VPD) -cod(IPMI-OEM-GET-BLADE-DESCR) -cod(IPMI-OEM-BIOS2SP) -cod(IPMI-SET-SENSOR) diff --git a/qemu/roms/SLOF/lib/libipmi/libipmi.oco b/qemu/roms/SLOF/lib/libipmi/libipmi.oco Binary files differdeleted file mode 100644 index 74af7249c..000000000 --- a/qemu/roms/SLOF/lib/libipmi/libipmi.oco +++ /dev/null |