| 1 | /**************************************************************************** |
|---|
| 2 | * Copyright (c) 2006 DST Technologies Inc. All Rights Reserved. |
|---|
| 3 | * |
|---|
| 4 | * Module: OEM_OPT |
|---|
| 5 | * |
|---|
| 6 | * Description: Build options and defines for a specific platform. |
|---|
| 7 | * (Linux on PC) |
|---|
| 8 | * |
|---|
| 9 | * Notes: You can override any of the OSLIB AtiCore_xxxx APIs and implement |
|---|
| 10 | * your own in OEM directory using the following method: |
|---|
| 11 | * - In this file, #define the required AtiCore_xxxx as Os_xxxx |
|---|
| 12 | * for example, #define AtiCore_TaskCreate Os_TaskCreate |
|---|
| 13 | * - In the OEM file where the new API will be implemented, udefine |
|---|
| 14 | * AtiCore_xxxx. For example #undef AtiCore_TaskCreate |
|---|
| 15 | * - Implement the API in the OEM file. i.e, AtiCore_TaskCreate |
|---|
| 16 | * |
|---|
| 17 | * Calls performed by OSLIB functions can also be redirected to OEM. |
|---|
| 18 | * For example, Win9x InterruptInitialize() function which is called |
|---|
| 19 | * from os_irq.c can be directed to the OEM as follows: |
|---|
| 20 | * - In this file do the following: |
|---|
| 21 | * #define InterruptInitialize Oem_MyIntInitialize |
|---|
| 22 | * extern UINT32 Oem_MyIntInitialize (DWORD, HANDLE, |
|---|
| 23 | * void *, UINT32); |
|---|
| 24 | * - In the OEM file, implement the Oem_MyIntInitialize function |
|---|
| 25 | * |
|---|
| 26 | * |
|---|
| 27 | ***************************************************************************/ |
|---|
| 28 | #ifndef _OEM_OPTIONS_H |
|---|
| 29 | #define _OEM_OPTIONS_H |
|---|
| 30 | |
|---|
| 31 | /*================================= |
|---|
| 32 | * Hardware specific information |
|---|
| 33 | *================================*/ |
|---|
| 34 | /* |
|---|
| 35 | * MIPS CPU type. Comment out if little endian. |
|---|
| 36 | */ |
|---|
| 37 | #define CPU_BIG_ENDIAN |
|---|
| 38 | |
|---|
| 39 | /*================================= |
|---|
| 40 | * Software specific information |
|---|
| 41 | *================================*/ |
|---|
| 42 | /* |
|---|
| 43 | * Linux kernel module (dstmod.o) major device number. |
|---|
| 44 | * Set to 0 for dynamic device allocation by the linux kernel. |
|---|
| 45 | */ |
|---|
| 46 | #define DST_MAJOR_DEV_NUM 0 |
|---|
| 47 | |
|---|
| 48 | /* |
|---|
| 49 | * Maximum number of semaphores and mutexes in the system (shared and local) |
|---|
| 50 | */ |
|---|
| 51 | #define MAX_NOF_SEMS 256 |
|---|
| 52 | |
|---|
| 53 | /* |
|---|
| 54 | * Maximum number of events in the system (shared and local) |
|---|
| 55 | */ |
|---|
| 56 | #define MAX_NOF_EVENTS 128 |
|---|
| 57 | |
|---|
| 58 | /* |
|---|
| 59 | * Max number of processes that can share the same object (semaphore/event/ |
|---|
| 60 | * mutex/shared memory block/video memory block/etc.) |
|---|
| 61 | */ |
|---|
| 62 | #define MAX_NOF_PROCS 8 |
|---|
| 63 | |
|---|
| 64 | #endif /* _OEM_OPTIONS_H */ |
|---|