Subject: Re: conf.c patch to get /dev/pm0
To: None <port-pmax@NetBSD.ORG>
From: Andrew Gallatin <gallatin@isds.Duke.EDU>
List: port-pmax
Date: 05/28/1995 19:06:09
I got Xcfbpmax working on a 5000/25 using the on-board graphics
adaptor after doing the following so I could symlink /dev/mouse ->
/dev/xcfb0.
Its also using a lot of CPU..
Drew
(This includes Arne's earlier patch to get /dev/pm0; not nearly as
compact though.. )
*** conf.c.orig Fri Apr 21 06:06:34 1995
--- conf.c Sun May 28 17:58:26 1995
***************
*** 117,120 ****
--- 117,124 ----
#include "fb.h"
cdev_decl(fb);
+ #include "pm.h"
+ cdev_decl(pm);
+ #include "xcfb.h"
+ cdev_decl(xcfb);
struct cdevsw cdevsw[] =
***************
*** 128,132 ****
cdev_log_init(1,log), /* 6: /dev/klog */
cdev_fd_init(1,fd), /* 7: file descriptor pseudo-dev */
! cdev_notdef(), /* 8: 2100/3100 frame buffer */
cdev_notdef(), /* 9: old slot for SCSI disk */
cdev_tape_init(NTZ,tz), /* 10: SCSI tape */
--- 132,136 ----
cdev_log_init(1,log), /* 6: /dev/klog */
cdev_fd_init(1,fd), /* 7: file descriptor pseudo-dev */
! cdev_fb_init(NPM,pm), /* 8: 2100/3100 frame buffer */
cdev_notdef(), /* 9: old slot for SCSI disk */
cdev_tape_init(NTZ,tz), /* 10: SCSI tape */
***************
*** 134,138 ****
cdev_bpftun_init(NBPFILTER,bpf),/* 12: Berkeley packet filter */
cdev_notdef(), /* 13: color frame buffer */
! cdev_notdef(), /* 14: maxine color frame buffer */
cdev_tty_init(NDTOP,dtop), /* 15: desktop bus interface */
cdev_tty_init(NDC,dc), /* 16: dc7085 serial interface */
--- 138,142 ----
cdev_bpftun_init(NBPFILTER,bpf),/* 12: Berkeley packet filter */
cdev_notdef(), /* 13: color frame buffer */
! cdev_fb_init(NXCFB,xcfb), /* 14: maxine color frame buffer */
cdev_tty_init(NDTOP,dtop), /* 15: desktop bus interface */
cdev_tty_init(NDC,dc), /* 16: dc7085 serial interface */