Subject: Re: Attaching devices
To: None <netbsd-help@netbsd.org>
From: James Sharp <jsharp@psychoses.org>
List: netbsd-help
Date: 01/12/2001 00:21:58
On 11 Jan 2001 eeh@netbsd.org wrote:
>
> The main question I have...is the "com" device (and other serial
> interface devices) attachable to? Or is there a better way of doing this?
>
> In order for a device node to allow children to attach
> to it, the device must be a bus node. To do that you
> need to add `{ }' to he device node in the files file.
>
in /sys/sys/conf/files....I didn't change anything here.
defopt opt_com.h COM16650 COM_HAYESP COM_DEBUG COM_MPLOCK
device com { } : tty
file dev/ic/com.c com needs-flag
in /sys/dev/onewire/files.onewire
device onewire
attach onewire at com
file dev/onewire/onewire.c onewire
Am I getting close?