Subject: Re: maple_attach_dev
To: Marcus Comstedt <thorpej@zembu.com>
From: Andrew Gillham <gillham@vaultron.com>
List: port-dreamcast
Date: 03/16/2001 16:07:46
Are the 3 functions "sub functions" or "multi functions" on these
devices?  You could just create a Maple Multi Function (mmf) device
that attaches and all of the devices connect to it.

Something like:
mmf0 at maple0 port 0 subunit 1
kbd0 at mmf0
lcd0 at mmf0
mmf1 at maple0 port1 subunit 1
vmu0 at mmf1
kbd1 at mmf1
...

So you don't have an actual "vmu" attached, just the functions.  But
if there is a vmu device, plus 3 sub devices, that is a more difficult
problem. :-)

-Andrew


----- Original Message -----
From: "Marcus Comstedt" <marcus@idonex.se>
To: <thorpej@zembu.com>
Cc: <port-dreamcast@netbsd.org>
Sent: Friday, March 16, 2001 3:59 PM
Subject: Re: maple_attach_dev


>
> >>>>> "Jason" == Jason R Thorpe <thorpej@zembu.com> writes:
>
>   Jason> Well, you'd attach:
>
>   Jason> vmu0 at maple0 port 0 subunit 1
>
>   Jason> ..and then vmu_attach() would attach a child for each function it
had:
>
>   Jason> vmubeep0 at vmu0
>   Jason> vmulcd0 at vmu0
>   Jason> vmumem0 at vmu0
>
> And what would the "vmu" driver be able to attach to?  What if you
> have a keyboard with an lcd, whould you do
>
> vmulcd0 at mkbd0
>
> ?  Or would you have a special "kbdlcd" driver?  And if so, why?
>
>
>   // Marcus
>
>
>