![]() |
|
|||
0001 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 0002 /* apc - Driver definitions for power management functions 0003 * of Aurora Personality Chip (APC) on SPARCstation-4/5 and 0004 * derivatives 0005 * 0006 * Copyright (c) 2001 Eric Brower (ebrower@usa.net) 0007 * 0008 */ 0009 0010 #ifndef _SPARC_APC_H 0011 #define _SPARC_APC_H 0012 0013 #include <linux/ioctl.h> 0014 0015 #define APC_IOC 'A' 0016 0017 #define APCIOCGFANCTL _IOR(APC_IOC, 0x00, int) /* Get fan speed */ 0018 #define APCIOCSFANCTL _IOW(APC_IOC, 0x01, int) /* Set fan speed */ 0019 0020 #define APCIOCGCPWR _IOR(APC_IOC, 0x02, int) /* Get CPOWER state */ 0021 #define APCIOCSCPWR _IOW(APC_IOC, 0x03, int) /* Set CPOWER state */ 0022 0023 #define APCIOCGBPORT _IOR(APC_IOC, 0x04, int) /* Get BPORT state */ 0024 #define APCIOCSBPORT _IOW(APC_IOC, 0x05, int) /* Set BPORT state */ 0025 0026 /* 0027 * Register offsets 0028 */ 0029 #define APC_IDLE_REG 0x00 0030 #define APC_FANCTL_REG 0x20 0031 #define APC_CPOWER_REG 0x24 0032 #define APC_BPORT_REG 0x30 0033 0034 #define APC_REGMASK 0x01 0035 #define APC_BPMASK 0x03 0036 0037 /* 0038 * IDLE - CPU standby values (set to initiate standby) 0039 */ 0040 #define APC_IDLE_ON 0x01 0041 0042 /* 0043 * FANCTL - Fan speed control state values 0044 */ 0045 #define APC_FANCTL_HI 0x00 /* Fan speed high */ 0046 #define APC_FANCTL_LO 0x01 /* Fan speed low */ 0047 0048 /* 0049 * CPWR - Convenience power outlet state values 0050 */ 0051 #define APC_CPOWER_ON 0x00 /* Conv power on */ 0052 #define APC_CPOWER_OFF 0x01 /* Conv power off */ 0053 0054 /* 0055 * BPA/BPB - Read-Write "Bit Ports" state values (reset to 0 at power-on) 0056 * 0057 * WARNING: Internal usage of bit ports is platform dependent-- 0058 * don't modify BPORT settings unless you know what you are doing. 0059 * 0060 * On SS5 BPA seems to toggle onboard ethernet loopback... -E 0061 */ 0062 #define APC_BPORT_A 0x01 /* Bit Port A */ 0063 #define APC_BPORT_B 0x02 /* Bit Port B */ 0064 0065 #endif /* !(_SPARC_APC_H) */
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.1.0 LXR engine. The LXR team |
![]() ![]() |