| /*************************************************************************/ /*! |
| @File |
| @Title Apollo flashing support |
| @Copyright Copyright (c) Imagination Technologies Ltd. All Rights Reserved |
| @Description Apollo flashing support interface |
| @License MIT |
| |
| The contents of this file are subject to the MIT license as set out below. |
| |
| Permission is hereby granted, free of charge, to any person obtaining a copy |
| of this software and associated documentation files (the "Software"), to deal |
| in the Software without restriction, including without limitation the rights |
| to use, copy, modify, merge, publish, distribute, sublicense, and/or sell |
| copies of the Software, and to permit persons to whom the Software is |
| furnished to do so, subject to the following conditions: |
| |
| The above copyright notice and this permission notice shall be included in |
| all copies or substantial portions of the Software. |
| |
| This License is also included in this distribution in the file called |
| "MIT-COPYING". |
| |
| EXCEPT AS OTHERWISE STATED IN A NEGOTIATED AGREEMENT: (A) THE SOFTWARE IS |
| PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING |
| BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR |
| PURPOSE AND NONINFRINGEMENT; AND (B) IN NO EVENT SHALL THE AUTHORS OR |
| COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER |
| IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN |
| CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
| */ /**************************************************************************/ |
| |
| #if !defined(__APOLLO_FLASHER_H_C__) |
| #define __APOLLO_FLASHER_H_C__ |
| |
| #include "img_types.h" |
| #include "pvrsrv_error.h" |
| |
| typedef enum _FLASH_STATUS_ |
| { |
| FLASH_STATUS_NOT_STARTED = 0, |
| FLASH_STATUS_WAITING, |
| FLASH_STATUS_IN_PROGRESS, |
| FLASH_STATUS_FINISHED, |
| FLASH_STATUS_FAILED, |
| } FLASH_STATUS; |
| |
| typedef PVRSRV_ERROR (*PFN_APOLLO_FLASH_INIT)(void *pvData); |
| typedef PVRSRV_ERROR (*PFN_APOLLO_FLASH_WRITE)(void *pvData, const IMG_UINT32 *uiWord); |
| typedef PVRSRV_ERROR (*PFN_APOLLO_FLASH_GET_STATUS)(void *pvData, IMG_UINT32 *puiWriteSpace, FLASH_STATUS *peFlashStatus); |
| |
| PVRSRV_ERROR ApolloFlasherSetup(IMG_HANDLE *phFlasher, |
| PFN_APOLLO_FLASH_WRITE pfnFlashWrite, |
| PFN_APOLLO_FLASH_GET_STATUS pfnFlashGetStatus, |
| void *pvData); |
| PVRSRV_ERROR ApolloFlasherCleanup(IMG_HANDLE hFlasher); |
| |
| #endif /* !defined(__APOLLO_FLASHER_H_C__) */ |