1*e2be04c7SGreg Kroah-Hartman /* SPDX-License-Identifier: GPL-2.0+ WITH Linux-syscall-note */ 2607ca46eSDavid Howells /* 3607ca46eSDavid Howells * i8k.h -- Linux driver for accessing the SMM BIOS on Dell laptops 4607ca46eSDavid Howells * 5607ca46eSDavid Howells * Copyright (C) 2001 Massimo Dal Zotto <dz@debian.org> 6607ca46eSDavid Howells * 7607ca46eSDavid Howells * This program is free software; you can redistribute it and/or modify it 8607ca46eSDavid Howells * under the terms of the GNU General Public License as published by the 9607ca46eSDavid Howells * Free Software Foundation; either version 2, or (at your option) any 10607ca46eSDavid Howells * later version. 11607ca46eSDavid Howells * 12607ca46eSDavid Howells * This program is distributed in the hope that it will be useful, but 13607ca46eSDavid Howells * WITHOUT ANY WARRANTY; without even the implied warranty of 14607ca46eSDavid Howells * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 15607ca46eSDavid Howells * General Public License for more details. 16607ca46eSDavid Howells */ 17607ca46eSDavid Howells 18607ca46eSDavid Howells #ifndef _LINUX_I8K_H 19607ca46eSDavid Howells #define _LINUX_I8K_H 20607ca46eSDavid Howells 21607ca46eSDavid Howells #define I8K_PROC "/proc/i8k" 22607ca46eSDavid Howells #define I8K_PROC_FMT "1.0" 23607ca46eSDavid Howells 24607ca46eSDavid Howells #define I8K_BIOS_VERSION _IOR ('i', 0x80, int) /* broken: meant 4 bytes */ 25607ca46eSDavid Howells #define I8K_MACHINE_ID _IOR ('i', 0x81, int) /* broken: meant 16 bytes */ 26607ca46eSDavid Howells #define I8K_POWER_STATUS _IOR ('i', 0x82, size_t) 27607ca46eSDavid Howells #define I8K_FN_STATUS _IOR ('i', 0x83, size_t) 28607ca46eSDavid Howells #define I8K_GET_TEMP _IOR ('i', 0x84, size_t) 29607ca46eSDavid Howells #define I8K_GET_SPEED _IOWR('i', 0x85, size_t) 30607ca46eSDavid Howells #define I8K_GET_FAN _IOWR('i', 0x86, size_t) 31607ca46eSDavid Howells #define I8K_SET_FAN _IOWR('i', 0x87, size_t) 32607ca46eSDavid Howells 33607ca46eSDavid Howells #define I8K_FAN_LEFT 1 34607ca46eSDavid Howells #define I8K_FAN_RIGHT 0 35607ca46eSDavid Howells #define I8K_FAN_OFF 0 36607ca46eSDavid Howells #define I8K_FAN_LOW 1 37607ca46eSDavid Howells #define I8K_FAN_HIGH 2 38d5d22260SGuenter Roeck #define I8K_FAN_TURBO 3 39d5d22260SGuenter Roeck #define I8K_FAN_MAX I8K_FAN_TURBO 40607ca46eSDavid Howells 41607ca46eSDavid Howells #define I8K_VOL_UP 1 42607ca46eSDavid Howells #define I8K_VOL_DOWN 2 43607ca46eSDavid Howells #define I8K_VOL_MUTE 4 44607ca46eSDavid Howells 45607ca46eSDavid Howells #define I8K_AC 1 46607ca46eSDavid Howells #define I8K_BATTERY 0 47607ca46eSDavid Howells 48607ca46eSDavid Howells #endif 49