OXIESEC PANEL
- Current Dir:
/
/
usr
/
src
/
linux-headers-4.15.0-197
/
arch
/
sparc
/
include
/
uapi
/
asm
Server IP: 139.59.38.164
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
11/17/2022 06:42:16 AM
rwxr-xr-x
📄
Kbuild
122 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
apc.h
1.7 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
asi.h
14.73 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
auxvec.h
153 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
bitsperlong.h
324 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
byteorder.h
191 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
display7seg.h
1.9 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
envctrl.h
3.41 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
errno.h
5.41 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
fbio.h
7.72 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
fcntl.h
1.75 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
ioctl.h
2.58 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
ioctls.h
5.87 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
ipcbuf.h
776 bytes
11/01/2022 04:52:05 PM
rw-r--r--
📄
jsflash.h
928 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
kvm_para.h
97 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
mman.h
1.22 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
msgbuf.h
1.12 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
openpromio.h
2.13 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
param.h
253 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
perfctr.h
5.56 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
poll.h
273 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
posix_types.h
1.48 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
psr.h
2.21 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
psrcompat.h
2.02 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
pstate.h
5.81 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
ptrace.h
8.03 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
resource.h
770 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
sembuf.h
877 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
setup.h
310 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
shmbuf.h
1.3 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
sigcontext.h
167 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
siginfo.h
670 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
signal.h
4.62 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
socket.h
2.44 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
sockios.h
435 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
stat.h
1.97 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
statfs.h
164 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
swab.h
1.01 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
termbits.h
6.92 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
termios.h
742 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
traps.h
5.15 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
uctx.h
1.39 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
unistd.h
25.3 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
utrap.h
1.5 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
watchdog.h
1 KB
01/28/2018 09:20:33 PM
rw-r--r--
Editing: envctrl.h
Close
/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ /* * * envctrl.h: Definitions for access to the i2c environment * monitoring on Ultrasparc systems. * * Copyright (C) 1998 Eddie C. Dost (ecd@skynet.be) * Copyright (C) 2000 Vinh Truong (vinh.truong@eng.sun.com) * VT - Add all ioctl commands and environment status definitions * VT - Add application note */ #ifndef _SPARC64_ENVCTRL_H #define _SPARC64_ENVCTRL_H 1 #include <linux/ioctl.h> /* Application note: * * The driver supports 4 operations: open(), close(), ioctl(), read() * The device name is /dev/envctrl. * Below is sample usage: * * fd = open("/dev/envtrl", O_RDONLY); * if (ioctl(fd, ENVCTRL_READ_SHUTDOWN_TEMPERATURE, 0) < 0) * printf("error\n"); * ret = read(fd, buf, 10); * close(fd); * * Notice in the case of cpu voltage and temperature, the default is * cpu0. If we need to know the info of cpu1, cpu2, cpu3, we need to * pass in cpu number in ioctl() last parameter. For example, to * get the voltage of cpu2: * * ioctlbuf[0] = 2; * if (ioctl(fd, ENVCTRL_READ_CPU_VOLTAGE, ioctlbuf) < 0) * printf("error\n"); * ret = read(fd, buf, 10); * * All the return values are in ascii. So check read return value * and do appropriate conversions in your application. */ /* IOCTL commands */ /* Note: these commands reflect possible monitor features. * Some boards choose to support some of the features only. */ #define ENVCTRL_RD_CPU_TEMPERATURE _IOR('p', 0x40, int) #define ENVCTRL_RD_CPU_VOLTAGE _IOR('p', 0x41, int) #define ENVCTRL_RD_FAN_STATUS _IOR('p', 0x42, int) #define ENVCTRL_RD_WARNING_TEMPERATURE _IOR('p', 0x43, int) #define ENVCTRL_RD_SHUTDOWN_TEMPERATURE _IOR('p', 0x44, int) #define ENVCTRL_RD_VOLTAGE_STATUS _IOR('p', 0x45, int) #define ENVCTRL_RD_SCSI_TEMPERATURE _IOR('p', 0x46, int) #define ENVCTRL_RD_ETHERNET_TEMPERATURE _IOR('p', 0x47, int) #define ENVCTRL_RD_MTHRBD_TEMPERATURE _IOR('p', 0x48, int) #define ENVCTRL_RD_GLOBALADDRESS _IOR('p', 0x49, int) /* Read return values for a voltage status request. */ #define ENVCTRL_VOLTAGE_POWERSUPPLY_GOOD 0x01 #define ENVCTRL_VOLTAGE_BAD 0x02 #define ENVCTRL_POWERSUPPLY_BAD 0x03 #define ENVCTRL_VOLTAGE_POWERSUPPLY_BAD 0x04 /* Read return values for a fan status request. * A failure match means either the fan fails or * the fan is not connected. Some boards have optional * connectors to connect extra fans. * * There are maximum 8 monitor fans. Some are cpu fans * some are system fans. The mask below only indicates * fan by order number. * Below is a sample application: * * if (ioctl(fd, ENVCTRL_READ_FAN_STATUS, 0) < 0) { * printf("ioctl fan failed\n"); * } * if (read(fd, rslt, 1) <= 0) { * printf("error or fan not monitored\n"); * } else { * if (rslt[0] == ENVCTRL_ALL_FANS_GOOD) { * printf("all fans good\n"); * } else if (rslt[0] == ENVCTRL_ALL_FANS_BAD) { * printf("all fans bad\n"); * } else { * if (rslt[0] & ENVCTRL_FAN0_FAILURE_MASK) { * printf("fan 0 failed or not connected\n"); * } * ...... */ #define ENVCTRL_ALL_FANS_GOOD 0x00 #define ENVCTRL_FAN0_FAILURE_MASK 0x01 #define ENVCTRL_FAN1_FAILURE_MASK 0x02 #define ENVCTRL_FAN2_FAILURE_MASK 0x04 #define ENVCTRL_FAN3_FAILURE_MASK 0x08 #define ENVCTRL_FAN4_FAILURE_MASK 0x10 #define ENVCTRL_FAN5_FAILURE_MASK 0x20 #define ENVCTRL_FAN6_FAILURE_MASK 0x40 #define ENVCTRL_FAN7_FAILURE_MASK 0x80 #define ENVCTRL_ALL_FANS_BAD 0xFF #endif /* !(_SPARC64_ENVCTRL_H) */