Deleted Added
full compact
ata-pci.c (94426) ata-pci.c (94826)
1/*-
2 * Copyright (c) 1998,1999,2000,2001,2002 S�ren Schmidt <sos@FreeBSD.org>
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 11 unchanged lines hidden (view full) ---

20 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
21 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
22 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
23 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
24 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27 *
1/*-
2 * Copyright (c) 1998,1999,2000,2001,2002 S�ren Schmidt <sos@FreeBSD.org>
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 11 unchanged lines hidden (view full) ---

20 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
21 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
22 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
23 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
24 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27 *
28 * $FreeBSD: head/sys/dev/ata/ata-pci.c 94426 2002-04-11 11:04:23Z sos $
28 * $FreeBSD: head/sys/dev/ata/ata-pci.c 94826 2002-04-16 08:30:51Z sos $
29 */
30
31#include "opt_ata.h"
32#include <sys/param.h>
33#include <sys/systm.h>
34#include <sys/kernel.h>
35#include <sys/disk.h>
36#include <sys/module.h>

--- 186 unchanged lines hidden (view full) ---

223 return "AMD 756 ATA66 controller";
224
225 case 0x74111022:
226 return "AMD 766 ATA100 controller";
227
228 case 0x74411022:
229 return "AMD 768 ATA100 controller";
230
29 */
30
31#include "opt_ata.h"
32#include <sys/param.h>
33#include <sys/systm.h>
34#include <sys/kernel.h>
35#include <sys/disk.h>
36#include <sys/module.h>

--- 186 unchanged lines hidden (view full) ---

223 return "AMD 756 ATA66 controller";
224
225 case 0x74111022:
226 return "AMD 766 ATA100 controller";
227
228 case 0x74411022:
229 return "AMD 768 ATA100 controller";
230
231 case 0x01bc10de:
232 return "nVIDIA nForce ATA100 controller";
233
231 case 0x02111166:
232 return "ServerWorks ROSB4 ATA33 controller";
233
234 case 0x02121166:
235 if (pci_get_revid(dev) >= 0x92)
236 return "ServerWorks CSB5 ATA100 controller";
237 else
238 return "ServerWorks CSB5 ATA66 controller";

--- 221 unchanged lines hidden (view full) ---

460 if (ata_find_dev(dev, 0x06861106, 0x40) ||
461 ata_find_dev(dev, 0x82311106, 0x10))
462 ata_via_southbridge_fixup(dev);
463 /* FALLTHROUGH */
464
465 case 0x74091022: /* AMD 756 default setup */
466 case 0x74111022: /* AMD 766 default setup */
467 case 0x74411022: /* AMD 768 default setup */
234 case 0x02111166:
235 return "ServerWorks ROSB4 ATA33 controller";
236
237 case 0x02121166:
238 if (pci_get_revid(dev) >= 0x92)
239 return "ServerWorks CSB5 ATA100 controller";
240 else
241 return "ServerWorks CSB5 ATA66 controller";

--- 221 unchanged lines hidden (view full) ---

463 if (ata_find_dev(dev, 0x06861106, 0x40) ||
464 ata_find_dev(dev, 0x82311106, 0x10))
465 ata_via_southbridge_fixup(dev);
466 /* FALLTHROUGH */
467
468 case 0x74091022: /* AMD 756 default setup */
469 case 0x74111022: /* AMD 766 default setup */
470 case 0x74411022: /* AMD 768 default setup */
471 case 0x01bc10de: /* nVIDIA nForce default setup */
468 /* set prefetch, postwrite */
469 pci_write_config(dev, 0x41, pci_read_config(dev, 0x41, 1) | 0xf0, 1);
470
471 /* set fifo configuration half'n'half */
472 pci_write_config(dev, 0x43,
473 (pci_read_config(dev, 0x43, 1) & 0x90) | 0x2a, 1);
474
475 /* set status register read retry */

--- 384 unchanged lines hidden ---
472 /* set prefetch, postwrite */
473 pci_write_config(dev, 0x41, pci_read_config(dev, 0x41, 1) | 0xf0, 1);
474
475 /* set fifo configuration half'n'half */
476 pci_write_config(dev, 0x43,
477 (pci_read_config(dev, 0x43, 1) & 0x90) | 0x2a, 1);
478
479 /* set status register read retry */

--- 384 unchanged lines hidden ---