Subject: Re: device drivers
To: None <port-arm32@NetBSD.ORG>
From: Robert Black <r.black@ic.ac.uk>
List: port-arm32
Date: 02/21/1997 12:20:33
On Feb 20,  6:26pm, Peter Berg wrote:
> Subject: device drivers
> Hi,
>
> I've written a device driver skeleton and integrated this dummy driver into a
> self compiled kernel. Now the question:
>
> the device will be a on podule and ATM *no* podule is present in my rpc at
> all. Can this be the reason for that the probe and attach functions are not
> executed ?
> If I define the driver as
>
> spdif0 at mainbus?
>
> in the config file derived from the GENERIC file everything works.
> The probe and attach functions are executed and the driver is installed. When
> I try to open the new device I get the status messages they are generated by
> my driver code.
>
> But a spdif0 at podulebus? doesn't work. Why ?

Thats normal. The probe function gets called to identify podules. I wouldn't be
surprised, therefore, if it doesn't get called if there are no podules present
(nothing to identify). Attach should only get called once you've confirmed that
the podule is present.

Cheers

Rob