Subject: Re: Snapshot 20030927 available
To: Christopher SEKIYA <wileyc@rezrov.net>
From: Jason Thorpe <thorpej@wasabisystems.com>
List: port-sgimips
Date: 09/28/2003 17:24:10
On Sunday, September 28, 2003, at 05:35  AM, Christopher SEKIYA wrote:

> Index: ahc_pci.c
> ===================================================================
> RCS file: /cvsroot/src/sys/dev/pci/ahc_pci.c,v
> retrieving revision 1.43
> diff -u -r1.43 ahc_pci.c
> --- ahc_pci.c	2003/08/18 09:16:22	1.43
> +++ ahc_pci.c	2003/09/28 12:33:44
> @@ -785,6 +785,14 @@
>  	const char        *intrstr;
>  	struct ahc_pci_busdata *bd;
>
> +#if defined(AHC_BROKEN_SEEPROM)
> +	/* Some on-board implementations (notably the SGI O2)
> +	   seem to have a SEEPROM but it is either filled with nonsense or
> +	   imaginary.  In these cases, use the chip's defaults and avoid
> +	   the BIOS. */
> +	ahc->flags = AHC_USEDEFAULTS | AHC_NO_BIOS_INIT;
> +#endif
> +

This is not an acceptable solution, either.  What about add-in ahc 
cards that might be plopped into a PCI slot that have totally valid 
EEPROM info?

Perhaps you could use props to note that just the on-board ahc is 
broken.

         -- Jason R. Thorpe <thorpej@wasabisystems.com>