Deleted Added
full compact
cbus.h (16359) cbus.h (18010)
1/*-
2 * Copyright (c) 1990 The Regents of the University of California.
3 * All rights reserved.
4 *
5 * This code is derived from software contributed to Berkeley by
6 * William Jolitz.
7 *
8 * Redistribution and use in source and binary forms, with or without

--- 20 unchanged lines hidden (view full) ---

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 * from: @(#)isa.h 5.7 (Berkeley) 5/9/91
1/*-
2 * Copyright (c) 1990 The Regents of the University of California.
3 * All rights reserved.
4 *
5 * This code is derived from software contributed to Berkeley by
6 * William Jolitz.
7 *
8 * Redistribution and use in source and binary forms, with or without

--- 20 unchanged lines hidden (view full) ---

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 * from: @(#)isa.h 5.7 (Berkeley) 5/9/91
37 * $Id: isa.h,v 1.18 1996/01/30 22:55:57 mpp Exp $
37 * $Id: pc98.h,v 1.1.1.1 1996/06/14 10:04:45 asami Exp $
38 */
39
40#ifndef _PC98_PC98_PC98_H_
41#define _PC98_PC98_PC98_H_
42
43/* BEWARE: Included in both assembler and C code */
44
45/*

--- 131 unchanged lines hidden (view full) ---

177#endif COMPAQ_RAMRELOC
178#endif
179
180/*
181 * Obtained from NetBSD/pc98
182 */
183#define MADDRUNK -1
184
38 */
39
40#ifndef _PC98_PC98_PC98_H_
41#define _PC98_PC98_PC98_H_
42
43/* BEWARE: Included in both assembler and C code */
44
45/*

--- 131 unchanged lines hidden (view full) ---

177#endif COMPAQ_RAMRELOC
178#endif
179
180/*
181 * Obtained from NetBSD/pc98
182 */
183#define MADDRUNK -1
184
185#define PC98_VECTOR_SIZE (0x400)
186#define PC98_SYSTEM_PARAMETER_SIZE (0x230)
187
188#define PC98_SAVE_AREA(highreso_flag) (0xa1000)
189#define PC98_SAVE_AREA_ADDRESS (0x10)
190
191#define OFS_BOOT_boothowto 0x210
192#define OFS_BOOT_bootdev 0x214
193#define OFS_BOOT_cyloffset 0x218
194#define OFS_WD_BIOS_SECSIZE(i) (0x200+(i)*6)
195#define OFS_WD_BIOS_NCYL(i) (0x202+(i)*6)
196#define OFS_WD_BIOS_HEAD(i) (0x205+(i)*6)
197#define OFS_WD_BIOS_SEC(i) (0x204+(i)*6)
198#define OFS_pc98_machine_type 0x220
199#define OFS_epson_machine_id 0x224
200#define OFS_epson_bios_id 0x225
201#define OFS_epson_system_type 0x226
202
203#define M_NEC_PC98 0x0001
204#define M_EPSON_PC98 0x0002
205#define M_NOT_H98 0x0010
206#define M_H98 0x0020
207#define M_NOTE 0x0040
208#define M_NORMAL 0x1000
209#define M_HIGHRESO 0x2000
210#define M_8M 0x8000
211
212#if defined(KERNEL) && !defined(LOCORE)
213/* BIOS parameter block */
214extern unsigned char pc98_system_parameter[]; /* in locore.c */
215#define PC98_SYSTEM_PARAMETER(x) pc98_system_parameter[(x)-0x400]
216#define BOOT_boothowto (*(unsigned long*)(&pc98_system_parameter[OFS_BOOT_boothowto]))
217#define BOOT_bootdev (*(unsigned long*)(&pc98_system_parameter[OFS_BOOT_bootdev]))
218#define BOOT_cyloffset (*(unsigned long*)(&pc98_system_parameter[OFS_BOOT_cyloffset]))
219#define WD_BIOS_SECSIZE(i) (*(unsigned short*)(&pc98_system_parameter[OFS_WD_BIOS_SECSIZE(i)]))
220#define WD_BIOS_NCYL(i) (*(unsigned short*)(&pc98_system_parameter[OFS_WD_BIOS_NCYL(i)]))
221#define WD_BIOS_HEAD(i) (pc98_system_parameter[OFS_WD_BIOS_HEAD(i)])
222#define WD_BIOS_SEC(i) (pc98_system_parameter[OFS_WD_BIOS_SEC(i)])
223#define pc98_machine_type (*(unsigned long*)&pc98_system_parameter[OFS_pc98_machine_type])
224#define epson_machine_id (pc98_system_parameter[OFS_epson_machine_id])
225#define epson_bios_id (pc98_system_parameter[OFS_epson_bios_id])
226#define epson_system_type (pc98_system_parameter[OFS_epson_system_type])
227
228# define PC98_TYPE_CHECK(x) ((pc98_machine_type & (x)) == (x))
229#endif /* KERNEL */
230
185#endif /* !_PC98_PC98_PC98_H_ */
231#endif /* !_PC98_PC98_PC98_H_ */