/[gxemul]/trunk/src/include/hpc_bootinfo.h
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Contents of /trunk/src/include/hpc_bootinfo.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 4 - (show annotations)
Mon Oct 8 16:18:00 2007 UTC (16 years, 5 months ago) by dpavlin
File MIME type: text/plain
File size: 3515 byte(s)
++ trunk/HISTORY	(local)
$Id: HISTORY,v 1.707 2005/04/27 16:37:33 debug Exp $
20050408	Some minor updates to the wdc. Linux now doesn't complain
		anymore if a disk is non-present.
20050409	Various minor fixes (a bintrans bug, and some other things).
		The wdc seems to work with Playstation2 emulation, but there
		is a _long_ annoying delay when disks are detected.
		Fixing a really important bintrans bug (when devices and RAM
		are mixed within 4KB pages), which was triggered with
		NetBSD/playstation2 kernels.
20050410	Adding a dummy dev_ps2_ether (just so that NetBSD doesn't
		complain as much during bootup).
		Symbols starting with '$' are now ignored.
		Renaming dev_ps2_ohci.c to dev_ohci.c, etc.
20050411	Moving the bintrans-cache-isolation check from cpu_mips.c to
		cpu_mips_coproc.c. (I thought this would give a speedup, but
		it's not noticable.)
		Better playstation2 sbus interrupt code.
		Skip ahead many ticks if the count register is read manually.
		(This increases the speed of delay-loops that simply read
		the count register.)
20050412	Updates to the playstation2 timer/interrupt code.
		Some other minor updates.
20050413	NetBSD/cobalt runs from a disk image :-) including userland;
		updating the documentation on how to install NetBSD/cobalt
		using NetBSD/pmax (!).
		Some minor bintrans updates (no real speed improvement) and
		other minor updates (playstation2 now uses the -o options).
20050414	Adding a dummy x86 (and AMD64) mode.
20050415	Adding some (32-bit and 16-bit) x86 instructions.
		Adding some initial support for non-SCSI, non-IDE floppy
		images. (The x86 mode can boot from these, more or less.)
		Moving the devices/ and include/ directories to src/devices/
		and src/include/, respectively.
20050416	Continuing on the x86 stuff. (Adding pc_bios.c and some simple
		support for software interrupts in 16-bit mode.)
20050417	Ripping out most of the x86 instruction decoding stuff, trying
		to rewrite it in a cleaner way.
		Disabling some of the least working CPU families in the
		configure script (sparc, x86, alpha, hppa), so that they are
		not enabled by default.
20050418	Trying to fix the bug which caused problems when turning on
		and off bintrans interactively, by flushing the bintrans cache
		whenever bintrans is manually (re)enabled.
20050419	Adding the 'lswi' ppc instruction.
		Minor updates to the x86 instruction decoding.
20050420	Renaming x86 register name indices from R_xx to X86_R_xx (this
		makes building on Tru64 nicer).
20050422	Adding a check for duplicate MIPS TLB entries on tlbwr/tlbwi.
20050427	Adding screenshots to guestoses.html.
		Some minor fixes and testing for the next release.

==============  RELEASE 0.3.2  ==============


1 /* gxemul: $Id: hpc_bootinfo.h,v 1.5 2005/03/05 12:34:02 debug Exp $ */
2 /* $NetBSD: bootinfo.h,v 1.2 2002/04/14 06:07:40 takemura Exp $ */
3
4 /*-
5 * Copyright (c) 1999-2001
6 * Shin Takemura and PocketBSD Project. All rights reserved.
7 *
8 * Redistribution and use in source and binary forms, with or without
9 * modification, are permitted provided that the following conditions
10 * are met:
11 * 1. Redistributions of source code must retain the above copyright
12 * notice, this list of conditions and the following disclaimer.
13 * 2. Redistributions in binary form must reproduce the above copyright
14 * notice, this list of conditions and the following disclaimer in the
15 * documentation and/or other materials provided with the distribution.
16 * 3. All advertising materials mentioning features or use of this software
17 * must display the following acknowledgement:
18 * This product includes software developed by the PocketBSD project
19 * and its contributors.
20 * 4. Neither the name of the project nor the names of its contributors
21 * may be used to endorse or promote products derived from this software
22 * without specific prior written permission.
23 *
24 * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
25 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
26 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
27 * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
28 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
29 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
30 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
31 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
32 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
33 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
34 * SUCH DAMAGE.
35 *
36 */
37
38 #ifndef _HPC_BOOTINFO_H_
39 #define _HPC_BOOTINFO_H_
40
41 struct hpc_bootinfo {
42 int16_t length; /* short */
43 int16_t reserved; /* short */
44 int32_t magic; /* int */
45 uint32_t fb_addr; /* void * */
46 int16_t fb_line_bytes; /* short */
47 int16_t fb_width; /* short */
48 int16_t fb_height; /* short */
49 int16_t fb_type; /* short */
50
51 int16_t bi_cnuse; /* short */
52 uint32_t platid_cpu; /* unsigned long */
53 uint32_t platid_machine; /* unsigned long */
54
55 int32_t timezone; /* long */
56 };
57
58 #define BI_CNUSE_BUILTIN (1<<0)
59 #define BI_CNUSE_SERIAL (1<<1)
60
61 /* extern struct bootinfo *bootinfo; */
62 #define HPC_BOOTINFO_MAGIC 0x13536135ULL
63
64 #define BIFB_D2_M2L_3 0
65 #define BIFBN_D2_M2L_3 "D2_M2L_3"
66
67 #define BIFB_D2_M2L_3x2 1
68 #define BIFBN_D2_M2L_3x2 "D2_M2L_3x2"
69
70 #define BIFB_D2_M2L_0 2
71 #define BIFBN_D2_M2L_0 "D2_M2L_0"
72
73 #define BIFB_D8_00 3
74 #define BIFBN_D8_00 "D8_00"
75
76 #define BIFB_D8_FF 4
77 #define BIFBN_D8_FF "D8_FF"
78
79 #define BIFB_D16_0000 5
80 #define BIFBN_D16_0000 "D16_0000"
81
82 #define BIFB_D16_FFFF 6
83 #define BIFBN_D16_FFFF "D16_FFFF"
84
85 #define BIFB_D2_M2L_0x2 7
86 #define BIFBN_D2_M2L_0x2 "D2_M2L_0x2"
87
88 #define BIFB_D4_M2L_F 8
89 #define BIFBN_D4_M2L_F "D4_M2L_F"
90
91 #define BIFB_D4_M2L_Fx2 9
92 #define BIFBN_D4_M2L_Fx2 "D4_M2L_Fx2"
93
94 #define BIFB_D4_M2L_0 10
95 #define BIFBN_D4_M2L_0 "D4_M2L_0"
96
97 #define BIFB_D4_M2L_0x2 11
98 #define BIFBN_D4_M2L_0x2 "D4_M2L_0x2"
99
100 #define BIFB_D1_M2L_0 12
101 #define BIFBN_D1_M2L_0 "D1_M2L_0"
102
103 #define BIFB_D1_M2L_1 13
104 #define BIFBN_D1_M2L_1 "D1_M2L_1"
105
106 #endif /* _HPC_BOOTINFO_H_ */

  ViewVC Help
Powered by ViewVC 1.1.26