Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

ioctl(2)



  nvram(7)                            CLIX                            nvram(7)



  NAME

    nvram, eeprom - Non-volatile memory image

  DESCRIPTION

    The /dev/nvram file is a special file that is an image of the non-volatile
    random access memory (NVRAM) of the workstation.

    The /dev/eeprom file is a special file that is an image of the
    electrically erasable and programmable read-only memory (EEPROM) of the
    machine.  Individual sections may be written separately, but the EEPROM
    must be erased before modifying any section already programmed.  The
    buffer and count for transfer requests must be short (2-byte) aligned.

    Addresses in /dev/nvram and /dev/eeprom are interpreted as memory
    addresses into the corresponding type of memory.

    The ioctl(fildes, request, arg) function may be used for the following
    request:

    NVM_IOCTL_ERASE
           Erases the workstation's EEPROM in preparation for programming.
           All data is destroyed.

  FILES

    /dev/nvram    Interface to NVRAM.

    /dev/eeprom   Interface to EEPROM.

  CAUTIONS

    Care must be taken to insure non-volatile memory contains valid data as
    this data is used during system boots.

  ERRORS

    On failure, errno is set to one of the following values:

    [ENODEV]  The minor device is not correct.

    [ENXIO]   The open() function failed because the device is not available,
              an attempt was made to read or write past the end of non-
              volatile memory, or the transfer request was not aligned
              correctly.

    [EEXIST]  The addressed section of EEPROM contains valid data and must be
              erased before modification.

    [EFAULT]  An error occurred while reading or writing non-volatile memory.



  2/94 - Intergraph Corporation                                              1






  nvram(7)                            CLIX                            nvram(7)



    [EINVAL]  The specified IOCTL request is not supported for this device.

    [EIO]     Erasure of the EEPROM failed.

  RELATED INFORMATION

    Functions:  ioctl(2)















































  2                                              Intergraph Corporation - 2/94




Typewritten Software • bear@typewritten.org • Edmonds, WA 98026