Changeset 25 for trunk/src/os2ahci/os2ahci.c
- Timestamp:
- Sep 23, 2010, 4:39:43 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/os2ahci/os2ahci.c
r24 r25 94 94 */ 95 95 USHORT _cdecl c_strat(RPH _far *req) 96 { 96 { 97 97 u16 rc; 98 98 … … 237 237 goto init_fail; 238 238 } 239 239 240 240 /* allocate context hooks */ 241 241 if (DevHelp_AllocateCtxHook(mk_NPFN(restart_hook), &restart_ctxhook_h) != 0 || … … 285 285 * details. 286 286 */ 287 void _far _loadds add_entry(IORBH _far *first_iorb)287 void _far APIENTRY _loadds add_entry(IORBH _far *first_iorb) 288 288 { 289 289 IORBH _far *iorb; … … 315 315 int p = iorb_unit_port(iorb); 316 316 int d = iorb_unit_device(iorb); 317 317 318 318 if (a >= ad_info_cnt || 319 319 p > ad_infos[a].port_max || … … 559 559 560 560 switch (iorb->CommandModifier) { 561 561 562 562 case IOCM_ABORT: 563 563 /* abort all pending commands on specified port and device */ … … 577 577 DevHelp_ArmCtxHook(0, reset_ctxhook_h); 578 578 break; 579 579 580 580 case IOCM_SUSPEND: 581 581 case IOCM_RESUME: … … 842 842 ahci_write(iorb); 843 843 break; 844 844 845 845 default: 846 846 iorb_seterr(iorb, IOERR_CMD_NOT_SUPPORTED); … … 952 952 return(!found); 953 953 } 954 954 955 955 /****************************************************************************** 956 956 * Set the error code in the specified IORB 957 * 957 * 958 958 * NOTE: This function does *not* call iorb_done(). It merely sets the IORB 959 959 * status to the specified error code. … … 1023 1023 1024 1024 /****************************************************************************** 1025 * small_code_ - this dummy func resolves the undefined reference linker 1025 * small_code_ - this dummy func resolves the undefined reference linker 1026 1026 * error that occurrs when linking WATCOM objects with DDK's link.exe 1027 1027 */
Note:
See TracChangeset
for help on using the changeset viewer.