ia64/xen-unstable

changeset 5140:28d75ab87022

bitkeeper revision 1.1543 (42943085tTGU_YurrAPsDOCEjAU21g)

[PATCH] qemu-e9.patch

Log port E9 output to the qemu log file.

Signed-off-by: Arun Sharma <arun.sharma@intel.com>
author arun.sharma@intel.com[kaf24]
date Wed May 25 08:00:05 2005 +0000 (2005-05-25)
parents aba3ae74e631
children 91dcc24c50de
files .rootkeys tools/ioemu/hw/pc.c tools/ioemu/hw/port-e9.c tools/ioemu/target-i386-dm/Makefile
line diff
     1.1 --- a/.rootkeys	Tue May 24 22:20:55 2005 +0000
     1.2 +++ b/.rootkeys	Wed May 25 08:00:05 2005 +0000
     1.3 @@ -593,6 +593,7 @@ 428d0d84SMHPk0cRnrZgUYkMxFXMMQ tools/ioe
     1.4  428d0d84lyG0XDg5MxLMSee3MWgq3g tools/ioemu/hw/pc.c
     1.5  428d0d84HWR3Q7dEESycfJ7hSWdGig tools/ioemu/hw/pci.c
     1.6  428d0d84Noyn4ik0UX1E7OdfuFdrIw tools/ioemu/hw/pckbd.c
     1.7 +4294307e0KIA9jaU_1OMIGCcNeLdeQ tools/ioemu/hw/port-e9.c
     1.8  428d0d840SMURRjsz9V96rwt-naynw tools/ioemu/hw/ppc.c
     1.9  428d0d84MI7kZftH_c0FK1qiiyQBZg tools/ioemu/hw/ppc_chrp.c
    1.10  428d0d859-xwA89jmzFk6x9UyXjAeA tools/ioemu/hw/ppc_prep.c
     2.1 --- a/tools/ioemu/hw/pc.c	Tue May 24 22:20:55 2005 +0000
     2.2 +++ b/tools/ioemu/hw/pc.c	Wed May 25 08:00:05 2005 +0000
     2.3 @@ -572,4 +572,5 @@ void pc_init(int ram_size, int vga_ram_s
     2.4      if (pci_enabled) {
     2.5          pci_bios_init();
     2.6      }
     2.7 +    port_e9_init();
     2.8  }
     3.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     3.2 +++ b/tools/ioemu/hw/port-e9.c	Wed May 25 08:00:05 2005 +0000
     3.3 @@ -0,0 +1,47 @@
     3.4 +/*
     3.5 + * QEMU Port 0xe9 hack
     3.6 + *
     3.7 + * Copyright (c) 2000-2004 E. Marty, the bochs team, D. Decotigny
     3.8 + *
     3.9 + * Permission is hereby granted, free of charge, to any person obtaining a
    3.10 + * copy of this software and associated documentation files (the "Software"),
    3.11 + * to deal in the Software without restriction, including without limitation
    3.12 + * the rights to use, copy, modify, merge, publish, distribute, sublicense,
    3.13 + * and/or sell copies of the Software, and to permit persons to whom the
    3.14 + * Software is furnished to do so, subject to the following conditions:
    3.15 + *
    3.16 + * The above copyright notice and this permission notice shall be included in
    3.17 + * all copies or substantial portions of the Software.
    3.18 + *
    3.19 + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
    3.20 + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
    3.21 + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
    3.22 + * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
    3.23 + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
    3.24 + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
    3.25 + * DEALINGS IN THE SOFTWARE.
    3.26 + */
    3.27 +#include <stdio.h>
    3.28 +#include <unistd.h>
    3.29 +#include <inttypes.h>
    3.30 +
    3.31 +#include "vl.h"
    3.32 +#include "exec-all.h"
    3.33 +
    3.34 +static void bochs_e9_write(void *opaque, uint32_t address, uint32_t data)
    3.35 +{
    3.36 +    fputc(data, logfile); 
    3.37 +}
    3.38 +
    3.39 +static uint32_t bochs_e9_read(void *opaque, uint32_t address)
    3.40 +{
    3.41 +    return 0xE9;
    3.42 +}
    3.43 +
    3.44 +void port_e9_init ()
    3.45 +{
    3.46 +    register_ioport_write(0xe9, 1, 1, bochs_e9_write, NULL);
    3.47 +    register_ioport_read (0xe9, 1, 1, bochs_e9_read,  NULL);
    3.48 +}
    3.49 +
    3.50 +
     4.1 --- a/tools/ioemu/target-i386-dm/Makefile	Tue May 24 22:20:55 2005 +0000
     4.2 +++ b/tools/ioemu/target-i386-dm/Makefile	Wed May 25 08:00:05 2005 +0000
     4.3 @@ -271,7 +271,7 @@ endif
     4.4  
     4.5  # Hardware support
     4.6  VL_OBJS+= ide.o ne2000.o pckbd.o vga.o dma.o
     4.7 -VL_OBJS+= fdc.o mc146818rtc.o serial.o i8259.o i8254.o pc.o
     4.8 +VL_OBJS+= fdc.o mc146818rtc.o serial.o i8259.o i8254.o pc.o port-e9.o
     4.9  
    4.10  ifeq ($(TARGET_ARCH), ppc)
    4.11  VL_OBJS+= ppc.o ide.o ne2000.o pckbd.o vga.o $(SOUND_HW) dma.o $(AUDIODRV)