Subject: Writing mouse/keyboard drivers
To: None <port-sgimips@netbsd.org>
From: Robert Boehne <rboehne@attbi.nospam.com>
List: port-sgimips
Date: 05/02/2002 07:58:09
Hello,

I'm attempting to get X running, and so need to write
mouse and keyboard drivers for the Indy.  I looked it over
last night but it is unclear to me where to start.
On my x86, the device is /dev/wsmouseN and the sgimips
conf.c file has:
...
 	cdev_mouse_init(NWSKBD,wskbd),	/* 51: keyboards */
	cdev_mouse_init(NWSMOUSE,
			wsmouse),	/* 52: mice */
...

Somewhere else, (I forget where) the wsmouse device is listed
as "MI" rather than any particular architecture, what does that mean?

Do I need to add support to a wsmouse driver outside of the arch/
tree, or do I need to write an Indy-specific driver for some other
PS/2 device ("pms" maybe?) and hook that up to wsmouse?
How do I locate the PS/2 mouse driver in the x86 port?
Jeff Smith mentioned that the x86 driver would have to
have "lb/sb" changed to "inb/outb", but I fear I need an
explanation of that as well.
I'm just a simple-minded C++ guyafter all.   ;^)

Thanks,

Robert