ata-dma.c (82053) | ata-dma.c (82458) |
---|---|
1/*- 2 * Copyright (c) 1998,1999,2000,2001 S�ren Schmidt 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 S�ren Schmidt 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-dma.c 82053 2001-08-21 11:35:47Z sos $ | 28 * $FreeBSD: head/sys/dev/ata/ata-dma.c 82458 2001-08-28 08:59:17Z sos $ |
29 */ 30 31#include "pci.h" 32#include <sys/param.h> 33#include <sys/systm.h> 34#include <sys/ata.h> 35#include <sys/bio.h> 36#include <sys/malloc.h> --- 366 unchanged lines hidden (view full) --- 403 pci_write_config(parent, 0x53 - devno, 0xc5, 1); 404 scp->mode[ATA_DEV(device)] = ATA_UDMA4; 405 return; 406 } 407 } 408 goto via_82c586; 409 410 case 0x05711106: /* VIA 82C571, 82C586, 82C596, 82C686 */ | 29 */ 30 31#include "pci.h" 32#include <sys/param.h> 33#include <sys/systm.h> 34#include <sys/ata.h> 35#include <sys/bio.h> 36#include <sys/malloc.h> --- 366 unchanged lines hidden (view full) --- 403 pci_write_config(parent, 0x53 - devno, 0xc5, 1); 404 scp->mode[ATA_DEV(device)] = ATA_UDMA4; 405 return; 406 } 407 } 408 goto via_82c586; 409 410 case 0x05711106: /* VIA 82C571, 82C586, 82C596, 82C686 */ |
411 if (ata_find_dev(parent, 0x06861106, 0x40)) { /* 82C686b */ | 411 if (ata_find_dev(parent, 0x06861106, 0x40) || 412 ata_find_dev(parent, 0x30741106, 0)) { /* 82C686b */ |
412 if (udmamode >= 5) { 413 error = ata_command(scp, device, ATA_C_SETFEATURES, 0, 0, 0, 414 ATA_UDMA5, ATA_C_F_SETXFER, ATA_WAIT_READY); 415 if (bootverbose) 416 ata_printf(scp, device, 417 "%s setting UDMA5 on VIA chip\n", 418 (error) ? "failed" : "success"); 419 if (!error) { --- 713 unchanged lines hidden --- | 413 if (udmamode >= 5) { 414 error = ata_command(scp, device, ATA_C_SETFEATURES, 0, 0, 0, 415 ATA_UDMA5, ATA_C_F_SETXFER, ATA_WAIT_READY); 416 if (bootverbose) 417 ata_printf(scp, device, 418 "%s setting UDMA5 on VIA chip\n", 419 (error) ? "failed" : "success"); 420 if (!error) { --- 713 unchanged lines hidden --- |