The Design and Implementation of the FreeBSD Operating System, Second Edition
Now available: The Design and Implementation of the FreeBSD Operating System (Second Edition)


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]

FreeBSD/Linux Kernel Cross Reference
sys/sqtconf/conf_led.c

Version: -  FREEBSD  -  FREEBSD-13-STABLE  -  FREEBSD-13-0  -  FREEBSD-12-STABLE  -  FREEBSD-12-0  -  FREEBSD-11-STABLE  -  FREEBSD-11-0  -  FREEBSD-10-STABLE  -  FREEBSD-10-0  -  FREEBSD-9-STABLE  -  FREEBSD-9-0  -  FREEBSD-8-STABLE  -  FREEBSD-8-0  -  FREEBSD-7-STABLE  -  FREEBSD-7-0  -  FREEBSD-6-STABLE  -  FREEBSD-6-0  -  FREEBSD-5-STABLE  -  FREEBSD-5-0  -  FREEBSD-4-STABLE  -  FREEBSD-3-STABLE  -  FREEBSD22  -  l41  -  OPENBSD  -  linux-2.6  -  MK84  -  PLAN9  -  xnu-8792 
SearchContext: -  none  -  3  -  10 

    1 /* 
    2  * Mach Operating System
    3  * Copyright (c) 1991 Carnegie Mellon University
    4  * Copyright (c) 1991 Sequent Computer Systems
    5  * All Rights Reserved.
    6  * 
    7  * Permission to use, copy, modify and distribute this software and its
    8  * documentation is hereby granted, provided that both the copyright
    9  * notice and this permission notice appear in all copies of the
   10  * software, derivative works or modified versions, and any portions
   11  * thereof, and that both notices appear in supporting documentation.
   12  * 
   13  * CARNEGIE MELLON AND SEQUENT COMPUTER SYSTEMS ALLOW FREE USE OF
   14  * THIS SOFTWARE IN ITS "AS IS" CONDITION.  CARNEGIE MELLON AND
   15  * SEQUENT COMPUTER SYSTEMS DISCLAIM ANY LIABILITY OF ANY KIND FOR
   16  * ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
   17  * 
   18  * Carnegie Mellon requests users of this software to return to
   19  * 
   20  *  Software Distribution Coordinator  or  Software.Distribution@CS.CMU.EDU
   21  *  School of Computer Science
   22  *  Carnegie Mellon University
   23  *  Pittsburgh PA 15213-3890
   24  * 
   25  * any improvements or extensions that they make and grant Carnegie Mellon 
   26  * the rights to redistribute these changes.
   27  */
   28 
   29 /*
   30  * HISTORY
   31  * $Log:        conf_led.c,v $
   32  * Revision 2.3  91/07/31  18:05:25  dbg
   33  *      Changed copyright.
   34  *      [91/07/31            dbg]
   35  * 
   36  * Revision 2.2  91/05/08  13:02:33  dbg
   37  *      Adapted for pure Mach kernel.
   38  *      [90/10/03            dbg]
   39  * 
   40  */
   41 
   42 #ifndef lint
   43 static  char    rcsid[] = "$Header: conf_led.c,v 2.3 91/07/31 18:05:25 dbg Exp $";
   44 #endif
   45 
   46 /*
   47  * Configuration of front panel led light show
   48  */
   49 
   50 /*
   51  * Revision 1.2  89/08/16  15:17:38  root
   52  * balance -> sqt
   53  * 
   54  * Revision 1.1  89/07/05  13:17:38  kak
   55  * Initial revision
   56  * 
   57  */
   58 
   59 #include <sys/types.h>
   60 
   61 #include <sqt/slicreg.h>
   62 #include <sqt/clkarb.h>
   63 
   64 #define FP_LED(i)       (SL_C_FP_LIGHT + ((i) * 2))
   65 
   66 /*
   67  * The front panel has 48 programmable leds. These are arranged in 12 columns
   68  * with 4 leds in each row. The front panel led's are addressed from
   69  * left to right, top to bottom.
   70  */
   71 
   72 /*
   73  * Currently assumes only processors will turn on lights.
   74  * Table is indexed by processor number. The first MAXNUMPROC entries
   75  * are reserved for processor use.
   76  */
   77 u_char  fp_lightmap[FP_NLIGHTS] = {
   78         FP_LED(0),
   79         FP_LED(1),
   80         FP_LED(2),
   81         FP_LED(3),
   82         FP_LED(4),
   83         FP_LED(5),
   84         FP_LED(6),
   85         FP_LED(7),
   86         FP_LED(8),
   87         FP_LED(9),
   88         FP_LED(10),
   89         FP_LED(11),
   90         FP_LED(12),
   91         FP_LED(13),
   92         FP_LED(14),
   93         FP_LED(15),
   94         FP_LED(16),
   95         FP_LED(17),
   96         FP_LED(18),
   97         FP_LED(19),
   98         FP_LED(20),
   99         FP_LED(21),
  100         FP_LED(22),
  101         FP_LED(23),
  102         FP_LED(24),
  103         FP_LED(25),
  104         FP_LED(26),
  105         FP_LED(27),
  106         FP_LED(28),
  107         FP_LED(29),
  108         FP_LED(30),
  109         FP_LED(31),
  110         FP_LED(32),
  111         FP_LED(33),
  112         FP_LED(34),
  113         FP_LED(35),
  114         FP_LED(36),
  115         FP_LED(37),
  116         FP_LED(38),
  117         FP_LED(39),
  118         FP_LED(40),
  119         FP_LED(41),
  120         FP_LED(42),
  121         FP_LED(43),
  122         FP_LED(44),
  123         FP_LED(45),
  124         FP_LED(46),
  125         FP_LED(47)
  126 };

Cache object: 4aca081975dd536cd29b070f3accefe3


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]


This page is part of the FreeBSD/Linux Linux Kernel Cross-Reference, and was automatically generated using a modified version of the LXR engine.