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