Make configurable with no frame buffer.
This commit is contained in:
parent
5d4a051b53
commit
468355c5f0
|
@ -1,3 +1,5 @@
|
|||
/* $NetBSD: kb_ctrl.c,v 1.3 1998/12/26 00:53:49 tsubai Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1992, 1993
|
||||
* The Regents of the University of California. All rights reserved.
|
||||
|
@ -56,6 +58,8 @@
|
|||
#include <newsmips/dev/kbreg.h>
|
||||
#endif
|
||||
|
||||
#include "fb.h"
|
||||
|
||||
extern int tmode;
|
||||
extern int kbd_status;
|
||||
|
||||
|
@ -83,12 +87,17 @@ Key_table *key_table_addr = default_table;
|
|||
#include <machine/mouse.h>
|
||||
#include <newsmips/dev/scc.h>
|
||||
|
||||
extern int bmcnrint();
|
||||
extern int bmcnrint __P((char));
|
||||
extern void rst_dimmer_cnt __P((void));
|
||||
extern int kbd_encode __P((int));
|
||||
extern int mskeytrigger __P((int, int, int));
|
||||
extern int kbd_ioctl(), kbd_string(), kbd_repeat();
|
||||
|
||||
#if NFB == 0
|
||||
#define bmcnrint(x)
|
||||
#define rst_dimmer_cnt()
|
||||
#endif
|
||||
|
||||
int
|
||||
kbd_open(chan)
|
||||
int chan;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: kb_encode.c,v 1.3 1998/06/01 19:31:04 tsubai Exp $ */
|
||||
/* $NetBSD: kb_encode.c,v 1.4 1998/12/26 00:53:49 tsubai Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1992, 1993
|
||||
|
@ -52,16 +52,16 @@
|
|||
#define KM_JIS 1
|
||||
#define KM_EUC 2
|
||||
|
||||
extern int tmode;
|
||||
extern int country;
|
||||
extern Pfk_table pfk_table[];
|
||||
extern Pfk_table pfk_init[];
|
||||
extern Key_table *key_table_addr;
|
||||
|
||||
int kbd_status;
|
||||
int shifttype;
|
||||
extern int country;
|
||||
extern int iscaps;
|
||||
|
||||
int tmode;
|
||||
int kbd_status;
|
||||
int shifttype;
|
||||
|
||||
extern int put_code();
|
||||
|
||||
static int kbd_shift(), kbd_pfunc(), kbd_normal(), put_kana();
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
/* $NetBSD: ms.c,v 1.3 1998/12/26 00:53:49 tsubai Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1992, 1993
|
||||
* The Regents of the University of California. All rights reserved.
|
||||
|
@ -38,12 +40,13 @@
|
|||
* @(#)ms.c 8.1 (Berkeley) 6/11/93
|
||||
*/
|
||||
|
||||
#include "ms.h"
|
||||
#if NMS > 0
|
||||
/*
|
||||
* mouse
|
||||
*/
|
||||
|
||||
#include "fb.h"
|
||||
#include "ms.h"
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <machine/cpu.h>
|
||||
#include <sys/param.h>
|
||||
|
@ -63,6 +66,12 @@
|
|||
#include <newsmips/dev/msreg.h>
|
||||
#include <newsmips/dev/scc.h>
|
||||
|
||||
#if NFB == 0
|
||||
#define lock_bitmap()
|
||||
#define updateCursor(x, y, flag)
|
||||
#define unlock_bitmap()
|
||||
#endif
|
||||
|
||||
#ifndef mips
|
||||
#define volatile
|
||||
#endif
|
||||
|
@ -95,12 +104,11 @@ static int msputevent __P((int, int, int, int));
|
|||
static void msconv __P((int, char[]));
|
||||
static void mscheckevent __P((int));
|
||||
|
||||
|
||||
extern void kbm_open(int);
|
||||
extern void kbm_close(int);
|
||||
extern void lock_bitmap();
|
||||
extern void updateCursor();
|
||||
extern void unlock_bitmap();
|
||||
extern void lock_bitmap __P((void));
|
||||
extern void updateCursor __P((int *, int *, int));
|
||||
extern void unlock_bitmap __P((void));
|
||||
extern void selwakeup();
|
||||
extern int xgetc();
|
||||
|
||||
|
@ -731,4 +739,3 @@ _ms_helper(unit)
|
|||
}
|
||||
}
|
||||
}
|
||||
#endif /* NMS > 0 */
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: conf.c,v 1.3 1998/11/13 04:47:06 oster Exp $ */
|
||||
/* $NetBSD: conf.c,v 1.4 1998/12/26 00:53:49 tsubai Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1992, 1993
|
||||
|
@ -141,7 +141,7 @@ struct cdevsw cdevsw[] =
|
|||
cdev_notdef(), /* 19: vme */
|
||||
cdev_notdef(), /* 20: gpib */
|
||||
cdev_notdef(), /* 21: rd */
|
||||
cdev_tty_init(1,bmcn), /* 22: bitmap console (was zd XXX) */
|
||||
cdev_tty_init(NFB,bmcn), /* 22: bitmap console (was zd XXX) */
|
||||
cdev_notdef(), /* 23: ether */
|
||||
cdev_bpftun_init(NBPFILTER,bpf),/* 24: Berkeley packet filter */
|
||||
cdev_bpftun_init(NTUN,tun), /* 25: network tunnel */
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
/* $NetBSD: cpu_cons.c,v 1.2 1998/12/26 00:53:49 tsubai Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1988 University of Utah.
|
||||
* Copyright (c) 1992, 1993
|
||||
|
@ -85,7 +87,7 @@ consinit()
|
|||
setup_fnt();
|
||||
setup_fnt24();
|
||||
#else
|
||||
dipsw &= SW_CONSOLE;
|
||||
dipsw &= ~SW_CONSOLE;
|
||||
#endif /* NFB > 0 */
|
||||
|
||||
switch (dipsw & SW_CONSOLE) {
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: machdep.c,v 1.16 1998/09/28 23:42:48 erh Exp $ */
|
||||
/* $NetBSD: machdep.c,v 1.17 1998/12/26 00:53:49 tsubai Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1988 University of Utah.
|
||||
|
@ -43,7 +43,7 @@
|
|||
|
||||
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
|
||||
|
||||
__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.16 1998/09/28 23:42:48 erh Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.17 1998/12/26 00:53:49 tsubai Exp $");
|
||||
|
||||
/* from: Utah Hdr: machdep.c 1.63 91/04/24 */
|
||||
|
||||
|
@ -102,8 +102,9 @@ __KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.16 1998/09/28 23:42:48 erh Exp $");
|
|||
#include <dev/cons.h>
|
||||
|
||||
/* the following is used externally (sysctl_hw) */
|
||||
char machine[] = MACHINE; /* from <machine/param.h> */
|
||||
char cpu_model[30];
|
||||
char machine[] = MACHINE; /* from <machine/param.h> */
|
||||
char machine_arch[] = MACHINE_ARCH;
|
||||
char cpu_model[30];
|
||||
|
||||
/* maps for VM objects */
|
||||
|
||||
|
@ -115,8 +116,8 @@ vm_map_t phys_map = NULL;
|
|||
vm_map_t buffer_map;
|
||||
#endif
|
||||
|
||||
int maxmem; /* max memory per process */
|
||||
int physmem; /* max supported memory, changes to actual */
|
||||
int maxmem; /* max memory per process */
|
||||
int physmem; /* max supported memory, changes to actual */
|
||||
|
||||
phys_ram_seg_t mem_clusters[VM_PHYSSEG_MAX];
|
||||
int mem_cluster_cnt;
|
||||
|
@ -305,6 +306,10 @@ mach_init(x_boothowto, x_bootdev, x_bootname, x_maxmem)
|
|||
|
||||
switch (i) {
|
||||
|
||||
default:
|
||||
printf("kernel not configured for systype 0x%x\n", i);
|
||||
/* cpu_reboot(RB_HALT | RB_NOSYNC, NULL); */
|
||||
|
||||
#ifdef news3400
|
||||
case 3: /* NWS-3410 */
|
||||
case 6: /* NWS-3470 */
|
||||
|
@ -322,10 +327,6 @@ mach_init(x_boothowto, x_bootdev, x_bootname, x_maxmem)
|
|||
cpuspeed = 10;
|
||||
break;
|
||||
#endif
|
||||
|
||||
default:
|
||||
printf("kernel not configured for systype 0x%x\n", i);
|
||||
cpu_reboot(RB_HALT | RB_NOSYNC, NULL);
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
Loading…
Reference in New Issue