Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Console device

2 views
Skip to first unread message

Johnny Billquist

unread,
Jan 12, 2011, 9:58:24 AM1/12/11
to
Hi. As a part of me playing around with the vax port for the 86x0
machines, I'm now rewriting the console driver some.
The 86x0 machines actually have four console ports, two of which are for
"human" interfaces, and two for other uses.

I hit a snag though, since sys/dev/cons.c actually limits the minor
numbers for the console device to 0 and 1. Also, for the VAX, 0 and 1
both directs to 0 in the end.

Any suggestion on how I go about getting this to work?
The actual, physical devices on the VAX are all accessed through the
same interrupt and the same I/O registers, so a totally separate driver
and device numbers don't seem like a good way to go.

Johnny

--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-...@muc.de

Johnny Billquist

unread,
Jan 12, 2011, 10:05:46 AM1/12/11
to
On 01/12/11 15:58, Johnny Billquist wrote:
> Hi. As a part of me playing around with the vax port for the 86x0
> machines, I'm now rewriting the console driver some.
> The 86x0 machines actually have four console ports, two of which are for
> "human" interfaces, and two for other uses.
>
> I hit a snag though, since sys/dev/cons.c actually limits the minor
> numbers for the console device to 0 and 1. Also, for the VAX, 0 and 1
> both directs to 0 in the end.
>
> Any suggestion on how I go about getting this to work?
> The actual, physical devices on the VAX are all accessed through the
> same interrupt and the same I/O registers, so a totally separate driver
> and device numbers don't seem like a good way to go.

Hmm. I think I figured it out.
Major #25 is the actual console device. #0 is just redirected there.
Problem solved. I'll just have my new entries in /dev created with the
"right" major number. Sorry for the noise.

0 new messages