Changeset 36
- Timestamp:
- Nov 5, 2010, 1:40:22 PM (15 years ago)
- Location:
- trunk/src
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/include/devhelp.h
r25 r36 3 3 * Markus Thielen 09/2010: 4 4 * some modifications for OpenWatcom/os2ahci.add 5 * 6 * TODO: the Watcom build is broken - the resulting ADD does not work. 5 7 * 6 8 */ -
trunk/src/os2ahci
- Property svn:ignore
-
old new 8 8 *.out 9 9 *.map 10 TAGS 11 bldday.h
-
- Property svn:ignore
-
trunk/src/os2ahci/Makefile
r34 r36 1 1 ############################################################################### 2 # Makefile - makefile for os2ahci driver 2 # Makefile - makefile for os2ahci driver, c600 tool chain 3 3 # 4 # Copyright (c) 2010 Christian Mueller. Parts copied from/inspired by the 5 # Linux AHCI driver; those parts are (c) Linux AHCI/ATA maintainers 4 # Copyright (c) 2010 Christian Mueller, Markus Thielen. 6 5 # 7 6 # This program is free software; you can redistribute it and/or modify … … 18 17 # along with this program; if not, write to the Free Software 19 18 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 20 19 # 21 20 22 21 ############################################################################### … … 104 103 # Action definitions (compile/link commands) 105 104 105 # emacs TAGS file creation 106 # NOTE: OS/2 emacs etags.exe expects an empty file named c:\dev\null... 107 tags: $(SRCS) $(INCS) 108 etags.exe $(SRCS) $(INCS) 109 106 110 bldday.h: 107 111 $(BLDDATE) > bldday.h -
trunk/src/os2ahci/ahci.c
r35 r36 546 546 } 547 547 548 /* clear any pending adapter-level interrupts */548 /* clear pending interrupt status */ 549 549 writel(ai->mmio + HOST_IRQ_STAT, readl(ai->mmio + HOST_IRQ_STAT)); 550 550 readl(ai->mmio + HOST_IRQ_STAT); /* flush */ … … 671 671 ahci_start_fis_rx(ai, p); 672 672 673 /* enable DMA*/673 /* enable command engine */ 674 674 ahci_start_engine(ai, p); 675 675 … … 752 752 } 753 753 754 /* disable DMA*/754 /* disable command engine */ 755 755 if ((rc = ahci_stop_engine(ai, p)) != 0) { 756 756 dprintf("error: failed to stop port HW engine (%d)\n", rc); … … 847 847 u16 cmd_max = ai->cmd_max; 848 848 int i; 849 850 /* Enable AHCI mode; apparently, the AHCI mode may end up becoming 851 * disabled, either during the boot sequence (by the BIOS) or by 852 * something else. The Linux AHCI drivers have this call in the 853 * command processing chain, and apparently for a good reason because 854 * without this, commands won't be executed. 855 */ 856 ahci_enable_ahci(ai); 849 857 850 858 /* determine whether this will be an NCQ request */ -
trunk/src/os2ahci/ata.c
r24 r36 681 681 AP_SGLIST, io->pSGList + sg_indx, (u16) sg_cnt, 682 682 AP_DEVICE, 0x4000, 683 AP_WRITE, 683 AP_WRITE, 1, 684 684 AP_END); 685 685 } -
trunk/src/os2ahci/os2ahci.def
r35 r36 1 1 library os2ahci 2 Description '$@#thi.guten (www.thiguten.de):1.00.2010110 4#@OS/2 AHCI Adapter Device Driver'2 Description '$@#thi.guten (www.thiguten.de):1.00.20101105#@OS/2 AHCI Adapter Device Driver' 3 3 protmode 4 4 -
trunk/src/os2ahci/pci.c
r33 r36 706 706 if (ret == RMRC_SUCCESS) { 707 707 /* MT: got a new address from Resource Manager; now we 708 * need to tell the BIOSabout the new address.708 * need to tell PCI about the new address. 709 709 * Leave the last 4 bits of the original MMIO value alone. 710 710 */ … … 713 713 ddprintf("address we got from RM: 0x%08lx\n", 714 714 resource.MEMResource.MemBase); 715 ddprintf("setting new MMIO BIOSaddr to 0x%08lx\n", mmio_bios);715 ddprintf("setting new MMIO addr to 0x%08lx\n", mmio_bios); 716 716 717 717 if (pci_write_conf(bus, dev_func, AHCI_MMIO, 718 718 sizeof(u32), mmio_bios) != OH_SUCCESS) { 719 /* failed to update BIOSMMIO address - bail out */720 cprintf("error: couldn't update BIOSMMIO address\n");719 /* failed to update MMIO address - bail out */ 720 cprintf("error: couldn't update MMIO address\n"); 721 721 ret = ~RMRC_SUCCESS; 722 722 goto add_pci_fail;
Note:
See TracChangeset
for help on using the changeset viewer.