~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/arch/sparc/include/uapi/asm/display7seg.h

Version: ~ [ linux-6.11.5 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.58 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.114 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.169 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.228 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.284 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.322 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.9 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

  1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
  2 /*
  3  *
  4  * display7seg - Driver interface for the 7-segment display
  5  * present on Sun Microsystems CP1400 and CP1500
  6  *
  7  * Copyright (c) 2000 Eric Brower <ebrower@usa.net>
  8  *
  9  */
 10 
 11 #ifndef __display7seg_h__
 12 #define __display7seg_h__
 13 
 14 #define D7S_IOC 'p'
 15 
 16 #define D7SIOCRD _IOR(D7S_IOC, 0x45, int)       /* Read device state    */
 17 #define D7SIOCWR _IOW(D7S_IOC, 0x46, int)       /* Write device state   */
 18 #define D7SIOCTM _IO (D7S_IOC, 0x47)            /* Translate mode (FLIP)*/
 19 
 20 /*
 21  * ioctl flag definitions
 22  *
 23  * POINT        - Toggle decimal point  (0=absent 1=present)
 24  * ALARM        - Toggle alarm LED              (0=green  1=red)
 25  * FLIP         - Toggle inverted mode  (0=normal 1=flipped)
 26  * bits 0-4     - Character displayed   (see definitions below)
 27  *
 28  * Display segments are defined as follows,
 29  * subject to D7S_FLIP register state:
 30  *
 31  *    a
 32  *   ---
 33  * f|   |b
 34  *   -g-
 35  * e|   |c
 36  *   ---
 37  *    d
 38  */
 39 
 40 #define D7S_POINT       (1 << 7)        /* Decimal point*/
 41 #define D7S_ALARM       (1 << 6)        /* Alarm LED    */
 42 #define D7S_FLIP        (1 << 5)        /* Flip display */
 43 
 44 #define D7S_0           0x00            /* Numerals 0-9 */
 45 #define D7S_1           0x01
 46 #define D7S_2           0x02
 47 #define D7S_3           0x03
 48 #define D7S_4           0x04
 49 #define D7S_5           0x05
 50 #define D7S_6           0x06
 51 #define D7S_7           0x07
 52 #define D7S_8           0x08
 53 #define D7S_9           0x09
 54 #define D7S_A           0x0A            /* Letters A-F, H, L, P */
 55 #define D7S_B           0x0B
 56 #define D7S_C           0x0C
 57 #define D7S_D           0x0D
 58 #define D7S_E           0x0E
 59 #define D7S_F           0x0F
 60 #define D7S_H           0x10
 61 #define D7S_E2          0x11
 62 #define D7S_L           0x12
 63 #define D7S_P           0x13
 64 #define D7S_SEGA        0x14            /* Individual segments */
 65 #define D7S_SEGB        0x15
 66 #define D7S_SEGC        0x16
 67 #define D7S_SEGD        0x17
 68 #define D7S_SEGE        0x18
 69 #define D7S_SEGF        0x19
 70 #define D7S_SEGG        0x1A
 71 #define D7S_SEGABFG 0x1B                /* Segment groupings */
 72 #define D7S_SEGCDEG     0x1C
 73 #define D7S_SEGBCEF 0x1D
 74 #define D7S_SEGADG      0x1E
 75 #define D7S_BLANK       0x1F            /* Clear all segments */
 76 
 77 #define D7S_MIN_VAL     0x0
 78 #define D7S_MAX_VAL     0x1F
 79 
 80 #endif /* ifndef __display7seg_h__ */
 81 

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php