apm_segments.h revision 8876
164562Sgshapiro/*
264562Sgshapiro * LP (Laptop Package)
364562Sgshapiro *
464562Sgshapiro * Copyright (C) 1994 by HOSOKAWA Tatsumi <hosokawa@mt.cs.keio.ac.jp>
564562Sgshapiro *
664562Sgshapiro * This software may be used, modified, copied, and distributed, in
764562Sgshapiro * both source and binary form provided that the above copyright and
864562Sgshapiro * these terms are retained. Under no circumstances is the author
964562Sgshapiro * responsible for the proper functioning of this software, nor does
1064562Sgshapiro * the author assume any responsibility for damages incurred with its
1164562Sgshapiro * use.
12132943Sgshapiro *
13132943Sgshapiro * Sep., 1994	Implemented on FreeBSD 1.1.5.1R (Toshiba AVS001WD)
1464562Sgshapiro *
15157001Sgshapiro *	$Id: apm_segments.h,v 1.3 1995/02/17 02:22:46 phk Exp $
16157001Sgshapiro */
17157001Sgshapiro
1890792Sgshapiro#ifndef _MACHINE_APM_SEGMENTS_H
1990792Sgshapiro#define _MACHINE_APM_SEGMENTS_H
2090792Sgshapiro
2164562Sgshapiro#define SIZEOF_GDT		8
2290792Sgshapiro#define BOOTSTRAP_GDT_NUM	32
2390792Sgshapiro
2490792Sgshapiro#define APM_INIT_CS_INDEX	(BOOTSTRAP_GDT_NUM - 3)
2590792Sgshapiro#define APM_INIT_DS_INDEX	(BOOTSTRAP_GDT_NUM - 2)
26132943Sgshapiro#define APM_INIT_CS16_INDEX	(BOOTSTRAP_GDT_NUM - 1)
27132943Sgshapiro#define APM_INIT_CS_SEL		(APM_INIT_CS_INDEX << 3)
2890792Sgshapiro#define APM_INIT_DS_SEL		(APM_INIT_DS_INDEX << 3)
29132943Sgshapiro#define APM_INIT_CS16_SEL	(APM_INIT_CS16_INDEX << 3)
30132943Sgshapiro
31132943Sgshapiro#define CS32_ATTRIB		0x409e
3290792Sgshapiro#define CS16_ATTRIB		0x009e
33132943Sgshapiro#define DS32_ATTRIB		0x4092
34132943Sgshapiro
3590792Sgshapiro#endif
36132943Sgshapiro