Ignore:
Timestamp:
Sep 23, 2010, 4:39:43 PM (15 years ago)
Author:
markus
Message:

watcom calling conventions...

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/os2ahci/os2ahci.c

    r24 r25  
    9494 */
    9595USHORT _cdecl c_strat(RPH _far *req)
    96 { 
     96{
    9797  u16 rc;
    9898
     
    237237      goto init_fail;
    238238    }
    239    
     239
    240240    /* allocate context hooks */
    241241    if (DevHelp_AllocateCtxHook(mk_NPFN(restart_hook), &restart_ctxhook_h) != 0 ||
     
    285285 *       details.
    286286 */
    287 void _far _loadds add_entry(IORBH _far *first_iorb)
     287void _far APIENTRY _loadds add_entry(IORBH _far *first_iorb)
    288288{
    289289  IORBH _far *iorb;
     
    315315      int p = iorb_unit_port(iorb);
    316316      int d = iorb_unit_device(iorb);
    317      
     317
    318318      if (a >= ad_info_cnt ||
    319319          p > ad_infos[a].port_max ||
     
    559559
    560560  switch (iorb->CommandModifier) {
    561  
     561
    562562  case IOCM_ABORT:
    563563    /* abort all pending commands on specified port and device */
     
    577577    DevHelp_ArmCtxHook(0, reset_ctxhook_h);
    578578    break;
    579    
     579
    580580  case IOCM_SUSPEND:
    581581  case IOCM_RESUME:
     
    842842    ahci_write(iorb);
    843843    break;
    844    
     844
    845845  default:
    846846    iorb_seterr(iorb, IOERR_CMD_NOT_SUPPORTED);
     
    952952  return(!found);
    953953}
    954        
     954
    955955/******************************************************************************
    956956 * Set the error code in the specified IORB
    957  * 
     957 *
    958958 * NOTE: This function does *not* call iorb_done(). It merely sets the IORB
    959959 *       status to the specified error code.
     
    10231023
    10241024/******************************************************************************
    1025  * small_code_ - this dummy func resolves the undefined reference linker 
     1025 * small_code_ - this dummy func resolves the undefined reference linker
    10261026 * error that occurrs when linking WATCOM objects with DDK's link.exe
    10271027 */
Note: See TracChangeset for help on using the changeset viewer.