*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->OpenBSD man pages -> sparc/scf (4)              



NAME    [Toc]    [Back]

     scf - SPARC Force sysconfig driver

SYNOPSIS    [Toc]    [Back]

     scf0 at mainbus0

DESCRIPTION    [Toc]    [Back]

     The scf driver provides access to the  system  configuration
registers on
     the Force CPU-5.  The system configuration registers control
the LED display
 on the front panel, the status of  the  rotary  switch,
and the flash
     programming control registers.

     By  setting  the sysctl(8) value machdep.led_blink to a nonzero value, the
     two user LEDs will blink back and forth at a rate of 1  second per point
     of load average.  The seven segment LED will also show a numeric value
     for the load average (in hex), and with load averages higher
than 15, the
     decimal point will be lit.

IOCTLS    [Toc]    [Back]

     The  scf device responds to the following ioctl(2) calls defined in

       (u_int8_t) Set LED1 register based on the bits below.

             #define  SCF_LED_COLOR_MASK       0x03     /*  color
bits */
             #define  SCF_LED_COLOR_OFF        0x00    /* led off
             #define SCF_LED_COLOR_GREEN     0x01    /* green led
             #define  SCF_LED_COLOR_RED        0x02    /* red led
             #define SCF_LED_COLOR_YELLOW     0x03     /*  yellow
led */
             #define  SCF_LED_BLINK_MASK       0x0c     /*  blink
bits */
             #define SCF_LED_BLINK_NONE       0x00     /*  steady
led */
             #define SCF_LED_BLINK_HALF      0x04    /* blink 1/2
hz */
             #define SCF_LED_BLINK_ONE       0x08    /*  blink  1
hz */
             #define  SCF_LED_BLINK_TWO        0x0c    /* blink 2
hz */

       (u_int8_t) Retrieve the value of the LED1  register  (bits

       (u_int8_t)  Set  the  value of the LED2 register (bits defined above).

       (u_int8_t) Retrieve the value of the LED2  register  (bits

       (u_int8_t) Set the value of the 7-segment LED based on the
bits below:

             #define SCF_7LED_A              0x01     /*  Layout:
             #define  SCF_7LED_B              0x02    /*      AAA
             #define SCF_7LED_C              0x04    /*     FF BB
             #define  SCF_7LED_D              0x08    /*      GGG
             #define SCF_7LED_E              0x10    /*     EE CC
             #define  SCF_7LED_F              0x20    /*      DDD
P  */
             #define SCF_7LED_G              0x40
             #define SCF_7LED_P              0x80

       (u_int8_t) Retrieve the value of the  16  position  rotary
switch on the
       front panel.

       (u_int8_t)  Set  up  the flash memory for writing based on
the bits below:

             #define  SCF_FMCTRL_SELROM        0x01      /*   sel
1st/2nd device */
             #define   SCF_FMCTRL_SELBOOT        0x02     /*  sel
boot/user flash */
             #define  SCF_FMCTRL_WRITEV        0x04     /*  write
voltage */
             #define   SCF_FMCTRL_SELADDR       0x38     /*  addr
21:19 bits */

       The SCF_FMCTRL_SELROM bit, if  clear,  selects  the  first
flash device,
       otherwise  the  second  flash  device  is  selected.   The
       bit, if set, selects the user flash,  otherwise  the  boot
flash is selected.
   Setting  the  SCF_FMCTRL_WRITEV bit turns on the
write voltage.
       The SCF_FMCTRL_SELADDR bits determine which window of  512
KBytes is active
 for reading/writing.

SEE ALSO    [Toc]    [Back]

     ioctl(2), intro(4), sysctl(8)

HISTORY    [Toc]    [Back]

     OpenBSD support for the scf first appeared in OpenBSD 2.6.

AUTHORS    [Toc]    [Back]

     The  driver  for the scf was written by Jason L. Wright <jason@thought.net>
     under contract with RTMX Incorporated.

OpenBSD     3.6                           July      25,      1999
[ Back ]
 Similar pages
Name OS Title
fvme OpenBSD SPARC Force FGA5000 VME/SBus bridge driver
fga OpenBSD SPARC Force FGA5000 VME/SBus bridge driver
led OpenBSD SPARC LED driver
auxreg OpenBSD SPARC auxiliary register
qe OpenBSD SPARC Fast Ethernet interface
bpp OpenBSD SPARC bi-directional parallel port
qec OpenBSD SPARC Quad Ethernet Controller
be OpenBSD SPARC Fast Ethernet interface
xbox OpenBSD SPARC SBus Expansion Subsystem
audiocs OpenBSD SPARC CS4231 audio interface
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service