From owner-freebsd-hackers Fri Jan 10 12:59:40 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id MAA02204 for hackers-outgoing; Fri, 10 Jan 1997 12:59:40 -0800 (PST) Received: from Sisyphos.MI.Uni-Koeln.DE (Sisyphos.MI.Uni-Koeln.DE [134.95.212.10]) by freefall.freebsd.org (8.8.4/8.8.4) with SMTP id MAA02175 for ; Fri, 10 Jan 1997 12:59:32 -0800 (PST) Received: from x14.mi.uni-koeln.de (annexr2-43.slip.Uni-Koeln.DE) by Sisyphos.MI.Uni-Koeln.DE with SMTP id AA01657 (5.67b/IDA-1.5 for ); Fri, 10 Jan 1997 21:59:23 +0100 Received: (from se@localhost) by x14.mi.uni-koeln.de (8.8.4/8.6.9) id VAA04651; Fri, 10 Jan 1997 21:59:19 +0100 (CET) Message-Id: Date: Fri, 10 Jan 1997 21:59:19 +0100 From: se@freebsd.org (Stefan Esser) To: dwhite@resnet.uoregon.edu (Doug White) Cc: hackers@freebsd.org Subject: Re: ncr probe FAILS on 2.2-BETA_A! References: X-Mailer: Mutt 0.55-PL15 Mime-Version: 1.0 In-Reply-To: ; from Doug White on Jan 10, 1997 00:38:52 -0800 Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Well, I forgot to include the context diff ... Here it comes: Index: ncr.c =================================================================== RCS file: /usr/cvs/src/sys/pci/ncr.c,v retrieving revision 1.82.2.5 retrieving revision 1.82 diff -C2 -r1.82.2.5 -r1.82 *** ncr.c 1997/01/06 21:12:40 1.82.2.5 --- ncr.c 1996/10/14 10:09:52 1.82 *************** *** 4419,4426 **** */ ! burstlen = 0xc0; /* XXX 53c875 needs code change to */ ! /* be able to use larger bursts */ ! OUTB (nc_istat, 0x00 ); /* Remove Reset, abort ... */ OUTB (nc_scntl0, 0xca ); /* full arb., ena parity, par->ATN */ OUTB (nc_scntl1, 0x00 ); /* odd parity, and remove CRST!! */ --- 4416,4429 ---- */ ! #ifndef __NetBSD__ ! if (pci_max_burst_len < 4) { ! static u_char tbl[4]={0,0,0x40,0x80}; ! burstlen = tbl[pci_max_burst_len]; ! } else burstlen = 0xc0; ! #else /* !__NetBSD__ */ ! burstlen = 0xc0; ! #endif /* __NetBSD__ */ ! OUTB (nc_istat, 0 ); /* Remove Reset, abort ... */ OUTB (nc_scntl0, 0xca ); /* full arb., ena parity, par->ATN */ OUTB (nc_scntl1, 0x00 ); /* odd parity, and remove CRST!! */