/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ /* * * display7seg - Driver interface for the 7-segment display * present on Sun Microsystems CP1400 and CP1500 * * Copyright (c) 2000 Eric Brower <ebrower@usa.net> * */ #ifndef __display7seg_h__ #define __display7seg_h__ #define D7S_IOC 'p' #define D7SIOCRD _IOR(D7S_IOC, 0x45, int) /* Read device state */ #define D7SIOCWR _IOW(D7S_IOC, 0x46, int) /* Write device state */ #define D7SIOCTM _IO (D7S_IOC, 0x47) /* Translate mode (FLIP)*/ /* * ioctl flag definitions * * POINT - Toggle decimal point (0=absent 1=present) * ALARM - Toggle alarm LED (0=green 1=red) * FLIP - Toggle inverted mode (0=normal 1=flipped) * bits 0-4 - Character displayed (see definitions below) * * Display segments are defined as follows, * subject to D7S_FLIP register state: * * a * --- * f| |b * -g- * e| |c * --- * d */ #define D7S_POINT (1 << 7) /* Decimal point*/ #define D7S_ALARM (1 << 6) /* Alarm LED */ #define D7S_FLIP (1 << 5) /* Flip display */ #define D7S_0 0x00 /* Numerals 0-9 */ #define D7S_1 0x01 #define D7S_2 0x02 #define D7S_3 0x03 #define D7S_4 0x04 #define D7S_5 0x05 #define D7S_6 0x06 #define D7S_7 0x07 #define D7S_8 0x08 #define D7S_9 0x09 #define D7S_A 0x0A /* Letters A-F, H, L, P */ #define D7S_B 0x0B #define D7S_C 0x0C #define D7S_D 0x0D #define D7S_E 0x0E #define D7S_F 0x0F #define D7S_H 0x10 #define D7S_E2 0x11 #define D7S_L 0x12 #define D7S_P 0x13 #define D7S_SEGA 0x14 /* Individual segments */ #define D7S_SEGB 0x15 #define D7S_SEGC 0x16 #define D7S_SEGD 0x17 #define D7S_SEGE 0x18 #define D7S_SEGF 0x19 #define D7S_SEGG 0x1A #define D7S_SEGABFG 0x1B /* Segment groupings */ #define D7S_SEGCDEG 0x1C #define D7S_SEGBCEF 0x1D #define D7S_SEGADG 0x1E #define D7S_BLANK 0x1F /* Clear all segments */ #define D7S_MIN_VAL 0x0 #define D7S_MAX_VAL 0x1F #endif /* ifndef __display7seg_h__ */
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
Kbuild | File | 122 B | 0644 |
|
apc.h | File | 1.7 KB | 0644 |
|
asi.h | File | 14.73 KB | 0644 |
|
auxvec.h | File | 153 B | 0644 |
|
bitsperlong.h | File | 324 B | 0644 |
|
byteorder.h | File | 191 B | 0644 |
|
display7seg.h | File | 1.9 KB | 0644 |
|
envctrl.h | File | 3.41 KB | 0644 |
|
errno.h | File | 5.41 KB | 0644 |
|
fbio.h | File | 7.72 KB | 0644 |
|
fcntl.h | File | 1.75 KB | 0644 |
|
ioctl.h | File | 2.58 KB | 0644 |
|
ioctls.h | File | 5.87 KB | 0644 |
|
ipcbuf.h | File | 776 B | 0644 |
|
jsflash.h | File | 928 B | 0644 |
|
kvm_para.h | File | 97 B | 0644 |
|
mman.h | File | 1.22 KB | 0644 |
|
msgbuf.h | File | 1.12 KB | 0644 |
|
openpromio.h | File | 2.13 KB | 0644 |
|
param.h | File | 253 B | 0644 |
|
perfctr.h | File | 5.56 KB | 0644 |
|
poll.h | File | 273 B | 0644 |
|
posix_types.h | File | 1.48 KB | 0644 |
|
psr.h | File | 2.21 KB | 0644 |
|
psrcompat.h | File | 2.02 KB | 0644 |
|
pstate.h | File | 5.81 KB | 0644 |
|
ptrace.h | File | 8.03 KB | 0644 |
|
resource.h | File | 770 B | 0644 |
|
sembuf.h | File | 877 B | 0644 |
|
setup.h | File | 310 B | 0644 |
|
shmbuf.h | File | 1.3 KB | 0644 |
|
sigcontext.h | File | 167 B | 0644 |
|
siginfo.h | File | 670 B | 0644 |
|
signal.h | File | 4.62 KB | 0644 |
|
socket.h | File | 2.44 KB | 0644 |
|
sockios.h | File | 435 B | 0644 |
|
stat.h | File | 1.97 KB | 0644 |
|
statfs.h | File | 164 B | 0644 |
|
swab.h | File | 1.01 KB | 0644 |
|
termbits.h | File | 6.92 KB | 0644 |
|
termios.h | File | 742 B | 0644 |
|
traps.h | File | 5.15 KB | 0644 |
|
uctx.h | File | 1.39 KB | 0644 |
|
unistd.h | File | 25.3 KB | 0644 |
|
utrap.h | File | 1.5 KB | 0644 |
|
watchdog.h | File | 1 KB | 0644 |
|