Intel® IXP400 Software

Operating System Abstraction Layer (OSAL)

Table 62. OSAL Core Interface (Sheet 1 of 2)

Types

Symbols

Interrupts

Memory

Threads

IPC

IxOsalVoidFnPtr

 

alias for void (void) functions

 

IxOsalVoidFnVoidPtr

 

alias for void (void *) functions

IxOsalSemaphore

 

semaphore object

IxOsalMutex

 

mutex object

IxOsalFastMutex

 

test-and-set fast mutex object

IxOsalThread

 

thread object

IxOsalThreadAttr

 

thread attributes object

IxOsalTimeval

 

time structure

IxOsalTimer

 

timer handle

PRIVATE

 

#defined as “static”, except for debug

 

 

builds

PUBLIC

 

#defined as an empty labelling symbol

ixOsalIrqBind

 

binds interrupts to handlers

ixOsalIrqUnbind

 

unbind interrupts from handlers

ixOsalIrqLock

 

disables all interrupts

ixOsalIrqUnlock

 

enables all interrupts

ixOsalIrqLevelSet

 

selectively disables interrupts

ixOsalIrqEnable

 

enables an interrupt level

ixOsalIrqDisable

 

disables an interrupt level

ixOsalMemAlloc

 

allocates memory

ixOsalMemFree

 

frees memory

ixOsalMemCopy

 

copies memory zones

ixOsalMemSet

 

fills a memory zone

ixOsalCacheDmaMalloc

 

allocates cache-safe memory

ixOsalCacheDmaFree

 

frees cache-safe memory

IX_OSAL_MMU_PHYS_TO_VIRT

 

physical to virtual address translation

IX_OSAL_MMU_VIRT_TO_PHYS

 

virtual to physical address translation

IX_OSAL_CACHE_FLUSH

 

cache to memory flush

IX_OSAL_CACHE_INVALIDATE

 

cache line invalidate

ixOsalThreadCreate

 

creates a new thread

ixOsalThreadStart

 

starts a newly created thread

ixOsalThreadKill

 

kills an existing thread

ixOsalThreadExit

 

exits a running thread

ixOsalThreadPrioritySet

 

sets the priority of an existing thread

ixOsalThreadSuspend

 

suspends thread execution

ixOsalThreadResume

 

resumes thread execution

ixOsalMessageQueueCreate

 

creates a message queue

ixOsalMessageQueueDelete

 

deletes a message queue

ixOsalMessageSend

 

sends a message to a message queue

ixOsalMessageReceive

 

receives a message from a message queue

April 2005

IXP400 Software Version 2.0

Programmer’s Guide

320

Document Number: 252539, Revision: 007

 

Page 320
Image 320
Intel IXP400 manual Ipc, Osal Core Interface Sheet 1