Subject: Fix for missing cg4poll, etc.
To: None <port-sparc@NetBSD.ORG>
From: Gordon W. Ross <gwr@mc.com>
List: port-sparc
Date: 10/22/1996 11:27:49
Now that the cdev_fb_init() macro demands a "poll" function,
all frame-buffer (FB) drivers need that defined somehow.
In the, sparc port, wrappers were added to each FB driver.

I prefer to fix the problem in conf.c rather than adding a
do-nothing wrapper to every frame-buffer driver.

Just wanted to share the idea...
Gordon


*** sun3/conf.c.orig	Tue Oct 15 13:02:16 1996
--- sun3/conf.c	Sun Oct 20 21:55:53 1996
***************
*** 145,156 ****
--- 145,163 ----
  cdev_decl(ptc);
  
  /* frame-buffer devices */
+ #define fbpoll seltrue
  cdev_decl(fb);
+ 
  #include "bwtwo.h"
+ #define bw2poll seltrue
  cdev_decl(bw2);
+ 
  #include "cgtwo.h"
+ #define cg2poll seltrue
  cdev_decl(cg2);
+ 
  #include "cgfour.h"
+ #define cg4poll seltrue
  cdev_decl(cg4);
  
  cdev_decl(log);