fci_oal.c 728 B

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