Subject: CVS commit: src/sys/dev
To: None <>
From: Charles M. Hannum <>
List: source-changes
Date: 09/05/2003 01:02:52
Module Name:	src
Committed By:	mycroft
Date:		Fri Sep  5 01:02:52 UTC 2003

Modified Files:
	src/sys/dev/ic: i82365.c i82365var.h
	src/sys/dev/isa: i82365_isasubr.c

Log Message:
Several changes to eliminate bogus controllers and sockets from being found:

PCIC_VENDOR_CIRRUS_*: Collapse the 2 chips into one vendor ID.

pcic_ident_ok(): Check the ID revision field -- if it's 0, punt.

pcic_vendor(): Check the ID revision field -- if it's 0, or the ID register
is all-1s, assume there is no chip present.  (Previously this would return
"Unknown controller" -- which, AFAICT, *never* resulted in a working device.)
Do the Cirrus check only after verifying that we got the Intel ID.

pcic_attach(): Use a priori knowledge of the Cirrus chips to determine the
number of sockets rather than trying (unsuccessfully) to probe.  Also, just
blast all of PCIC_INTR -- we do this in pcic_deactivate_card() anyway.

To generate a diff of this commit:
cvs rdiff -r1.74 -r1.75 src/sys/dev/ic/i82365.c
cvs rdiff -r1.17 -r1.18 src/sys/dev/ic/i82365var.h
cvs rdiff -r1.32 -r1.33 src/sys/dev/isa/i82365_isasubr.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.