| Line | |
|---|
| 1 | /**************************************************************************** |
|---|
| 2 | * Copyright (c) 2006 DST Technologies Inc. All Rights Reserved. |
|---|
| 3 | * |
|---|
| 4 | * Module: LLD_KERNEL |
|---|
| 5 | * |
|---|
| 6 | * Description: This file contains Linux specific macros |
|---|
| 7 | * |
|---|
| 8 | * Notes: |
|---|
| 9 | * |
|---|
| 10 | ***************************************************************************/ |
|---|
| 11 | #ifndef _LLD_KERNEL_H_ |
|---|
| 12 | #define _LLD_KERNEL_H_ |
|---|
| 13 | |
|---|
| 14 | /*========================================= |
|---|
| 15 | * Linux specific definitions |
|---|
| 16 | *========================================*/ |
|---|
| 17 | #define KERNEL_2_4_0 ((LINUX_VERSION_CODE >= KERNEL_VERSION(2,4,0)) && (LINUX_VERSION_CODE <= KERNEL_VERSION(2,6,0))) |
|---|
| 18 | #define KERNEL_BELOW_2_4_0 (LINUX_VERSION_CODE < KERNEL_VERSION(2,4,0)) |
|---|
| 19 | #define mCurrentPid (lld_os_get_usermode_process_id()) |
|---|
| 20 | #define mCurrentTid (current->pid) |
|---|
| 21 | #define ERR_RESTART_SYS (-ERESTARTSYS) |
|---|
| 22 | #define LLD_SEM struct semaphore |
|---|
| 23 | |
|---|
| 24 | #if 1 |
|---|
| 25 | # define WAIT_Q wait_queue_head_t |
|---|
| 26 | #else |
|---|
| 27 | # define WAIT_Q struct wait_queue * |
|---|
| 28 | #endif |
|---|
| 29 | |
|---|
| 30 | #endif /* _LLD_KERNEL_H_ */ |
|---|
Note: See
TracBrowser
for help on using the repository browser.