FreeBSD Bugzilla – Attachment 7949 Details for
Bug 16912
add UDMA4 mode for Intel ICH
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 1.23 KB, created by
sakichan
on 2000-02-22 17:40:01 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
sakichan
Created:
2000-02-22 17:40:01 UTC
Size:
1.23 KB
patch
obsolete
>--- src/sys/dev/ata/ata-dma.c-orig Sat Feb 19 05:57:29 2000 >+++ src/sys/dev/ata/ata-dma.c Tue Feb 22 02:46:56 2000 >@@ -96,9 +96,33 @@ > > switch (scp->chiptype) { > >+ case 0x24118086: /* Intel ICH */ >+ if (udmamode >= 4) { >+ int32_t mask48, new48, new54; >+ >+ new54 = pci_read_config(parent, 0x54, 2); >+ if (new54 & ( 1<< (devno+4))) { >+ error = ata_command(scp, device, ATA_C_SETFEATURES, 0, 0, 0, >+ ATA_UDMA4, ATA_C_F_SETXFER, ATA_WAIT_READY); >+ if (bootverbose) >+ ata_printf(scp, device, "ICH setting up UDMA4 mode on %s chip\n", >+ (error) ? "failed" : "success"); >+ if (!error) { >+ mask48 = (1 << devno) + (3 << (16 + (devno << 2))); >+ new48 = (1 << devno) + (2 << (16 + (devno << 2))); >+ pci_write_config(parent, 0x48, >+ (pci_read_config(parent, 0x48, 4) & >+ ~mask48) | new48, 4); >+ pci_write_config(parent, 0x54, new54 | (1 << devno), 2); >+ scp->mode[ATA_DEV(device)] = ATA_UDMA4; >+ return; >+ } >+ } >+ } >+ /* FALLTHROUGH */ >+ > case 0x71118086: /* Intel PIIX4 */ > case 0x71998086: /* Intel PIIX4e */ >- case 0x24118086: /* Intel ICH */ > case 0x24218086: /* Intel ICH0 */ > if (udmamode >= 2) { > int32_t mask48, new48;
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 16912
: 7949