fc8300_ppi.h 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. /*****************************************************************************
  2. Copyright(c) 2013 FCI Inc. All Rights Reserved
  3. File name : fc8300_ppi.h
  4. Description : header of EBI2/LCD interface
  5. This program is free software; you can redistribute it and/or modify
  6. it under the terms of the GNU General Public License as published by
  7. the Free Software Foundation; either version 2 of the License, or
  8. (at your option) any later version.
  9. This program is distributed in the hope that it will be useful,
  10. but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. GNU General Public License for more details.
  13. You should have received a copy of the GNU General Public License
  14. along with this program; if not, write to the Free Software
  15. Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
  16. History :
  17. ----------------------------------------------------------------------
  18. *******************************************************************************/
  19. #ifndef __FC8300_PPI_H__
  20. #define __FC8300_PPI_H__
  21. #ifdef __cplusplus
  22. extern "C" {
  23. #endif
  24. extern s32 fc8300_ppi_init(HANDLE handle, u16 param1, u16 param2);
  25. extern s32 fc8300_ppi_byteread(HANDLE handle, DEVICEID devid,
  26. u16 addr, u8 *data);
  27. extern s32 fc8300_ppi_wordread(HANDLE handle, DEVICEID devid,
  28. u16 addr, u16 *data);
  29. extern s32 fc8300_ppi_longread(HANDLE handle, DEVICEID devid,
  30. u16 addr, u32 *data);
  31. extern s32 fc8300_ppi_bulkread(HANDLE handle, DEVICEID devid,
  32. u16 addr, u8 *data, u16 length);
  33. extern s32 fc8300_ppi_bytewrite(HANDLE handle, DEVICEID devid,
  34. u16 addr, u8 data);
  35. extern s32 fc8300_ppi_wordwrite(HANDLE handle, DEVICEID devid,
  36. u16 addr, u16 data);
  37. extern s32 fc8300_ppi_longwrite(HANDLE handle, DEVICEID devid,
  38. u16 addr, u32 data);
  39. extern s32 fc8300_ppi_bulkwrite(HANDLE handle, DEVICEID devid,
  40. u16 addr, u8 *data, u16 length);
  41. extern s32 fc8300_ppi_dataread(HANDLE handle, DEVICEID devid,
  42. u16 addr, u8 *data, u32 length);
  43. extern s32 fc8300_ppi_deinit(HANDLE handle);
  44. #ifdef __cplusplus
  45. }
  46. #endif
  47. #endif /* __FC8300_PPI_H__ */