User Flash Driver

The uflash is the device driver for the flash PROM device on the Netra CP2500. Access to the driver is carried out through open, read, write, pread, pwrite and ioctl system interfaces.

On the Netra CP2500, one device is supported. There is one logical device file for the physical device that can be accessed from applications. Users can use this device for storing applications and data.

An instance of the driver is loaded for the device. The driver blocks any reads to the device while a write is in progress. Multiple, concurrent reads can go through to the same device at the same time. Writes to a device occur one at a time. All read and write operations are supported at this time.

The device also supports erase and lock features. Applications can use them through the IOCTL interface. The device is divided into logical blocks. Applications that issue these operations also supply a block number or a range of blocks that are a target of these operations. Locks are preserved across reboots. Locking a block prevents an erase or write operation on that block.

OpenBoot PROM Device Tree and Properties

This section provides information on the user flash OpenBoot PROM device node and its properties.

The user flash OpenBoot PROM device node is

/pci@1e,600000/isa@7/flashprom@2,0.

See TABLE 3-1for the user flash node properties.

TABLE 3-1User Flash Node Properties

Property

Description/Value

 

 

sunw,location

U38

system-banks

00 00 00 00 00 00 00 01 00 00 00 02 00 00 00 03

flash-banks

00 00 00 00 00 00 00 1f

write-window

00 08 00 00 00 08 00 00

boot-banks

00 00 00 00 00 00 00 02 00 00 00 04 00 00 00 06

boot-window

00 00 00 00 00 08 00 00

 

 

44 Netra CP2500 Board Programming Guide • March 2007

Page 58
Image 58
Sun Microsystems CP2500 manual User Flash Driver, OpenBoot Prom Device Tree and Properties, 1User Flash Node Properties