10
Netra CP3010 Board Programming Guide
• January
2006
Flash User Interface Structure
The flash user interface structure holds user parameters to commands such as
erase
.
Resolving Structure Errors
The following table lists the error messages reported when structure errors occur.
CODE
EXAMPLE
2-2
Flash User Interface Structure
/*
* uflash user interface structure.
*/
typedef struct {
int blk_num;
int num_of_blks;
uflash_info_t info; /* to be filled by the
driver */
} uflash_if_t;
TABLE
2-3
Structure Errors
Error Message
Description
EINVAL
An application passed one or more incorrect arguments to the
system call.
EACCESS
A
Write
or
Erase
operation was attempted on a locked block.
ECANCELLED
A hardware malfunction has been detected. Normally, retrying the
command should fix this problem. If the problem persists, power
cycling the system might be necessary.
ENXIO
This error indicates problems with the driver state. Power cycle of
the system or reinstallation of driver might be necessary.
EFAULT
An error was encountered when copying arguments between the
application and driver (kernel) space.
ENOMEM
The system was low on memory when the driver attempted to
acquire it.