summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>1999-07-21 02:28:35 +0000
committerpeter <peter@FreeBSD.org>1999-07-21 02:28:35 +0000
commit6e9d0b9630a416540c3196a6db058c651e30c5ce (patch)
treee01d06c0bf9f12c9141796a6671ae6ecb117dbda
parentc4577d552a099afe0c8b21aeeb54b9d13f06bb03 (diff)
downloadFreeBSD-src-6e9d0b9630a416540c3196a6db058c651e30c5ce.zip
FreeBSD-src-6e9d0b9630a416540c3196a6db058c651e30c5ce.tar.gz
Hopefully make the CMD640B workaround actually work.
-rw-r--r--sys/pci/ide_pci.c15
1 files changed, 6 insertions, 9 deletions
diff --git a/sys/pci/ide_pci.c b/sys/pci/ide_pci.c
index 88432dd..1449b3e 100644
--- a/sys/pci/ide_pci.c
+++ b/sys/pci/ide_pci.c
@@ -26,7 +26,7 @@
* OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: ide_pci.c,v 1.35 1999/07/03 18:34:04 peter Exp $
+ * $Id: ide_pci.c,v 1.36 1999/07/20 22:43:53 julian Exp $
*/
#include "wd.h"
@@ -1479,6 +1479,11 @@ ide_pci_attach(pcici_t tag, int unit)
/* set up vendor-specific stuff */
type = pci_conf_read(tag, PCI_ID_REG);
+ if (type == CMD640B_PCI_ID) {
+ wdc_pci(Q_CMD640B);
+ return;
+ }
+
if (type != PROMISE_ULTRA33) {
/* is it busmaster capable? bail if not */
class = pci_conf_read(tag, PCI_CLASS_REG);
@@ -1521,14 +1526,6 @@ ide_pci_attach(pcici_t tag, int unit)
case 0x55131039: /* SiS 5591 */
vp = &vs_sis_5591;
break;
- case CMD640B_PCI_ID: /* CMD 640B IDE */
- wdc_pci(Q_CMD640B);
-/* I'm curious to know if we can disable this and remove the return */
-#if 1
- return;
-#endif
- vp = &vs_generic;
- break;
default:
/* everybody else */
vp = &vs_generic;
OpenPOWER on IntegriCloud