Structures To Use In Ioctl Arguments; Prom Information Structure - Sun Microsystems Netra CP2500 Programming Manual

For the solaris operating system
Table of Contents

Advertisement

The ioctl supported commands are listed below:
#define UIOCIBLK (uflashIOC|0)
#define UIOCQBLK (uflashIOC|1)
#define UIOCLBLK (uflashIOC|2)
#define UIOCCLCK (uflashIOC|4)
#define UIOCEBLK (uflashIOC|5)
Note that these ioctl commands are not supported:
#define UIOCMLCK (uflashIOC|3)
#define UIOCEALL (uflashIOC|6)
#define UIOCEFUL (uflashIOC|7)

Structures to Use in IOCTL Arguments

PROM Information Structure

The PROM information structure holds device information returned by the driver in
response to an identify command.
CODE EXAMPLE 3-1
/*
* PROM info structure.
*/
typedef struct {
by driver */
} uflash_info_t;
46
Netra CP2500 Board Programming Guide • March 2007
PROM Information Structure
uint16_t
uint16_t
/* allow future expansion */
int8_t
blk_status[256];
int32_t
blk_num;
int32_t
blk_size;
/* identify */
/* query a block */
/* lock a block */
/* clear all locks */
/* erase a block */
/* master lock */
/* erase all unlocked blocks */
/* erase full chip */
mfr_id;
dev_id;
/* # of bytes per block */
/* manufacturer id */
/* device id */
/* blks status filled
/* total # of blocks */

Advertisement

Table of Contents
loading

Table of Contents