FreeBSD Bugzilla – Attachment 10980 Details for
Bug 21810
SiS5571 ATA controller does not work on ATA mode.
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 1.13 KB, created by
Junichi Satoh
on 2000-10-07 06:50:01 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
Junichi Satoh
Created:
2000-10-07 06:50:01 UTC
Size:
1.13 KB
patch
obsolete
>*** ata-all.c.org Tue Sep 19 20:08:37 2000 >--- ata-all.c Sat Oct 7 14:32:52 2000 >*************** >*** 233,238 **** >--- 233,263 ---- > return 0; > } > >+ int >+ ata_find_maindev(device_t dev, u_int32_t type, u_int32_t revid) >+ { >+ device_t *children, child; >+ int nchildren, i; >+ >+ if (device_get_children(device_get_parent(dev), &children, &nchildren)) >+ return 0; >+ >+ for (i = 0; i < nchildren; i++) { >+ child = children[i]; >+ >+ /* check that it's on the same silicon and the device we want */ >+ if (pci_get_slot(child) == 0 && >+ pci_get_vendor(child) == (type & 0xffff) && >+ pci_get_device(child) == ((type & 0xffff0000) >> 16) && >+ pci_get_revid(child) >= revid) { >+ free(children, M_TEMP); >+ return 1; >+ } >+ } >+ free(children, M_TEMP); >+ return 0; >+ } >+ > static const char * > ata_pci_match(device_t dev) > { >*************** >*** 275,280 **** >--- 300,307 ---- > return "VIA Apollo ATA controller"; > > case 0x55131039: >+ if (ata_find_maindev(dev, 0x55711039, 0)) >+ return "SiS 5571 ATA controller"; > return "SiS 5591 ATA33 controller"; > > case 0x06461095:
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 21810
: 10980 |
10981
|
10982