freebsd-nq/sys/i386/include/apm_segments.h
Poul-Henning Kamp 648c711bb4 This is the latest version of the APM stuff from HOSOKAWA, I have looked
briefly over it, and see some serious architectural issues in this stuff.

On the other hand, I doubt that we will have any solution to these issues
before 2.1, so we might as well leave this in.

Most of the stuff is bracketed by #ifdef's so it shouldn't matter too much
in the normal case.

Reviewed by:	phk
Submitted by:	HOSOKAWA, Tatsumi <hosokawa@mt.cs.keio.ac.jp>
1995-02-17 02:22:57 +00:00

36 lines
1.1 KiB
C

/*
* LP (Laptop Package)
*
* Copyright (C) 1994 by HOSOKAWA Tatsumi <hosokawa@mt.cs.keio.ac.jp>
*
* This software may be used, modified, copied, and distributed, in
* both source and binary form provided that the above copyright and
* these terms are retained. Under no circumstances is the author
* responsible for the proper functioning of this software, nor does
* the author assume any responsibility for damages incurred with its
* use.
*
* Sep., 1994 Implemented on FreeBSD 1.1.5.1R (Toshiba AVS001WD)
*
* $Id: apm_segments.h,v 1.2 1994/10/01 05:13:37 davidg Exp $
*/
#ifndef _MACHINE_APM_SEGMENTS_H
#define _MACHINE_APM_SEGMENTS_H
#define SIZEOF_GDT 8
#define BOOTSTRAP_GDT_NUM 32
#define APM_INIT_CS_INDEX (BOOTSTRAP_GDT_NUM - 3)
#define APM_INIT_DS_INDEX (BOOTSTRAP_GDT_NUM - 2)
#define APM_INIT_CS16_INDEX (BOOTSTRAP_GDT_NUM - 1)
#define APM_INIT_CS_SEL (APM_INIT_CS_INDEX << 3)
#define APM_INIT_DS_SEL (APM_INIT_DS_INDEX << 3)
#define APM_INIT_CS16_SEL (APM_INIT_CS16_INDEX << 3)
#define CS32_ATTRIB 0x409e
#define CS16_ATTRIB 0x009e
#define DS32_ATTRIB 0x4092
#endif