- Timestamp:
- Jan 23, 2021, 6:50:32 PM (5 years ago)
- Location:
- trunk
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/os2ahci/ReadMe.txt
r205 r206 388 388 Change Log 389 389 ========== 390 v.2.08 01- Nov-2020- David Azarewicz390 v.2.08 01-Jan-2021 - David Azarewicz 391 391 Corrected RM ADD handle and unit. 392 Changed the internal implementation of /U to accomodate gpt filter. 392 393 393 394 v.2.07 19-May-2019 - David Azarewicz -
trunk/src/os2ahci/apm.c
r205 r206 124 124 for (d = 0; d <= ai->ports[p].dev_max; d++) 125 125 { 126 if (ai->ports[p].devs[d].present && !ai->ports[p].devs[d].ignored)126 if (ai->ports[p].devs[d].present) 127 127 { 128 128 ahci_flush_cache(ai, p, d); … … 244 244 writel(port_mmio + PORT_SCR_ACT, 0); 245 245 readl(port_mmio + PORT_SCR_ACT); /* flush */ 246 247 #if 0248 /* cannot flush caches this way */249 ahci_start_port(ai, p, 0);250 251 /* flush cache on all attached devices */252 for (d = 0; d <= ai->ports[p].dev_max; d++)253 {254 if (ai->ports[p].devs[d].present && !ai->ports[p].devs[d].ignored)255 {256 ahci_flush_cache(ai, p, d);257 }258 }259 #endif260 246 } 261 247 } -
trunk/src/os2ahci/ioctl.c
r205 r206 88 88 for (d = 0; d <= pi->dev_max; d++) 89 89 { 90 if (pi->devs[d].present && !pi->devs[d].ignored)90 if (pi->devs[d].present) 91 91 { 92 92 /* add this device to the device list */ … … 140 140 if (a >= ad_info_cnt || p > ad_infos[a].port_max 141 141 || d > ad_infos[a].ports[p].dev_max 142 || !ad_infos[a].ports[p].devs[d].present 143 || ad_infos[a].ports[p].devs[d].ignored) 142 || !ad_infos[a].ports[p].devs[d].present) 144 143 { 145 144 return(RPDONE | RPERR_UNIT); … … 537 536 for (_d = 0; _d <= pi->dev_max; _d++) 538 537 { 539 if (pi->devs[_d].present && !pi->devs[_d].ignored)538 if (pi->devs[_d].present) 540 539 { 541 540 if (unit-- == 0) -
trunk/src/os2ahci/os2ahci.c
r205 r206 1118 1118 for (d = 0; d <= ad_info->ports[p].dev_max; d++) 1119 1119 { 1120 if (ad_info->ports[p].devs[d].present && !ad_info->ports[p].devs[d].ignored)1120 if (ad_info->ports[p].devs[d].present) 1121 1121 { 1122 1122 if (ad_info->ports[p].devs[d].atapi && emulate_scsi[dta][p]) … … 1157 1157 for (d = 0; d <= ad_info->ports[p].dev_max; d++) 1158 1158 { 1159 if (ad_info->ports[p].devs[d].present && !ad_info->ports[p].devs[d].ignored 1160 && ad_info->ports[p].devs[d].atapi && emulate_scsi[a][p]) 1159 if (ad_info->ports[p].devs[d].present && ad_info->ports[p].devs[d].atapi && emulate_scsi[a][p]) 1161 1160 { 1162 1161 if (add_unit_info(pIorb_conf, dta, a, p, d, scsi_id++)) … … 1648 1647 pUi->UnitType = ai->ports[p].devs[d].dev_type; 1649 1648 pUi->QueuingCount = ai->ports[p].devs[d].ncq_max; 1650 if (ai->ports[p].devs[d].removable) 1651 { 1652 pUi->UnitFlags |= UF_REMOVABLE; 1653 } 1654 if (scsi_id > 0) { 1655 /* set fake SCSI ID for this unit */ 1656 pUi->UnitSCSITargetID = scsi_id; 1657 } 1649 if (ai->ports[p].devs[d].removable) pUi->UnitFlags |= UF_REMOVABLE; 1650 if (ai->ports[p].devs[d].ignored) pUi->UnitFlags |= UF_NODASD_SUPT; 1651 if (scsi_id > 0) pUi->UnitSCSITargetID = scsi_id; /* set fake SCSI ID for this unit */ 1658 1652 } 1659 1653 else -
trunk/tools/AddToFile.cmd
r205 r206 3 3 * Written by and Copyright (c) 2010-2018 David Azarewicz http://88watts.net 4 4 * 5 * @#D Azarewicz:1.0 3#@##1## 02 Mar 2020 DAZAR1 ::::::@@AddToFile.cmd (c) David Azarewicz 20205 * @#D Azarewicz:1.04#@##1## 02 Jan 2021 DAZAR1 ::::::@@AddToFile.cmd (c) David Azarewicz 2021 6 6 * V1.01 16-Sep-2016 First official release 7 7 * V1.02 02-Jun-2017 Added Asd to bldlevel, added DATE1 8 8 * V1.03 02-Mar-2020 Added STRING function 9 * V1.04 02-Jan-2021 Added FILESIZE function 9 10 * 10 11 * The following line is for the help sample code for the VAR function: … … 30 31 Say ' STRING - Adds the string with %Y substitution.'; 31 32 Say ' VAR - Adds the value of the specified variable from a specified file.'; 33 Say ' FILESIZE - Adds the file size.'; 32 34 Say ' FILE - Adds the contents of a file.'; 33 35 Say 'Examples:'; … … 68 70 call 'AddToFile.cmd' MyCmd; 69 71 MyCmd=MyFile||',#define XYZ "%A",VAR,EXAMPLEVAR=,AddToFile.cmd'; 72 rc=LineOut(MyFile, '--- AddToFile.cmd '||MyCmd); 73 call 'AddToFile.cmd' MyCmd; 74 MyCmd=MyFile||',#define FSIZE,FILESIZE,addtofile.cmd'; 70 75 rc=LineOut(MyFile, '--- AddToFile.cmd '||MyCmd); 71 76 call 'AddToFile.cmd' MyCmd; … … 213 218 end; 214 219 rc=stream(String,'c','close'); 220 rc=lineout(OutFile); 221 end 222 223 when (Function="FILESIZE") then do 224 NewStr=stream(Parm1,'c','query size'); 225 RepLoc=Pos('%A', String); 226 if (RepLoc>0) then OutStr=Substr(String,1,RepLoc-1)||NewStr||Substr(String,RepLoc+2); 227 else OutStr=String||' '||NewStr; 228 rc=lineout(OutFile, OutStr); 215 229 rc=lineout(OutFile); 216 230 end
Note:
See TracChangeset
for help on using the changeset viewer.