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/seabios/src/pnpbios.c | |
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/seabios/src/pnpbios.c')
-rw-r--r-- | qemu/roms/seabios/src/pnpbios.c | 88 |
1 files changed, 0 insertions, 88 deletions
diff --git a/qemu/roms/seabios/src/pnpbios.c b/qemu/roms/seabios/src/pnpbios.c deleted file mode 100644 index 95ce21f8f..000000000 --- a/qemu/roms/seabios/src/pnpbios.c +++ /dev/null @@ -1,88 +0,0 @@ -// PNP BIOS calls -// -// Copyright (C) 2008 Kevin O'Connor <kevin@koconnor.net> -// -// This file may be distributed under the terms of the GNU LGPLv3 license. - -#include "config.h" // BUILD_BIOS_ADDR -#include "farptr.h" // SET_FARVAR -#include "output.h" // dprintf -#include "std/pnpbios.h" // PNP_SIGNATURE -#include "string.h" // checksum -#include "util.h" // pnp_init - -extern struct pnpheader PNPHEADER; -extern char pnp_string[]; - -#if CONFIG_PNPBIOS -struct pnpheader PNPHEADER __aligned(16) VARFSEG = { - .signature = PNP_SIGNATURE, - .version = 0x10, - .length = sizeof(PNPHEADER), - .real_cs = SEG_BIOS, - .prot_base = BUILD_BIOS_ADDR, - .real_ds = SEG_BIOS, - .prot_database = BUILD_BIOS_ADDR, -}; -#else -// We need a copy of this string in the 0xf000 segment, but we are not -// actually a PnP BIOS, so make sure it is *not* aligned, so OSes will -// not see it if they scan. -char pnp_string[] __aligned(2) VARFSEG = " $PnP"; -#endif - -// BBS - Get Version and Installation Check -static u16 -handle_pnp60(u16 *args) -{ - u16 version_ptr = args[1]; - u16 version_seg = args[2]; - SET_FARVAR(version_seg, *(u16*)(version_ptr+0), 0x0101); - return 0; -} - -static u16 -handle_pnpXX(u16 *args) -{ - return FUNCTION_NOT_SUPPORTED; -} - -u16 VISIBLE16 -handle_pnp(u16 *args) -{ - if (! CONFIG_PNPBIOS) - return FUNCTION_NOT_SUPPORTED; - - u16 arg1 = args[0]; - dprintf(DEBUG_HDL_pnp, "pnp call arg1=%x\n", arg1); - - switch (arg1) { - case 0x60: return handle_pnp60(args); - default: return handle_pnpXX(args); - } -} - -u16 -get_pnp_offset(void) -{ - if (! CONFIG_PNPBIOS) - return (u32)pnp_string + 1 - BUILD_BIOS_ADDR; - return (u32)&PNPHEADER - BUILD_BIOS_ADDR; -} - -// romlayout.S -extern void entry_pnp_real(void); -extern void entry_pnp_prot(void); - -void -pnp_init(void) -{ - if (! CONFIG_PNPBIOS) - return; - - dprintf(3, "init PNPBIOS table\n"); - - PNPHEADER.real_ip = (u32)entry_pnp_real - BUILD_BIOS_ADDR; - PNPHEADER.prot_ip = (u32)entry_pnp_prot - BUILD_BIOS_ADDR; - PNPHEADER.checksum -= checksum(&PNPHEADER, sizeof(PNPHEADER)); -} |