Deleted Added
full compact
28c28
< * $FreeBSD: head/sys/dev/ata/ata-dma.c 64307 2000-08-06 19:51:58Z sos $
---
> * $FreeBSD: head/sys/dev/ata/ata-dma.c 64479 2000-08-10 07:34:49Z sos $
123c123
< pci_write_config(parent, 0x54, word54 & ~(0x1000<<devno),2);
---
> pci_write_config(parent, 0x54, word54 | (0x1000<<devno), 2);
129,134c129,131
< if (udmamode >= 4) {
< int16_t word54;
<
< word54 = pci_read_config(parent, 0x54, 2);
< pci_write_config(parent, 0x54, word54 & ~(0x1000 << devno), 2);
< }
---
> /* make sure eventual ATA100 mode from the BIOS is disabled */
> pci_write_config(parent, 0x54,
> pci_read_config(parent, 0x54, 2) & ~(0x1000<<devno),2);
163,168c160,162
< if (udmamode >= 2) {
< int16_t word54;
<
< word54 = pci_read_config(parent, 0x54, 2);
< pci_write_config(parent, 0x54, word54 & ~(1 << devno), 2);
< }
---
> /* make sure eventual ATA66 mode from the BIOS is disabled */
> pci_write_config(parent, 0x54,
> pci_read_config(parent, 0x54, 2) & ~(1 << devno), 2);
194a189,191
> /* make sure eventual ATA33 mode from the BIOS is disabled */
> pci_write_config(parent, 0x48,
> pci_read_config(parent, 0x48, 4) & ~(1 << devno), 4);