- Timestamp:
- Mar 12, 2016, 12:25:36 AM (9 years ago)
- Location:
- trunk
- Files:
-
- 12 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/os2ahci/Makefile
r174 r176 4 4 # 5 5 # Copyright (c) 2010 Christian Mueller, Markus Thielen. 6 # Copyright (c) 2013 David Azarewicz6 # Copyright (c) 2013-2015 David Azarewicz 7 7 # Parts copied from/inspired by the Linux AHCI driver; 8 8 # those parts are (c) Linux AHCI/ATA maintainers … … 34 34 FIXPACK= 35 35 36 !ifndef %ROOT 37 ROOT=$+$(%cwd)$- 38 !else 39 ROOT=$(%ROOT) 40 !endif 41 36 42 !ifndef %WATCOM # if not defined in the environment 37 43 !error WATCOM must be set in the environment. … … 58 64 !endif 59 65 66 VERSION=$(BLD_MAJOR).$(BLD_MINOR) 67 ZIPDIR=$(ROOT)\tmp 68 69 !if "$(FIXPACK)"!="" 70 !ifndef %BLD_DATE 71 !error BLD_DATE must be defined for test versions 72 !endif 73 WPIFILE=$(ROOT)\AHCI-test-$(VERSION)-$(%BLD_DATE)-WPI.zip 74 !else 75 WPIFILE=$(ROOT)\AHCI-$(VERSION)-WPI.zip 76 !endif 77 60 78 AS_INCLUDE = -I=$(DDK)\base\inc 61 79 LIB_DIRS = $(DDK)\base\lib\ … … 70 88 71 89 %INCLUDE=..\include;$(DDK)\base\h; 72 %PATH= ..\..\tools;$(WATCOM)\BINP;$(WATCOM)\BINW;$(DDK)\base\tools;90 %PATH=$(ROOT)\tools;$(WATCOM)\BINP;$(WATCOM)\BINW;$(DDK)\base\tools;$(%PATH) 73 91 AS=wasm 74 92 CC=wcc … … 139 157 @%create $^@ 140 158 @%append $^@ /* Autogenerated by Makefile */ 141 @%append $^@ $#define VERSION $(BLD_MAJOR)$(BLD_MINOR) /* driver version (2 implied decimals) */ 159 @%append $^@ $#define DMAJOR $(BLD_MAJOR) 160 @%append $^@ $#define DMINOR $(BLD_MINOR) 142 161 @%append $^@ $#define DVENDOR "$(VENDOR)" 143 162 @AddToFile $^@,$#define BLD_YEAR,DATEYEAR 144 163 @AddToFile $^@,$#define BLD_MONTH,DATEMONTH 145 164 @AddToFile $^@,$#define BLD_DAY,DATEDAY 146 @AddToFile $^@,$#define BLDLEVEL,BLDLEVEL2,$(VENDOR),$( BLD_MAJOR).$(BLD_MINOR),AHCI Driver (c) 2013$(VENDOR),$(FIXPACK)165 @AddToFile $^@,$#define BLDLEVEL,BLDLEVEL2,$(VENDOR),$(VERSION),AHCI Driver (c) 2015 $(VENDOR),$(FIXPACK) 147 166 148 167 .asm.obj: .autodepend … … 187 206 @%erase $^*.ma1 188 207 208 release: os2ahci.add os2ahci.sym .symbolic 209 @if exist $(WPIFILE) @del $(WPIFILE) 210 @!rm -rf $(ZIPDIR) 211 212 @md $(ZIPDIR) 213 214 @md $(ZIPDIR)\pkg1 215 @copy /b $(ROOT)\src\os2ahci\os2ahci.add $(ZIPDIR)\pkg1 >NUL 216 @copy /b $(ROOT)\src\os2ahci\os2ahci.sym $(ZIPDIR)\pkg1 >NUL 217 218 @md $(ZIPDIR)\pkg2 219 @copy /b $(ROOT)\Tools\smartahci.exe $(ZIPDIR)\pkg2 >NUL 220 #@copy $(ROOT)\Tools\testlog.cmd $(ZIPDIR)\pkg2 >NUL 221 222 @md $(ZIPDIR)\pkg20 223 @copy $(ROOT)\src\os2ahci\README $(ZIPDIR)\pkg20 >NUL 224 @copy $(ROOT)\Tools\LICENSE $(ZIPDIR)\pkg20 >NUL 225 226 @md $(ZIPDIR)\wpi 227 @sed -e "s/\\X\\X\\X/\\0\\$(VERSION:.=\\)/" $(ROOT)\Tools\ahci.wis >$(ZIPDIR)\wpi\ahci.wis 228 #@copy $(ROOT)\tools\stub.exe $(ZIPDIR)\wpi >NUL 229 230 cd $(ZIPDIR) 231 @zip -r -X $(WPIFILE) * 232 @cd $(ROOT) 233 @!rm -rf $(ZIPDIR) 234 -
trunk/src/os2ahci/README
r174 r176 1 ==================================================================== 2 eComStation AHCI Driver 3 ==================================================================== 1 AHCI Driver for OS/2 v1.32 4 2 5 3 … … 7 5 ============ 8 6 9 OS2AHCI is an AHCI driver for eComStation. It supports both ATA and7 OS2AHCI is an AHCI driver for OS/2. It supports both ATA and 10 8 ATAPI devices in a single driver. An ATAPI/CDROM filter driver is 11 9 only required if you want to read/write CD-DA (audio) format CDs. 12 10 13 11 14 Copyrights 15 ========== 16 12 Copyrights and License 13 ====================== 14 15 (c) Copyright IBM Corporation 1990,2000. 16 All rights reserved. 17 17 Copyright (c) 2011 thi.guten Software Development 18 Copyright (c) 2011 -2013Mensys B.V.19 Copyright (c) 2013 David Azarewicz18 Copyright (c) 2011 Mensys B.V. 19 Copyright (c) 2013-2015 David Azarewicz 20 20 21 21 Authors: Christian Mueller, Markus Thielen 22 22 23 23 Parts copied from/inspired by the Linux AHCI driver; 24 those parts are (c) Linux AHCI/ATA maintainers 24 those parts are (c) Linux AHCI/ATA maintainers. 25 25 26 26 This program is free software; you can redistribute it and/or modify … … 39 39 MA 02111-1307 USA 40 40 41 42 Licensing and Source Code 43 ========================= 44 45 The *binary* delivery of OS2AHCI.ADD as obtained from the BetaZone, 46 or as part of packaged eComStation releases, is licensed to run with 47 eComStation only. 48 49 The source code can be retrieved from http://svn.ecomstation.nl; 50 in compliance to the GNU General Public License, the source code 41 The OS2AHCI.ADD Driver Software is a derivative work of the IBM DDK. 42 Binary programs and documentation for the OS2AHCI.ADD Driver 43 Software are licensed to and distributed by Arca Noae, LLC. 44 45 The source code can be retrieved from http://svn.netlabs.org. 46 In compliance to the GNU General Public License, the source code 51 47 can of course be modified/compiled to run on other products as long 52 as modifications will also be published as outlined in the GNU GPL2. 53 54 Please note that builds other than the official binary delivered as 55 part of eComStation releases or downloaded from the BetaZone are 56 not officially supported. 57 58 59 Building The Driver 60 ------------------- 61 62 The toolchain required for compilation consists of: 63 64 - The MiniDDK or an updated DDK 65 - Open Watcom version 1.9 or later 66 67 Define DDK and WATCOM in the environment. 68 Use "wmake" or "wmake -a" to build the driver. See _build.cmd. 69 70 Installation 71 ============ 72 73 - Run the included update.cmd, 74 or copy the driver file, OS2AHCI.ADD, to \OS2\BOOT on your boot disk. 75 76 - Add the following line to CONFIG.SYS: 77 BASEDEV=OS2AHCI.ADD 78 79 80 Reporting Problems 81 ================== 82 83 If you have problems with this driver, please read the Troubleshooting 84 page at: 85 86 http://svn.ecomstation.nl/ahci/wiki/Troubleshooting 87 88 You can open a ticket at: 89 http://svn.ecomstation.nl/ahci 48 as modifications will also be published as outlined in the GNU GPL. 49 50 Please note that builds other than the official binary delivered by 51 the Arca Noae web site are not officially supported. 52 53 54 Getting Support and Reporting Problems 55 ====================================== 56 57 For more information and to report problems please visit: 58 https://www.arcanoae.com 59 and click on SUPPORT. 60 61 Or go directly to the AHCI support wiki at: 62 https://www.arcanoae.com/wiki/ahci/ 90 63 91 64 … … 209 182 While we believe NCQ will work with the majority of controllers and hard 210 183 disks, it's currently turned off by default until we have more feedback 211 from eComStationusers. In order to turn on NCQ, just add the command line184 from OS/2 users. In order to turn on NCQ, just add the command line 212 185 option "/n" to OS2AHCI.ADD. 213 186 … … 385 358 386 359 360 Manual Installation 361 =================== 362 363 - Run the included update.cmd, 364 or copy the driver file, OS2AHCI.ADD, to \OS2\BOOT on your boot disk. 365 366 - Add the following line to CONFIG.SYS: 367 BASEDEV=OS2AHCI.ADD 368 369 370 Building The Driver 371 ------------------- 372 373 The toolchain required for compilation consists of: 374 375 - The MiniDDK or an updated DDK (You must have a DDK license 376 to build this driver.) 377 - Open Watcom version 1.9 or later 378 379 Define DDK and WATCOM in the environment. 380 Use "wmake" or "wmake -a" to build the driver. See _build.cmd. 381 382 387 383 Change Log 388 384 ========== … … 413 409 Reworked suspend/resume routines. 414 410 Implemented a temporary hack to make resume work reasonably well. 415 Suspend/resume is only supported on eCSsystems with ACPI.411 Suspend/resume is only supported on OS/2 systems with ACPI. 416 412 Suspend/resume is known to not work reliably and cannot be further 417 413 addressed in this driver. -
trunk/src/os2ahci/_build.cmd
r158 r176 1 1 @echo off 2 rem set VENDOR= Mensys BV2 rem set VENDOR=Your Name 3 3 rem set BLD_MAJOR=1 4 4 rem set BLD_MINOR=27 5 rem set WATCOM= i:\Watcom6 rem set DDK= i:\ddk5 rem set WATCOM=e:\Watcom 6 rem set DDK=f:\ddk 7 7 wmake -a -
trunk/src/os2ahci/ahci.c
r174 r176 4 4 * Copyright (c) 2011 thi.guten Software Development 5 5 * Copyright (c) 2011 Mensys B.V. 6 * Copyright (c) 2013 David Azarewicz6 * Copyright (c) 2013-2015 David Azarewicz 7 7 * 8 8 * Authors: Christian Mueller, Markus Thielen -
trunk/src/os2ahci/apm.c
r165 r176 4 4 * Copyright (c) 2011 thi.guten Software Development 5 5 * Copyright (c) 2011 Mensys B.V. 6 * Portions copyright (c) 2013 David Azarewicz6 * Portions copyright (c) 2013-2015 David Azarewicz 7 7 * 8 8 * Authors: Christian Mueller, Markus Thielen -
trunk/src/os2ahci/ata.c
r169 r176 4 4 * Copyright (c) 2011 thi.guten Software Development 5 5 * Copyright (c) 2011 Mensys B.V. 6 * Portions copyright (c) 2013 David Azarewicz6 * Portions copyright (c) 2013-2015 David Azarewicz 7 7 * 8 8 * Authors: Christian Mueller, Markus Thielen -
trunk/src/os2ahci/libc.c
r169 r176 4 4 * Copyright (c) 2011 thi.guten Software Development 5 5 * Copyright (c) 2011 Mensys B.V. 6 * Portions copyright (c) 2013 David Azarewicz6 * Portions copyright (c) 2013-2015 David Azarewicz 7 7 * 8 8 * Authors: Christian Mueller, Markus Thielen -
trunk/src/os2ahci/os2ahci.c
r174 r176 4 4 * Copyright (c) 2011 thi.guten Software Development 5 5 * Copyright (c) 2011 Mensys B.V. 6 * Copyright (c) 2013 David Azarewicz6 * Copyright (c) 2013-2015 David Azarewicz 7 7 * 8 8 * Authors: Christian Mueller, Markus Thielen … … 120 120 "AHCI SATA Driver", /* driver description */ 121 121 DVENDOR, /* vendor name */ 122 CMVERSION_MAJOR,/* RM interface version major */123 CMVERSION_MINOR,/* RM interface version minor */122 DMAJOR, /* RM interface version major */ 123 DMINOR, /* RM interface version minor */ 124 124 BLD_YEAR, BLD_MONTH, BLD_DAY, /* date */ 125 125 0, /* driver flags */ … … 426 426 427 427 /* print initialization message */ 428 ciprintf(init_msg, drv_name, VERSION / 100, VERSION % 100);428 ciprintf(init_msg, drv_name, DMAJOR, DMINOR); 429 429 430 430 #ifdef TESTVER -
trunk/src/os2ahci/os2ahci.h
r171 r176 4 4 * Copyright (c) 2011 thi.guten Software Development 5 5 * Copyright (c) 2011 Mensys B.V. 6 * Copyright (c) 2013 David Azarewicz6 * Copyright (c) 2013-2015 David Azarewicz 7 7 * 8 8 * Authors: Christian Mueller, Markus Thielen -
trunk/src/os2ahci/pci.c
r174 r176 4 4 * Copyright (c) 2011 thi.guten Software Development 5 5 * Copyright (c) 2011 Mensys B.V. 6 * Copyright (c) 2013 David Azarewicz6 * Copyright (c) 2013-2015 David Azarewicz 7 7 * 8 8 * Authors: Christian Mueller, Markus Thielen -
trunk/src/os2ahci/trace.c
r171 r176 4 4 * Copyright (c) 2011 thi.guten Software Development 5 5 * Copyright (c) 2011 Mensys B.V. 6 * Copyright (c) 2013 David Azarewicz6 * Copyright (c) 2013-2015 David Azarewicz 7 7 * 8 8 * Authors: Christian Mueller, Markus Thielen -
trunk/tools/AddToFile.cmd
r154 r176 4 4 * AddToFile.cmd FileName,PrefixString,Function[,Parameters...] 5 5 * 6 * Examples: 6 7 * AddToFile.cmd FileName,#define DDATE,DATEL 7 8 * Adds today's date to Filename: #define DDATE 20130312L … … 60 61 end 61 62 62 when (What="VERSION") then do 63 Version = '12.345'; 64 say 'Setting '||String||' to '||Version; 65 rc=lineout(OutFile, String||'='||Version); 63 when (What="VERSIONMAJOR") then do 64 parse var ProjVendor Major'.'Minor'.'Revision; 65 rc=lineout(OutFile, String||' '||FORMAT(Major)); 66 rc=lineout(OutFile); 67 end 68 69 when (What="VERSIONMINOR") then do 70 parse var ProjVendor Major'.'Minor'.'Revision; 71 rc=lineout(OutFile, String||' '||FORMAT(Minor)); 72 rc=lineout(OutFile); 73 end 74 75 when (What="VERSIONREVISION") then do 76 parse var ProjVendor Major'.'Minor'.'Revision; 77 rc=lineout(OutFile, String||' '||FORMAT(Revision)); 66 78 rc=lineout(OutFile); 67 79 end
Note:
See TracChangeset
for help on using the changeset viewer.