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

Re: 2nd controller not found



Thanks for the tip. I made the changes to do a
wdcreset and nothing changed at all. Anyone else
have any ideas?


Thanks,
Steve



> Index: wdc.c
> ===================================================================
> RCS file: /cvs/src/sys/dev/isa/wdc.c,v
> retrieving revision 1.31
> diff -u -p -r1.31 wdc.c
> --- wdc.c       1998/07/09 05:37:21     1.31
> +++ wdc.c       1998/07/21 00:20:46
> @@ -182,6 +182,10 @@ wdcprobe(parent, match, aux)
>         }
>         wdc->sc_ioh = ioh;
>  
> +       /* Try a reset before checking for presence by playing with the
> +          registers.   Otherwise the working register test may fail. */
> +       wdcreset(wdc, WDCRESET_SILENT);
> +
>         /* Check if we have registers that work. */
>         /* Error register not writable, */
>         bus_space_write_1(iot, ioh, wd_error, 0x5a);