apm_segments.h revision 50477
171164Sache/*
271164Sache * LP (Laptop Package)
371164Sache *
471164Sache * Copyright (C) 1994 by HOSOKAWA Tatsumi <hosokawa@mt.cs.keio.ac.jp>
571164Sache *
671164Sache * This software may be used, modified, copied, and distributed, in
771164Sache * both source and binary form provided that the above copyright and
871164Sache * these terms are retained. Under no circumstances is the author
971164Sache * responsible for the proper functioning of this software, nor does
1071164Sache * the author assume any responsibility for damages incurred with its
1171164Sache * use.
1271164Sache *
1371164Sache * Sep., 1994	Implemented on FreeBSD 1.1.5.1R (Toshiba AVS001WD)
1471164Sache *
1571164Sache * $FreeBSD: head/sys/i386/include/apm_segments.h 50477 1999-08-28 01:08:13Z peter $
1671164Sache */
1771164Sache
1871164Sache#ifndef _MACHINE_APM_SEGMENTS_H
1971164Sache#define _MACHINE_APM_SEGMENTS_H
2071164Sache
2171164Sache#define SIZEOF_GDT		8
2271164Sache#define BOOTSTRAP_GDT_NUM	32
2371164Sache
2471164Sache#define APM_INIT_CS_INDEX	(BOOTSTRAP_GDT_NUM - 4)
2571164Sache#define APM_INIT_DS_INDEX	(BOOTSTRAP_GDT_NUM - 3)
2671164Sache#define APM_INIT_CS16_INDEX	(BOOTSTRAP_GDT_NUM - 2)
2771164Sache#define APM_INIT_DS16_INDEX	(BOOTSTRAP_GDT_NUM - 1)
2871164Sache#define APM_INIT_CS_SEL		(APM_INIT_CS_INDEX << 3)
2971164Sache#define APM_INIT_DS_SEL		(APM_INIT_DS_INDEX << 3)
3071164Sache#define APM_INIT_CS16_SEL	(APM_INIT_CS16_INDEX << 3)
3171164Sache#define APM_INIT_DS16_SEL	(APM_INIT_DS16_INDEX << 3)
3271164Sache
3371164Sache#define CS32_ATTRIB		0x409e
3471164Sache#define DS32_ATTRIB		0x4092
3571164Sache#define CS16_ATTRIB		0x009e
3671164Sache#define DS16_ATTRIB		0x0092
3771164Sache
3871164Sache#endif
3971164Sache