genassym.cf revision 1.4
11.4Stsutsui#	$NetBSD: genassym.cf,v 1.4 2008/09/20 18:29:05 tsutsui Exp $
21.1Sjtk
31.1Sjtk#
41.1Sjtk# Copyright (c) 1998 The NetBSD Foundation, Inc.
51.1Sjtk# All rights reserved.
61.1Sjtk#
71.1Sjtk# This code is derived from software contributed to The NetBSD Foundation
81.1Sjtk# by Charles M. Hannum.
91.1Sjtk#
101.1Sjtk# Redistribution and use in source and binary forms, with or without
111.1Sjtk# modification, are permitted provided that the following conditions
121.1Sjtk# are met:
131.1Sjtk# 1. Redistributions of source code must retain the above copyright
141.1Sjtk#    notice, this list of conditions and the following disclaimer.
151.1Sjtk# 2. Redistributions in binary form must reproduce the above copyright
161.1Sjtk#    notice, this list of conditions and the following disclaimer in the
171.1Sjtk#    documentation and/or other materials provided with the distribution.
181.1Sjtk#
191.1Sjtk# THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
201.1Sjtk# ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
211.1Sjtk# TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
221.1Sjtk# PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
231.1Sjtk# BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
241.1Sjtk# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
251.1Sjtk# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
261.1Sjtk# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
271.1Sjtk# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
281.1Sjtk# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
291.1Sjtk# POSSIBILITY OF SUCH DAMAGE.
301.1Sjtk#
311.1Sjtk
321.1Sjtk#
331.1Sjtk# Copyright (c) 1982, 1990 The Regents of the University of California.
341.1Sjtk# All rights reserved.
351.1Sjtk#
361.1Sjtk# This code is derived from software contributed to Berkeley by
371.1Sjtk# William Jolitz.
381.1Sjtk#
391.1Sjtk# Redistribution and use in source and binary forms, with or without
401.1Sjtk# modification, are permitted provided that the following conditions
411.1Sjtk# are met:
421.1Sjtk# 1. Redistributions of source code must retain the above copyright
431.1Sjtk#    notice, this list of conditions and the following disclaimer.
441.1Sjtk# 2. Redistributions in binary form must reproduce the above copyright
451.1Sjtk#    notice, this list of conditions and the following disclaimer in the
461.1Sjtk#    documentation and/or other materials provided with the distribution.
471.4Stsutsui# 3. Neither the name of the University nor the names of its contributors
481.1Sjtk#    may be used to endorse or promote products derived from this software
491.1Sjtk#    without specific prior written permission.
501.1Sjtk#
511.1Sjtk# THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
521.1Sjtk# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
531.1Sjtk# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
541.1Sjtk# ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
551.1Sjtk# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
561.1Sjtk# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
571.1Sjtk# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
581.1Sjtk# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
591.1Sjtk# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
601.1Sjtk# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
611.1Sjtk# SUCH DAMAGE.
621.1Sjtk#
631.1Sjtk#	@(#)genassym.c	5.11 (Berkeley) 5/10/91
641.1Sjtk#
651.1Sjtk
661.1Sjtk
671.1Sjtkinclude <sys/types.h>
681.1Sjtkinclude <i386/include/bioscall.h>
691.1Sjtkinclude <i386/include/apmvar.h>
701.1Sjtk
711.1Sjtkifdef NOTDEF
721.1Sjtkinclude <machine/bioscall.h>
731.1Sjtkinclude <machine/apmvar.h>
741.1Sjtkendif
751.1Sjtk
761.1Sjtkdefine	APM_CODE32		offsetof(struct apm_connect_info, apm_code32_seg_base)
771.1Sjtkdefine	APM_CODE16		offsetof(struct apm_connect_info, apm_code16_seg_base)
781.1Sjtkdefine	APM_DATA		offsetof(struct apm_connect_info, apm_data_seg_base)
791.1Sjtkdefine	APM_CODE32_LEN		offsetof(struct apm_connect_info, apm_code32_seg_len)
801.1Sjtkdefine	APM_DATA_LEN		offsetof(struct apm_connect_info, apm_data_seg_len)
811.1Sjtkdefine	APM_ENTRY		offsetof(struct apm_connect_info, apm_entrypt)
821.1Sjtkdefine	APM_DETAIL		offsetof(struct apm_connect_info, apm_detail)
831.1Sjtkdefine	APM_SIZE		sizeof(struct apm_connect_info)
841.1Sjtkdefine	BIOSCALLREG_EAX		offsetof(struct bioscallregs, EAX)
851.1Sjtkdefine	BIOSCALLREG_EBX		offsetof(struct bioscallregs, EBX)
861.1Sjtkdefine	BIOSCALLREG_ECX		offsetof(struct bioscallregs, ECX)
871.1Sjtkdefine	BIOSCALLREG_EDX		offsetof(struct bioscallregs, EDX)
881.1Sjtkdefine	BIOSCALLREG_ESI		offsetof(struct bioscallregs, ESI)
891.1Sjtkdefine	BIOSCALLREG_EDI		offsetof(struct bioscallregs, EDI)
901.1Sjtkdefine	BIOSCALLREG_EFLAGS	offsetof(struct bioscallregs, EFLAGS)
911.2Sjdolecekdefine	BIOSCALLREG_ES		offsetof(struct bioscallregs, ES)
92