Changeset 42
- Timestamp:
- Nov 10, 2010, 11:14:21 AM (15 years ago)
- Location:
- trunk/src/os2ahci
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/os2ahci/ahci.c
r37 r42 1441 1441 ai->ports[p].devs[d].removable = (id_buf[ATA_ID_CONFIG] & 0x0080U) != 0; 1442 1442 ai->ports[p].devs[d].dev_type = UIB_TYPE_DISK; 1443 1443 1444 1444 if (id_buf[ATA_ID_CONFIG] & 0x8000U) { 1445 1445 /* this is an ATAPI device; augment device information */ … … 1453 1453 /* MT: set ncq_max to 1 if NCQ is disabled for this port */ 1454 1454 ai->ports[p].devs[d].ncq_max = 1; 1455 dprintf("NCQ off for a:%d p:%d\n", (int) ad_no(ai), p); 1455 1456 } else { 1456 1457 ai->ports[p].devs[d].ncq_max = id_buf[ATA_ID_QUEUE_DEPTH] & 0x001fU; 1458 dprintf("NCQ max=%d for a:%d p:%d\n", ai->ports[p].devs[d].ncq_max, (int) ad_no(ai), p); 1457 1459 } 1458 1460 -
trunk/src/os2ahci/os2ahci.c
r41 r42 155 155 /* parse command line parameters */ 156 156 cmd_line = (char _far *) ((u32) ddd_pl & 0xffff0000l) + ddd_pl->cmd_line_args; 157 adapter_index = 0;158 port_index = 0;159 157 160 158 for (s = cmd_line; *s != 0; s++) { … … 238 236 } 239 237 } 238 239 phex(disable_ncq, sizeof(disable_ncq), "disable_ncq dump:\n"); 240 240 241 241 /* scan PCI bus for supported devices */ -
trunk/src/os2ahci/os2ahci.def
r40 r42 1 1 library os2ahci 2 Description '$@#thi.guten (www.thiguten.de):1.00.201011 09#@OS/2 AHCI Adapter Device Driver'2 Description '$@#thi.guten (www.thiguten.de):1.00.20101110#@OS/2 AHCI Adapter Device Driver' 3 3 protmode 4 4 -
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.