User Flash User Interface Structure; Errors; Example Programs - Sun Microsystems Netra CP2500 Programming Manual

For the solaris operating system
Table of Contents

Advertisement

User Flash User Interface Structure

The user flash user interface structure holds user parameters to commands such as
erase.
User Flash Interface Structure
CODE EXAMPLE 3-2
/*
* uflash user interface structure.
*/
typedef struct {
int
int
uflash_info_t
driver */
} uflash_if_t;

Errors

Application passed one or more incorrect arguments to the system
EINVAL
call.
Write or Erase operation was attempted on a locked block.
EACCESS
A hardware malfunction has been detected. Normally, retrying the
ECANCELLED
command should fix this problem. If the problem persists, power
cycling the system might be necessary.
This error indicates problems with the driver state. Power cycle of
ENXIO
the system or reinstallation of driver may be necessary.
An error was encountered when copying arguments between the
EFAULT
application and driver (kernel) space.
System was low on memory when the driver attempted to acquire it.
ENOMEM
A write operation is already in progress when more than one
EBUSY
write requests are made.

Example Programs

Example programs are provided in this section for the following actions on user
flash device:
Read
blk_num;
num_of_blks;
info;
/* to be filled by the
Chapter 3 User Flash
47

Advertisement

Table of Contents
loading

Table of Contents