hal.pp 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. {$MACRO ON}
  2. (******************************************************************************
  3. *
  4. * Copyright (c) 1999-2000 Palm, Inc. or its subsidiaries.
  5. * All rights reserved.
  6. *
  7. * File: HAL.h
  8. *
  9. * Release: Palm OS SDK 4.0 (63220)
  10. *
  11. * Description:
  12. * General HAL Equates. This header file contains function prototypes for
  13. * HAL routines, and is used by both Palm OS and the HAL module.
  14. *
  15. * History:
  16. * 5/31/99 SCL Created by Steve Lemke
  17. * 8/24/00 SCL Cleanup; moved boot-related prototypes (HwrInitProcPtr,
  18. * HwrPreRAMInit, and HwrInit) to "HwrBoot.h"
  19. *
  20. *****************************************************************************)
  21. unit hal;
  22. interface
  23. uses palmos, coretraps, errorbase;
  24. (***********************************************************************
  25. * Hardware Manager (HAL) constants
  26. **********************************************************************)
  27. // Error codes related to HwrCustom() API
  28. const
  29. hwrErrHwrCustomNotImplemented = hwrErrorClass or 1;
  30. hwrErrCreatorNotSupported = hwrErrorClass or 2;
  31. hwrErrSelectorNotSupported = hwrErrorClass or 3;
  32. hwrErrParamTooSmall = hwrErrorClass or 4;
  33. (**************************************************************************
  34. * Prototypes of functions used only when running on the real hardware
  35. ***************************************************************************)
  36. // HwrCustom call is new in Palm OS 4.0, and many HALs may not support it.
  37. // This won't cause problems though, since the OS installs a default handler
  38. // (in case the HAL doesn't install its own). The default OS handler simply
  39. // always returns hwrErrHwrCustomNotImplemented.
  40. function HwrCustom(creator: UInt32; opCode: UInt32; paramP: Pointer;
  41. var paramSizeP: UInt16): Err; syscall sysTrapHwrCustom;
  42. implementation
  43. end.