Subject: How to draw pixels on wscons?
To: None <netbsd-help@netbsd.org>
From: Rui-Xiang Guo <rxg@ms25.url.com.tw>
List: netbsd-help
Date: 09/30/2001 23:53:32
Hi,
I try to port a program from Linux which use Linux's frame buffer.
(Unfortunately, we don't have this driver on i386)
So I try to change it by wscons's way, but wscons's graphic function
seem to be dumb. Am I wrong?
Besides, that program have be ported to FreeBSD.
The part of the codes:

static inline void outportb(unsigned short port, char value)
{
    __asm__ ("outb %0, %1"
            :
            : "a" ((char) value),
            "d" ((unsigned short) port));
}
void inline VgaDev::SetBitMask(unsigned char mask)
{
    outportb(GRAPH_ADDR, 9);
    outportb(GRAPH_DATA, mask);
}
#define GRAPH_ADDR  0x3ce
#define GRAPH_DATA  0x3cf

And it access the device /dev/vga.
(Unfortunately, we don't have this driver on current)

Do we have any chance to make it work on NetBSD?