Sun Logo


Netra CP2500 Board Programming Guide

For the Solaristrademark Operating System

819-1749-11



Contents

Figures

Tables

Code Samples

Preface

1. Watchdog Timer

Overview

PICL Plug-In Module

Watchdog Node Management Code

OpenBoot PROM Interface

2. Environmental Monitoring

Environmental Monitoring Component Compatibility

Typical Environmental Monitoring System Application

Typical Cycle From Power Up to Shutdown

Environmental Monitoring Protection at the OpenBoot PROM

Environmental Monitoring Protection at the Operating System Level

Post Shutdown Recovery

Hardware Environmental Monitoring Functions

Switching Power On and Off

Inlet, Exhaust, and CPU Temperature Monitoring

Adjusting the Environmental Monitoring Warning, Critical, and Shutdown Parameter Settings on the Board

OpenBoot PROM Environmental Monitoring

Warning Temperature Response at OpenBoot PROM

Critical Temperature Response at OpenBoot PROM

Using the show-sensors Command at the OpenBoot PROM

Environmental Monitoring Application Programming

Reading Temperature Sensor States Using the PICL API

Using a Configuration File for Sensor Information

Solaris Driver Interface

Sample Application Program

Reading the CPU Temperature and Environmental Limits

3. User Flash

User Flash Usage and Implementation

User Flash Driver

OpenBoot PROM Device Tree and Properties

User Flash Device Files

Interface (Header) File

Application Programming Interface

Structures to Use in IOCTL Arguments

PROM Information Structure

User Flash User Interface Structure

Errors

Example Programs

Read Example Program

Write Example Program

Block Erase Example Program

Sample User Flash Application Program

Index