Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0+ WITH Linux-syscall-note */
0002 /*
0003  * i8k.h -- Linux driver for accessing the SMM BIOS on Dell laptops
0004  *
0005  * Copyright (C) 2001  Massimo Dal Zotto <dz@debian.org>
0006  *
0007  * This program is free software; you can redistribute it and/or modify it
0008  * under the terms of the GNU General Public License as published by the
0009  * Free Software Foundation; either version 2, or (at your option) any
0010  * later version.
0011  *
0012  * This program is distributed in the hope that it will be useful, but
0013  * WITHOUT ANY WARRANTY; without even the implied warranty of
0014  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
0015  * General Public License for more details.
0016  */
0017 
0018 #ifndef _LINUX_I8K_H
0019 #define _LINUX_I8K_H
0020 
0021 #define I8K_PROC        "/proc/i8k"
0022 #define I8K_PROC_FMT        "1.0"
0023 
0024 #define I8K_BIOS_VERSION    _IOR ('i', 0x80, int)   /* broken: meant 4 bytes */
0025 #define I8K_MACHINE_ID      _IOR ('i', 0x81, int)   /* broken: meant 16 bytes */
0026 #define I8K_POWER_STATUS    _IOR ('i', 0x82, size_t)
0027 #define I8K_FN_STATUS       _IOR ('i', 0x83, size_t)
0028 #define I8K_GET_TEMP        _IOR ('i', 0x84, size_t)
0029 #define I8K_GET_SPEED       _IOWR('i', 0x85, size_t)
0030 #define I8K_GET_FAN     _IOWR('i', 0x86, size_t)
0031 #define I8K_SET_FAN     _IOWR('i', 0x87, size_t)
0032 
0033 #define I8K_FAN_LEFT        1
0034 #define I8K_FAN_RIGHT       0
0035 #define I8K_FAN_OFF     0
0036 #define I8K_FAN_LOW     1
0037 #define I8K_FAN_HIGH        2
0038 #define I8K_FAN_TURBO       3
0039 #define I8K_FAN_MAX     I8K_FAN_TURBO
0040 
0041 #define I8K_VOL_UP      1
0042 #define I8K_VOL_DOWN        2
0043 #define I8K_VOL_MUTE        4
0044 
0045 #define I8K_AC          1
0046 #define I8K_BATTERY     0
0047 
0048 #endif