Move pc98 specific parts to the pc98 specific file.

This commit is contained in:
Yoshihiro Takahashi 2005-04-13 13:12:12 +00:00
parent 99a4a4cabc
commit 91649ac9bd
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=145010
4 changed files with 69 additions and 14 deletions

View File

@ -33,12 +33,7 @@ struct clockframe;
int acquire_timer2(int mode);
int release_timer2(void);
#ifndef PC98
int rtcin(int val);
#else
int acquire_timer1(int mode);
int release_timer1(void);
#endif
int sysbeep(int pitch, int period);
void timer_restore(void);
void init_TSC(void);

View File

@ -37,12 +37,7 @@
/* Monochrome attributes for foreground text */
#ifdef PC98
/* PC-98 attributes for foreground text */
#define FG_UNDERLINE 0x08
#else
#define FG_UNDERLINE 0x01
#endif
#define FG_INTENSE 0x08
/* Monochrome attributes for text background */

View File

@ -1,6 +1,38 @@
/*-
* This file is in the public domain.
* Copyright (C) 2005 TAKAHASHI Yoshihiro. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* THIS SOFTWARE IS PROVIDED BY AUTHOR AND CONTRIBUTORS ``AS IS'' AND
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
* ARE DISCLAIMED. IN NO EVENT SHALL AUTHOR OR CONTRIBUTORS BE LIABLE
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
* OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* $FreeBSD$
*/
/* $FreeBSD$ */
#ifndef _PC98_INCLUDE_CLOCK_H_
#define _PC98_INCLUDE_CLOCK_H_
#include <i386/clock.h>
#ifdef _KERNEL
int acquire_timer1(int);
int release_timer1(void);
#endif
#endif /* _PC98_INCLUDE_CLOCK_H_ */

View File

@ -1,6 +1,39 @@
/*-
* This file is in the public domain.
* Copyright (C) 2005 TAKAHASHI Yoshihiro. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* THIS SOFTWARE IS PROVIDED BY AUTHOR AND CONTRIBUTORS ``AS IS'' AND
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
* ARE DISCLAIMED. IN NO EVENT SHALL AUTHOR OR CONTRIBUTORS BE LIABLE
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
* OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* $FreeBSD$
*/
/* $FreeBSD$ */
#ifndef _PC98_INCLUDE_PC_DISPLAY_H_
#define _PC98_INCLUDE_PC_DISPLAY_H_
#include <i386/pc/display.h>
/*
* PC-98 attributes for foreground text.
*/
#undef FG_UNDERLINE
#define FG_UNDERLINE 0x08
#endif /* !_PC98_INCLUDE_PC_DISPLAY_H_ */