1144513Simp/*-
2144611Simp * Copyright (C) 2005 M. Warner Losh. All rights reserved.
3144611Simp *
4144611Simp * Redistribution and use in source and binary forms, with or without
5144611Simp * modification, are permitted provided that the following conditions
6144611Simp * are met:
7144611Simp * 1. Redistributions of source code must retain the above copyright
8144611Simp *    notice, this list of conditions and the following disclaimer.
9144611Simp * 2. Redistributions in binary form must reproduce the above copyright
10144611Simp *    notice, this list of conditions and the following disclaimer in the
11144611Simp *    documentation and/or other materials provided with the distribution.
12144611Simp *
13144611Simp * THIS SOFTWARE IS PROVIDED BY AUTHOR AND CONTRIBUTORS ``AS IS'' AND
14144611Simp * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
15144611Simp * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
16144611Simp * ARE DISCLAIMED.  IN NO EVENT SHALL AUTHOR OR CONTRIBUTORS BE LIABLE
17144611Simp * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
18144611Simp * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
19144611Simp * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
20144611Simp * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
21144611Simp * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
22144611Simp * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
23144611Simp * SUCH DAMAGE.
24144611Simp *
25144611Simp * $FreeBSD: releng/11.0/sys/pc98/include/apm_bios.h 215140 2010-11-11 19:36:21Z jkim $
26144513Simp */
27144513Simp
28144611Simp#ifndef _PC98_INCLUDE_APM_BIOS_H_
29144611Simp#define _PC98_INCLUDE_APM_BIOS_H_
30144611Simp
31144611Simp/*
32144611Simp * PC98 machines implement APM bios in nearly the same was as i386 machines,
33144611Simp * so include the i386 version and note the changes here.
34144611Simp */
35215140Sjkim#include <x86/apm_bios.h>
36144611Simp
37144611Simp/*
38144611Simp * APM BIOS and interrupt are different on pc98
39144611Simp */
40144611Simp#undef APM_BIOS
41144611Simp#undef APM_INT
42144611Simp#define APM_BIOS		0x9a
43144611Simp#define APM_INT			0x1f
44144611Simp
45144611Simp
46144611Simp/*
47144611Simp * PC98 also has different GETPWSTATUS and DRVVERSION calls.  I believe that
48144611Simp * these only work on newer APM BIOSes, but haven't confirmed that recently
49144611Simp */
50144611Simp#undef APM_GETPWSTATUS
51144611Simp#undef APM_DRVVERSION
52144611Simp#define	APM_GETPWSTATUS		0x3a
53144611Simp#define APM_DRVVERSION		0x3e
54144611Simp
55144611Simp#endif /* ! _PC98_INCLUDE_APM_BIOS_H_ */
56