vidconsole.c (50477) | vidconsole.c (53207) |
---|---|
1/* 2 * Copyright (c) 1998 Michael Smith (msmith@freebsd.org) 3 * Copyright (c) 1997 Kazutaka YOKOTA (yokota@zodiac.mech.utsunomiya-u.ac.jp) 4 * All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: --- 12 unchanged lines hidden (view full) --- 21 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 22 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 23 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 24 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 25 * SUCH DAMAGE. 26 * 27 * From Id: probe_keyboard.c,v 1.13 1997/06/09 05:10:55 bde Exp 28 * | 1/* 2 * Copyright (c) 1998 Michael Smith (msmith@freebsd.org) 3 * Copyright (c) 1997 Kazutaka YOKOTA (yokota@zodiac.mech.utsunomiya-u.ac.jp) 4 * All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: --- 12 unchanged lines hidden (view full) --- 21 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 22 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 23 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 24 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 25 * SUCH DAMAGE. 26 * 27 * From Id: probe_keyboard.c,v 1.13 1997/06/09 05:10:55 bde Exp 28 * |
29 * $FreeBSD: head/sys/boot/pc98/libpc98/vidconsole.c 50477 1999-08-28 01:08:13Z peter $ | 29 * $FreeBSD: head/sys/boot/pc98/libpc98/vidconsole.c 53207 1999-11-16 00:42:18Z nyan $ |
30 */ 31 32#include <stand.h> 33#include <bootstrap.h> 34#include <btxv86.h> 35#include <machine/psl.h> 36#include "libi386.h" 37#ifdef PC98 --- 603 unchanged lines hidden (view full) --- 641 v86.addr = 0x16; 642 v86.eax = 0x100; 643 v86int(); 644 return(!(v86.efl & PSL_Z)); 645#endif 646} 647 648#if KEYBOARD_PROBE | 30 */ 31 32#include <stand.h> 33#include <bootstrap.h> 34#include <btxv86.h> 35#include <machine/psl.h> 36#include "libi386.h" 37#ifdef PC98 --- 603 unchanged lines hidden (view full) --- 641 v86.addr = 0x16; 642 v86.eax = 0x100; 643 v86int(); 644 return(!(v86.efl & PSL_Z)); 645#endif 646} 647 648#if KEYBOARD_PROBE |
649 |
|
649#ifdef PC98 650static int 651probe_keyboard(void) 652{ 653 return (*(u_char *)PTOV(0xA1481) & 0x48); 654} 655#else /* PC98 */ 656#define PROBE_MAXRETRY 5 --- 144 unchanged lines hidden --- | 650#ifdef PC98 651static int 652probe_keyboard(void) 653{ 654 return (*(u_char *)PTOV(0xA1481) & 0x48); 655} 656#else /* PC98 */ 657#define PROBE_MAXRETRY 5 --- 144 unchanged lines hidden --- |