|
abstraction library header file (FLASH driver)
More...
Data Structures |
struct | FAPEX_FLASH_RWFuncStrT |
Defines |
#define | FAPEX_FLASH_ERR_BASE (FAPEX_FLASH_MODULE_BASE + FAPEX_RET_ERR_BASE) |
#define | FAPEX_FLASH_ERR_BAD_PARAMETER (FAPEX_FLASH_ERR_BASE + FAPEX_ERR_BAD_PARAMETER) |
#define | FAPEX_FLASH_ERR_OUT_OF_MEMORY (FAPEX_FLASH_ERR_BASE + FAPEX_ERR_OUT_OF_MEMORY) |
#define | FAPEX_IOCCOM_FLASH_OPEN _IOW(FAPEX_DEV_TYPE, FAPEX_IOCCOM_NB_FLASH + 0, uint32_t) |
| ioctl specific command for the BOARDIFC driver
|
#define | FAPEX_IOCCOM_FLASH_ERASE_CHIP _IOW(FAPEX_DEV_TYPE, FAPEX_IOCCOM_NB_FLASH + 3, void *) |
#define | FAPEX_IOCCOM_FLASH_ERASE_SECTOR _IOW(FAPEX_DEV_TYPE, FAPEX_IOCCOM_NB_FLASH + 4, uint32_t) |
#define | FAPEX_IOCCOM_FLASH_WRITE_BYTES _IOW(FAPEX_DEV_TYPE, FAPEX_IOCCOM_NB_FLASH + 5, FAPEX_FLASH_RWFuncStrT) |
#define | FAPEX_IOCCOM_FLASH_READ_BYTES _IOW(FAPEX_DEV_TYPE, FAPEX_IOCCOM_NB_FLASH + 6, FAPEX_FLASH_RWFuncStrT) |
#define | FAPEX_IOCCOM_FLASH_GET_DEVICE_SIZE _IOR(FAPEX_DEV_TYPE, FAPEX_IOCCOM_NB_FLASH + 8, int32_t) |
#define | FAPEX_IOCCOM_FLASH_GET_DEVICE_ID _IOR(FAPEX_DEV_TYPE, FAPEX_IOCCOM_NB_FLASH + 9, int32_t) |
#define | FAPEX_IOCCOM_FLASH_GET_SECTOR_COUNT _IOR(FAPEX_DEV_TYPE, FAPEX_IOCCOM_NB_FLASH + 13, void *) |
#define | FAPEX_IOCCOM_FLASH_GET_SECTOR_BYTES _IOR(FAPEX_DEV_TYPE, FAPEX_IOCCOM_NB_FLASH + 15, uint32_t) |
Functions |
FAPEXOPENRET_T | FAPEX_FLASH_Open (FAPEXOPENARG1_T id, FAPEXOPENARG2_T flags, FAPEXOPENARG3_T argptr) |
| open method. This function is called with the systemcall "open".
|
FAPEXRELRET_T | FAPEX_FLASH_Close (FAPEXRELARG1_T id) |
| release method. This function is called with the systemcall "close".
|
FAPEXIOCRET_T | FAPEX_FLASH_Ioctl (FAPEXIOCARG1_T id, FAPEXIOCARG2_T cmd, FAPEXIOCARG3_T pArg) |
| ioctl method. This function is called with the systemcall "ioctl".
|
Detailed Description
abstraction library header file (FLASH driver)
- Attention:
- This program is provided as is. You can redistribute it and/or modify it. Fujitsu Semiconductor Limited accepts no responsibility or liability for any errors or omissions.
Copyright (C) 2008-2010 Fujitsu Semiconductor Limited, All Rights Reserved.
Define Documentation
#define FAPEX_FLASH_ERR_BASE (FAPEX_FLASH_MODULE_BASE + FAPEX_RET_ERR_BASE) |
FAPex BOARDIFC error code base value
#define FAPEX_FLASH_ERR_BAD_PARAMETER (FAPEX_FLASH_ERR_BASE + FAPEX_ERR_BAD_PARAMETER) |
#define FAPEX_FLASH_ERR_OUT_OF_MEMORY (FAPEX_FLASH_ERR_BASE + FAPEX_ERR_OUT_OF_MEMORY) |
Memory allocation failed.
#define FAPEX_IOCCOM_FLASH_OPEN _IOW(FAPEX_DEV_TYPE, FAPEX_IOCCOM_NB_FLASH + 0, uint32_t) |
ioctl specific command for the BOARDIFC driver
#define FAPEX_IOCCOM_FLASH_ERASE_CHIP _IOW(FAPEX_DEV_TYPE, FAPEX_IOCCOM_NB_FLASH + 3, void *) |
#define FAPEX_IOCCOM_FLASH_ERASE_SECTOR _IOW(FAPEX_DEV_TYPE, FAPEX_IOCCOM_NB_FLASH + 4, uint32_t) |
#define FAPEX_IOCCOM_FLASH_WRITE_BYTES _IOW(FAPEX_DEV_TYPE, FAPEX_IOCCOM_NB_FLASH + 5, FAPEX_FLASH_RWFuncStrT) |
#define FAPEX_IOCCOM_FLASH_GET_DEVICE_SIZE _IOR(FAPEX_DEV_TYPE, FAPEX_IOCCOM_NB_FLASH + 8, int32_t) |
#define FAPEX_IOCCOM_FLASH_GET_DEVICE_ID _IOR(FAPEX_DEV_TYPE, FAPEX_IOCCOM_NB_FLASH + 9, int32_t) |
#define FAPEX_IOCCOM_FLASH_GET_SECTOR_COUNT _IOR(FAPEX_DEV_TYPE, FAPEX_IOCCOM_NB_FLASH + 13, void *) |
#define FAPEX_IOCCOM_FLASH_GET_SECTOR_BYTES _IOR(FAPEX_DEV_TYPE, FAPEX_IOCCOM_NB_FLASH + 15, uint32_t) |
Function Documentation
open method. This function is called with the systemcall "open".
- Parameters:
-
id | The device identifier. |
flags | This parameter indicate a open mode (read only/write only/read-write).
This implementation supports only read-write mode. |
argptr | argument pointer (NULL) |
- Return values:
-
>=0 | process OK, new file descriptor is returned. |
<0 | process fails, its value is set to errno. |
release method. This function is called with the systemcall "close".
- Parameters:
-
id | The identifier for this descriptor. |
- Return values:
-
0 | process OK |
<0 | process fails, its value is set to errno. |
ioctl method. This function is called with the systemcall "ioctl".
- Parameters:
-
id | The identifier for this descriptor. |
cmd | The ioctl command. |
pArg | The pointer to the argument of the ioctl command. |
- Return values:
-
0 | process OK |
<0 | process fails, its value is set to errno. |
ioctl command( cmd) type:
|
Copyright © 2006-2010 by Fujitsu Semiconductor Europe GmbH |
Copyright © 2008-2010 by Fujitsu Semiconductor Limited |
|
|
Disclaimer:
Please note that the use of this has been based on the terms and conditions of "DK Consent Letter (For Linux)"
agreement between you and Fujitsu Semiconductor Limited.
The contents of this document may be revised without prior notice. Contact our sales department for confirmation.
The information in this document are presented as is, no license is granted by implication or otherwise.
More...
FUJITSU sales representatives
|
|