apm_segments.h revision 3264
1127342Smlaier/* 2127342Smlaier * LP (Laptop Package) 3127342Smlaier * 4127342Smlaier * Copyright (C) 1994 by HOSOKAWA Tatsumi <hosokawa@mt.cs.keio.ac.jp> 5127342Smlaier * 6127342Smlaier * This software may be used, modified, copied, and distributed, in 7195026Sdougb * both source and binary form provided that the above copyright and 8150836Syar * these terms are retained. Under no circumstances is the author 9136224Smtm * responsible for the proper functioning of this software, nor does 10127342Smlaier * the author assume any responsibility for damages incurred with its 11127342Smlaier * use. 12127342Smlaier * 13127342Smlaier * Sep., 1994 Implemented on FreeBSD 1.1.5.1R (Toshiba AVS001WD) 14127342Smlaier * 15127342Smlaier * $Id$ 16127342Smlaier */ 17127342Smlaier 18136942Spjd#ifndef _MACHINE_APM_SEGMENTS_H 19127342Smlaier#define _MACHINE_APM_SEGMENTS_H 20127342Smlaier 21127342Smlaier#define SIZEOF_GDT 8 22152271Srse#define BOOTSTRAP_GDT_NUM 32 23150839Syar 24165683Syar#define APM_INIT_CS_INDEX (BOOTSTRAP_GDT_NUM - 3) 25127342Smlaier#define APM_INIT_DS_INDEX (BOOTSTRAP_GDT_NUM - 2) 26127342Smlaier#define APM_INIT_CS16_INDEX (BOOTSTRAP_GDT_NUM - 1) 27127342Smlaier#define APM_INIT_CS_SEL (APM_INIT_CS_INDEX << 3) 28197947Sdougb#define APM_INIT_DS_SEL (APM_INIT_DS_INDEX << 3) 29159243Sobrien#define APM_INIT_CS16_SEL (APM_INIT_CS16_INDEX << 3) 30150839Syar 31150839Syar#define CS32_ATTRIB 0x409e 32150839Syar#define CS16_ATTRIB 0x009e 33130954Smlaier#define DS32_ATTRIB 0x4092 34197947Sdougb 35127342Smlaier#define BOOTSTRAP_DS_SEL 0x10 36127342Smlaier 37127342Smlaier#endif 38127342Smlaier