IxOsalOem.h 2.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. /**
  2. * @file IxOsalIxpOem.h
  3. *
  4. * @brief this file contains platform-specific defines.
  5. *
  6. *
  7. * @par
  8. * IXP400 SW Release version 2.0
  9. *
  10. * -- Copyright Notice --
  11. *
  12. * @par
  13. * Copyright 2001-2005, Intel Corporation.
  14. * All rights reserved.
  15. *
  16. * @par
  17. * Redistribution and use in source and binary forms, with or without
  18. * modification, are permitted provided that the following conditions
  19. * are met:
  20. * 1. Redistributions of source code must retain the above copyright
  21. * notice, this list of conditions and the following disclaimer.
  22. * 2. Redistributions in binary form must reproduce the above copyright
  23. * notice, this list of conditions and the following disclaimer in the
  24. * documentation and/or other materials provided with the distribution.
  25. * 3. Neither the name of the Intel Corporation nor the names of its contributors
  26. * may be used to endorse or promote products derived from this software
  27. * without specific prior written permission.
  28. *
  29. * @par
  30. * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS IS''
  31. * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  32. * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  33. * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
  34. * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  35. * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  36. * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  37. * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  38. * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  39. * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  40. * SUCH DAMAGE.
  41. *
  42. * @par
  43. * -- End of Copyright Notice --
  44. */
  45. #ifndef IxOsalOem_H
  46. #define IxOsalOem_H
  47. #include "IxOsalTypes.h"
  48. /* OS-specific header for Platform package */
  49. #include "IxOsalOsIxp400.h"
  50. /*
  51. * Platform Name
  52. */
  53. #define IX_OSAL_PLATFORM_NAME ixp400
  54. /*
  55. * Cache line size
  56. */
  57. #define IX_OSAL_CACHE_LINE_SIZE (32)
  58. /* Platform-specific fastmutex implementation */
  59. PUBLIC IX_STATUS ixOsalOemFastMutexTryLock (IxOsalFastMutex * mutex);
  60. /* Platform-specific init (MemMap) */
  61. PUBLIC IX_STATUS
  62. ixOsalOemInit (void);
  63. /* Platform-specific unload (MemMap) */
  64. PUBLIC void
  65. ixOsalOemUnload (void);
  66. /* Default implementations */
  67. PUBLIC UINT32
  68. ixOsalIxp400SharedTimestampGet (void);
  69. UINT32
  70. ixOsalIxp400SharedTimestampRateGet (void);
  71. UINT32
  72. ixOsalIxp400SharedSysClockRateGet (void);
  73. void
  74. ixOsalIxp400SharedTimeGet (IxOsalTimeval * tv);
  75. INT32
  76. ixOsalIxp400SharedLog (UINT32 level, UINT32 device, char *format,
  77. int arg1, int arg2, int arg3, int arg4,
  78. int arg5, int arg6);
  79. #endif /* IxOsal_Oem_H */