2 * This file is intended to provide backward
3 * compatibility for main osService/OSSL
6 * It shall be phased out gradually and users
7 * are strongly recommended to use IX_OSAL API.
10 * IXP400 SW Release version 2.0
12 * -- Copyright Notice --
15 * Copyright 2001-2005, Intel Corporation.
16 * All rights reserved.
19 * SPDX-License-Identifier: BSD-3-Clause
21 * -- End of Copyright Notice --
24 #ifndef IX_OSAL_BACKWARD_OSSERVICES_H
25 #define IX_OSAL_BACKWARD_OSSERVICES_H
28 typedef UINT32 IX_IRQ_STATUS;
30 typedef int IX_IRQ_STATUS;
33 typedef IxOsalMutex IxMutex;
35 typedef IxOsalFastMutex IxFastMutex;
37 typedef IxOsalVoidFnVoidPtr IxVoidFnVoidPtr;
39 typedef IxOsalVoidFnPtr IxVoidFnPtr;
42 #define LOG_NONE IX_OSAL_LOG_LVL_NONE
43 #define LOG_USER IX_OSAL_LOG_LVL_USER
44 #define LOG_FATAL IX_OSAL_LOG_LVL_FATAL
45 #define LOG_ERROR IX_OSAL_LOG_LVL_ERROR
46 #define LOG_WARNING IX_OSAL_LOG_LVL_WARNING
47 #define LOG_MESSAGE IX_OSAL_LOG_LVL_MESSAGE
48 #define LOG_DEBUG1 IX_OSAL_LOG_LVL_DEBUG1
49 #define LOG_DEBUG2 IX_OSAL_LOG_LVL_DEBUG2
50 #define LOG_DEBUG3 IX_OSAL_LOG_LVL_DEBUG3
52 #define LOG_ALL IX_OSAL_LOG_LVL_ALL
56 ixOsServIntBind (int level, void (*routine) (void *), void *parameter);
58 PUBLIC IX_STATUS ixOsServIntUnbind (int level);
61 PUBLIC int ixOsServIntLock (void);
63 PUBLIC void ixOsServIntUnlock (int lockKey);
66 PUBLIC int ixOsServIntLevelSet (int level);
68 PUBLIC IX_STATUS ixOsServMutexInit (IxMutex * mutex);
70 PUBLIC IX_STATUS ixOsServMutexLock (IxMutex * mutex);
72 PUBLIC IX_STATUS ixOsServMutexUnlock (IxMutex * mutex);
74 PUBLIC IX_STATUS ixOsServMutexDestroy (IxMutex * mutex);
76 PUBLIC IX_STATUS ixOsServFastMutexInit (IxFastMutex * mutex);
78 PUBLIC IX_STATUS ixOsServFastMutexTryLock (IxFastMutex * mutex);
80 PUBLIC IX_STATUS ixOsServFastMutexUnlock (IxFastMutex * mutex);
83 ixOsServLog (int level, char *format, int arg1, int arg2, int arg3, int arg4,
87 PUBLIC int ixOsServLogLevelSet (int level);
89 PUBLIC void ixOsServSleep (int microseconds);
91 PUBLIC void ixOsServTaskSleep (int milliseconds);
93 PUBLIC unsigned int ixOsServTimestampGet (void);
96 PUBLIC void ixOsServUnload (void);
98 PUBLIC void ixOsServYield (void);
101 /* IX_OSAL_BACKWARD_OSSERVICES_H */