summaryrefslogtreecommitdiffstats
path: root/qemu/roms/SLOF/include/helpers.h
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/include/helpers.h
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/include/helpers.h')
-rw-r--r--qemu/roms/SLOF/include/helpers.h44
1 files changed, 0 insertions, 44 deletions
diff --git a/qemu/roms/SLOF/include/helpers.h b/qemu/roms/SLOF/include/helpers.h
deleted file mode 100644
index 5b3d711ac..000000000
--- a/qemu/roms/SLOF/include/helpers.h
+++ /dev/null
@@ -1,44 +0,0 @@
-/******************************************************************************
- * Copyright (c) 2007, 2012, 2013 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
- *****************************************************************************/
-/*
- * USB SLOF Prototypes
- */
-
-#ifndef _USB_SLOF_H
-#define _USB_SLOF_H
-
-#include <stdint.h>
-
-extern uint32_t SLOF_GetTimer(void);
-extern void SLOF_msleep(uint32_t time);
-extern void SLOF_usleep(uint32_t time);
-extern void *SLOF_dma_alloc(long size);
-extern void SLOF_dma_free(void *virt, long size);
-extern void *SLOF_alloc_mem(long size);
-extern void *SLOF_alloc_mem_aligned(long size, long align);
-extern void SLOF_free_mem(void *addr, long size);
-extern long SLOF_dma_map_in(void *virt, long size, int cacheable);
-extern void SLOF_dma_map_out(long phys, void *virt, long size);
-extern long SLOF_pci_config_read32(long offset);
-extern long SLOF_pci_config_read16(long offset);
-extern long SLOF_pci_config_read8(long offset);
-extern void SLOF_pci_config_write32(long offset, long value);
-extern void SLOF_pci_config_write16(long offset, long value);
-extern void SLOF_pci_config_write8(long offset, long value);
-extern void *SLOF_translate_my_address(void *addr);
-
-#define offset_of(type, member) ((long) &((type *)0)->member)
-#define container_of(ptr, type, member) ({ \
- const typeof(((type *)0)->member)* struct_ptr = (ptr); \
- (type *)((char *)struct_ptr - offset_of(type, member)); })
-
-#endif