Changeset 79
- Timestamp:
- Feb 24, 2011, 9:56:54 PM (14 years ago)
- Location:
- trunk/src/os2ahci
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/os2ahci/ahci.c
r77 r79 626 626 627 627 /* wait for communication to be re-established after port reset */ 628 while (((tmp = readl(port_mmio + PORT_SCR_STAT) & 3)) != 3) {628 while (((tmp = readl(port_mmio + PORT_SCR_STAT)) & 3) != 3) { 629 629 mdelay(10); 630 630 timeout -= 10; -
trunk/src/os2ahci/init.asm
r76 r79 148 148 PUSH OFFSET readl_dbg_fmt 149 149 CALL _printf 150 ADD SP, 1 2150 ADD SP, 10 151 151 POP EDX ; restore value read from MMIO port 152 152 … … 189 189 PUSH OFFSET writel_dbg_fmt 190 190 CALL _printf 191 ADD SP, 1 2191 ADD SP, 10 192 192 193 193 no_debug2: LEAVE -
trunk/src/os2ahci/os2ahci.def
r77 r79 1 1 library os2ahci 2 Description '$@#thi.guten (www.thiguten.de):1.00.2011022 1#@OS/2 AHCI Adapter Device Driver'2 Description '$@#thi.guten (www.thiguten.de):1.00.20110224#@OS/2 AHCI Adapter Device Driver' 3 3 protmode 4 4 -
trunk/src/os2ahci/pci.c
r77 r79 411 411 int ad_indx = 0; 412 412 int i; 413 int n; 413 414 414 415 ddprintf("scanning PCI bus...\n"); … … 461 462 if (rc == OH_SUCCESS) { 462 463 /* found a device */ 463 if (ad_ignore & (1U << ad_indx++)) { 464 /* ignore this adapter */ 465 continue; 466 } 467 add_pci_device(pci_ids + i, &data); 464 int already_found = 0; 465 466 /* increment index for next loop */ 468 467 if (++index > 180) { 469 468 /* something's wrong here... */ 470 469 return; 471 470 } 471 472 /* check whether we already found this device */ 473 for (n = 0; n < ad_info_cnt; n++) { 474 if (ad_infos[n].bus == data.find_device.bus && 475 ad_infos[n].dev_func == data.find_device.dev_func) { 476 /* this device has already been found (e.g. via thorough scan) */ 477 already_found = 1; 478 break; 479 } 480 } 481 482 if (already_found || (ad_ignore & (1U << ad_indx++))) { 483 /* ignore this device; it has either already been found via a 484 * thorough scan or has been specified to be ignored via command 485 * line option */ 486 continue; 487 } 488 489 /* add this PCI device to ad_infos[] */ 490 add_pci_device(pci_ids + i, &data); 472 491 } 473 492 -
trunk/src/os2ahci/version.h
r77 r79 6 6 7 7 8 #define VERSION 10 4/* driver version (2 implied decimals) */8 #define VERSION 105 /* driver version (2 implied decimals) */ 9 9 10 10 /* BLDLEVEL information (in C source modules added via macro
Note:
See TracChangeset
for help on using the changeset viewer.