blob: a7d7f77b98a6ad0aad3c2a9e155fa2635d4ef27f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
/*****************************************************************************
Copyright(c) 2012 FCI Inc. All Rights Reserved
File name : fci_oal.c
Description : OS adaptation layer
*******************************************************************************/
#include <linux/kernel.h>
#include <linux/delay.h>
#include "fc8150_regs.h"
#include "fci_types.h"
void PRINTF(HANDLE hDevice, char *fmt, ...)
{
va_list ap;
char str[256];
va_start(ap, fmt);
vsprintf(str, fmt, ap);
printk(KERN_DEBUG"%s", str);
va_end(ap);
}
void msWait(int ms)
{
msleep(ms);
}
void OAL_CREATE_SEMAPHORE(void)
{
}
void OAL_DELETE_SEMAPHORE(void)
{
}
void OAL_OBTAIN_SEMAPHORE(void)
{
}
void OAL_RELEASE_SEMAPHORE(void)
{
}
|