SimpleOS

LXR

Navigation



Site hébergé par : enix

The LXR Cross Referencer for SOS

source navigation ]
diff markup ]
identifier search ]
general search ]
 
 
Article:1 ] [ 2 ] [ 3 ] [ 4 ] [ 5 ] [ 6 ] [ 6.5 ] [ 7 ] [ 7.5 ] [ 8 ] [ 9 ] [ 9.5 ]

001 --- Makefile.target     17 Mar 2004 23:46:04 -0000      1.19
002 +++ Makefile.target     18 Mar 2004 14:20:29 -0000
003 @@ -217,7 +217,8 @@
004  # must use static linking to avoid leaving stuff in virtual address space
005  VL_OBJS=vl.o osdep.o block.o monitor.o \
006          ide.o ne2000.o pckbd.o vga.o sb16.o dma.o oss.o \
007 -        fdc.o mc146818rtc.o serial.o i8259.o i8254.o pc.o
008 +        fdc.o mc146818rtc.o serial.o i8259.o i8254.o pc.o \
009 +       port-e9.o
010  ifeq ($(TARGET_ARCH), ppc)
011  VL_OBJS+= hw.o
012  endif
013 --- hw/pc.c     14 Mar 2004 21:46:48 -0000      1.2
014 +++ hw/pc.c     18 Mar 2004 14:20:29 -0000
015 @@ -371,6 +371,7 @@
016      SB16_init();
017  
018      fdctrl_init(6, 2, 0, 0x3f0, fd_table);
019 +    port_e9_init();
020  
021      cmos_init(ram_size, boot_device);
022  }
023 --- /dev/null   2003-01-30 11:24:37.000000000 +0100
024 +++ port-e9.c   2004-03-18 15:18:52.660493187 +0100
025 @@ -0,0 +1,38 @@
026 +/*
027 + * QEMU Port 0xe9 hack
028 + * 
029 + * Copyright (c) 2000-2004 E. Marty, the bochs team, D. Decotigny
030 + * 
031 + * Permission is hereby granted, free of charge, to any person obtaining a copy
032 + * of this software and associated documentation files (the "Software"), to deal
033 + * in the Software without restriction, including without limitation the rights
034 + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
035 + * copies of the Software, and to permit persons to whom the Software is
036 + * furnished to do so, subject to the following conditions:
037 + *
038 + * The above copyright notice and this permission notice shall be included in
039 + * all copies or substantial portions of the Software.
040 + *
041 + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
042 + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
043 + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
044 + * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
045 + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
046 + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
047 + * THE SOFTWARE.
048 + */
049 +#include <stdio.h>
050 +#include <unistd.h>
051 +#include <inttypes.h>
052 +
053 +#include "vl.h"
054 +
055 +static void bochs_e9_write(void *opaque, uint32_t address, uint32_t data)
056 +{
057 +  write(fileno(stdout), &data, 1);
058 +}
059 +
060 +void port_e9_init ()
061 +{
062 +   register_ioport_write(0xe9, 1, 1, bochs_e9_write, NULL);
063 +}
064 --- vl.h        17 Mar 2004 23:17:16 -0000      1.14
065 +++ vl.h        18 Mar 2004 14:29:06 -0000
066 @@ -268,4 +268,7 @@
067  void term_flush(void);
068  void term_print_help(void);
069  
070 +/* port-e9.c */
071 +void port_e9_init(void);
072 +
073  #endif /* VL_H */

source navigation ] diff markup ] identifier search ] general search ]