On Mon, Jun 13, 2011 at 11:15:44PM -0700, Matthew Dempsky wrote:
> isa(4) is an indirect bus, which means that drivers that attach to it
> need to provide an xxxprobe() method instead of an xxxmatch() method.
> The critical difference is xxxprobe() is given a device softc for the
> second argument, whereas a xxxmatch() is given the cfdata as the
> second argument.
> 
> However, a number of our ISA device drivers treat the second argument
> as a cfdata instead of a softc.  Diff below addresses this.  (Only
> complication: unlike isa(4), isapnp(4) is a direct bus, and if_we.c
> used the same probe/match code for both.)
> 
> Does this look right?  (Compile tested on i386, but I don't have any
> ISA hardware, and I'm not having any luck with qemu's "isapc" machine
> at the moment...)
> 

Appears to make sense to me, but I have no hardware to test with.

.... Ken

Reply via email to