Changeset 42 for trunk/src/os2ahci/pci.c
- Timestamp:
- Nov 10, 2010, 11:14:21 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/os2ahci/pci.c
r39 r42 34 34 * OEMHLP constants for PCI access 35 35 */ 36 #define GENERIC_IOCTL 0x10 36 #define GENERIC_IOCTL 0x10 37 37 #define OH_CATEGORY 0x00 38 38 #define OH_FUNC_PCI 0x0b … … 100 100 101 101 } OH_PARM; 102 102 103 103 /****************************************************************************** 104 104 * OEMHLP IOCtl data union. The data area is generally used as output from the … … 238 238 239 239 /* ATI */ 240 { PCI_VDEVICE(ATI, 0x4380), board_ahci_sb600, "SB600"}, /* ATI SB600 */240 { PCI_VDEVICE(ATI, 0x4380), board_ahci_sb600, chip_sb600 }, /* ATI SB600 */ 241 241 { PCI_VDEVICE(ATI, 0x4390), board_ahci_sb700, chip_sb700 }, /* ATI SB700/800 */ 242 242 { PCI_VDEVICE(ATI, 0x4391), board_ahci_sb700, chip_sb700 }, /* ATI SB700/800 */ … … 415 415 } 416 416 417 /* Go through the list of PCI IDs and search for each device 417 /* Go through the list of PCI IDs and search for each device 418 418 * 419 419 * NOTES: … … 538 538 if (pci_read_conf(bus, dev_func, 0x08, sizeof(ULONG), &val) != OH_SUCCESS) { 539 539 return; 540 } 540 } 541 541 class = (u32) (val >> 8); 542 542 … … 744 744 ad_info->irq = irq; 745 745 ad_info->mmio_phys = resource.MEMResource.MemBase; 746 746 747 747 /* allocate memory for port-specific DMA scratch buffers */ 748 748 if (DevHelp_AllocPhys((long) AHCI_PORT_PRIV_DMA_SZ * AHCI_MAX_PORTS, … … 925 925 * to be called to a stack variable because the inter-device driver calling 926 926 * convention forces us to set DS to the device driver's data segment and ES 927 * to the segment of the request packet. 927 * to the segment of the request packet. 928 928 */ 929 929 func = oemhlp.ProtIDCEntry; … … 970 970 971 971 switch(id) { 972 972 973 973 case PCI_VENDOR_ID_AL: 974 974 return "Ali"; … … 1003 1003 break; 1004 1004 } 1005 1005 1006 1006 return "Generic"; 1007 1007 … … 1017 1017 1018 1018 for (i = 0; pci_ids[i].vendor != 0; i++) { 1019 1019 1020 1020 if (pci_ids[i].device == device) { 1021 1021 return pci_ids[i].chipname; 1022 1022 } 1023 1023 1024 1024 } 1025 1025
Note:
See TracChangeset
for help on using the changeset viewer.