Ignore:
Timestamp:
Jul 17, 2007, 6:04:31 PM (18 years ago)
Author:
Brendan Oakley
Message:

Applied latest updates from Vlad

File:
1 edited

Legend:

Unmodified
Added
Removed
  • OCO/trunk/drv16/apmevent.cpp

    r33 r221  
    1717#endif
    1818
    19 static int fAPMSuspend = FALSE;
     19int fAPMSuspend = FALSE;
    2020
    2121/***********************************************************************/
     
    4949        return(APM_suspend(APM_STATE_OFF));     /* put chip to sleep */
    5050      default:
    51         return 1;
     51        return 0;
    5252    } /* endswitch */
    5353
     
    6565    return 0;
    6666  }
    67   return 1;
     67  return 0;
    6868}
    6969
     
    132132}
    133133
     134/* just external callback */
     135void far apm_resume(void)
     136{
     137    APM_resume(APM_STATE_READY);
     138}
    134139
    135140/***********************************************************************/
     
    152157        APM_Reg_Req.function = APM_REGISTER_FUNCTION;
    153158        APM_Reg_Req.eventh = APM_EVENT;
    154         APM_Reg_Req.mask = 0x3C0;
     159        APM_Reg_Req.mask = 0xFFF8;
    155160        APM_Reg_Req.ds = FP_SEG(&APM_Reg_Req);
    156161        APM_Reg_Req.device_id = 0x0001;
Note: See TracChangeset for help on using the changeset viewer.