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/libnvram/nvram.h | |
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/libnvram/nvram.h')
-rw-r--r-- | qemu/roms/SLOF/lib/libnvram/nvram.h | 75 |
1 files changed, 0 insertions, 75 deletions
diff --git a/qemu/roms/SLOF/lib/libnvram/nvram.h b/qemu/roms/SLOF/lib/libnvram/nvram.h deleted file mode 100644 index 73fe44424..000000000 --- a/qemu/roms/SLOF/lib/libnvram/nvram.h +++ /dev/null @@ -1,75 +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 __NVRAM_H -#define __NVRAM_H 1 - -/* data structures */ - -typedef struct { - unsigned long addr; - long len; -} partition_t; - -/* macros */ - -#define DEBUG(x...) -// #define DEBUG(x...) printf(x); - -#ifndef ALIGN -#define ALIGN(x, a) (((x) + ((a) - 1)) & ~((a) - 1)) -#endif - -#define NULL ((void *)0) - -#define PARTITION_HEADER_SIZE 16 - - -/* exported functions */ - -#define nvram_access_proto(type,name) \ - type nvram_read_##name(unsigned int offset); \ - void nvram_write_##name(unsigned int offset, type data); - -nvram_access_proto(uint8_t, byte) -nvram_access_proto(uint16_t, word) -nvram_access_proto(uint32_t, dword) -nvram_access_proto(uint64_t, qword) - -/* nvram.c */ - -char *get_nvram_buffer(int len); -void free_nvram_buffer(char *buffer); -int nvramlog_printf(const char* fmt, ...); -partition_t get_partition(unsigned int type, char *name); -partition_t get_partition_fs(char *name, int namelen); -void erase_nvram(int offset, int len); -int wipe_partition(partition_t partition, int header_only); -partition_t new_nvram_partition(int type, char *name, int len); -partition_t new_nvram_partition_fs(int type, char *name, int namelen, int len); -int increase_nvram_partition_size(partition_t partition, int newsize); -int clear_nvram_partition(partition_t part); -int delete_nvram_partition(partition_t part); -void reset_nvram(void); -void wipe_nvram(void); -void nvram_debug(void); -void nvram_init(uint32_t store_token, uint32_t fetch_token, - long nv_size, void* nvram_addr); -unsigned int get_nvram_size(void); - -/* envvar.c */ -char *nvram_get_env(partition_t part, char *envvar, int evlen); -int nvram_add_env(partition_t part, char *envvar, int evlen, char *value, int vallen); -int nvram_del_env(partition_t part, char *envvar, int evlen); -int nvram_set_env(partition_t part, char *envvar, int evlen, char *val, int vlen); - -#endif |