bug-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: gnumach2 & the serial port


From: Roland McGrath
Subject: Re: gnumach2 & the serial port
Date: Sat, 8 Feb 2003 21:30:30 -0500 (EST)

> I'm quite sure that "@address@hidden" is wrong.  The syntax for bus tree
> walk is for me a bit cryptic (oskit/unsupported/bus_walk_lookup.c).

It's intended to be adequately featureful and straightforward for
mechanical purposes, not intuitive.

> oskit_dump_devices() dumps following tree for sio devices:
> 
>   Current hardware tree:
>     isa.isa                Industry Standard Architecture (ISA) Bus
>       0x02f8.sio           PC serial port driver
> 
> So it should be "@>:address@hidden", right? 

It depends what you want.  @foo means "position string foo".  @address@hidden
means exactly the second line given that tree above.  @>:address@hidden would
find the first sio device at whatever address, on any isabus no matter how
far down from the root bus.

So if /dev/ttyS1 should be "the COM2 serial port given canonical hardware",
then @address@hidden is right.  If it should be "the second port using the sio
driver on the first isa bus", then @>:address@hidden is right.  We don't
have a proper COM interface for serial devices, but if we had one and you
wanted "the second serial port in the system", then @+1>:serialdev would be
right.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]