summaryrefslogtreecommitdiffstats
path: root/sys/i386/apm/apm_init/table.c
blob: 8572ba13cf12bdcd507480561d90d17f0b927805 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
/*
 * APM (Advanced Power Management) BIOS Device Driver
 *
 * Copyright (c) 1994-1995 by HOSOKAWA, Tatsumi <hosokawa@jp.FreeBSD.org>
 *
 * 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: table.c,v 1.4 1995/05/30 07:58:18 rgrimes Exp $
 */

#include <apm_bios.h>

struct pseudo_desc {
	unsigned short	limit;
	unsigned long	base __attribute__ ((packed));
};

struct pseudo_desc Idtr_prot = { 0, 0 }; /* filled on run time */
struct pseudo_desc Idtr_real = { 0x400 - 1, 0x0 };
OpenPOWER on IntegriCloud