wmauda: Fix installation dir
[dockapps.git] / wmpower-0.4.3 / src / power_management / toshiba / hci.h
blob62815369868edf68945e1a10e0090de1679628d8
1 /* hci.h -- Hardware Configuration Interface
3 * Copyright (c) 1998,1999 Jonathan A. Buzzard (jonathan@buzzard.org.uk)
5 * $Log: hci.h,v $
6 * Revision 1.2 2004/03/27 12:59:15 noberasco
7 * see CL
9 * Revision 1.1 2003/09/18 16:38:27 noberasco
10 * overhaul III
12 * Revision 1.1.1.1 2003/06/05 09:34:03 noberasco
13 * Initial import.
15 * Revision 1.4 2002/01/27 13:23:25 jab
16 * added some more HCI function calls to the list
18 * Revision 1.3 2001/10/05 13:06:26 jab
19 * updates for kernel module checked in
21 * Revision 1.2 1999/12/17 12:19:46 jab
22 * added function prototypes for HciFunction and HciFnStatus
23 * added lots of enum types for various settings
25 * Revision 1.1 1999/03/11 20:29:11 jab
26 * Initial revision
29 * This program is free software; you can redistribute it and/or modify
30 * it under the terms of the GNU General Public License as published by
31 * the Free Software Foundation; either version 2 of the License, or
32 * (at your option) any later version.
34 * This program is distributed in the hope that it will be useful,
35 * but WITHOUT ANY WARRANTY; without even the implied warranty of
36 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
37 * GNU General Public License for more details.
39 * You should have received a copy of the GNU General Public License
40 * along with this program; if not, write to the Free Software
41 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
45 #ifndef HCI_H
46 #define HCI_H
48 #ifdef __cplusplus
49 extern "C" {
50 #endif
52 #ifndef LINUX_TOSHIBA_H
53 #define LINUX_TOSHIBA_H
54 #include<linux/toshiba.h>
55 #endif
58 enum {
59 HCI_GET = 0xfe00,
60 HCI_SET = 0xff00
64 enum {
65 HCI_BACKLIGHT = 0x0002,
66 HCI_AC_ADAPTOR = 0x0003,
67 HCI_FAN = 0x0004,
68 HCI_SOFTWARE_SUSPEND = 0x0010,
69 HCI_FLAT_PANEL = 0x0011,
70 HCI_SELECT_STATUS = 0x0014,
71 HCI_SYSTEM_EVENT = 0x0016,
72 HCI_FIR_STATUS = 0x001b,
73 HCI_VIDEO_OUT = 0x001c,
74 HCI_HOTKEY_EVENT = 0x001e,
75 HCI_UNUSED_MEMORY = 0x0021,
76 HCI_LOCK_STATUS = 0x0022,
77 HCI_BOOT_DEVICE = 0x0026,
78 HCI_OWNERSTRING = 0x0029,
79 HCI_BRIGHTNESS_LEVEL = 0x002a,
80 HCI_HIBERNATION_INFO = 0x002d,
81 HCI_HIBERNATION_LBA = 0x002e,
82 HCI_CPU_SPEED = 0x0032
87 * the different states the various modes can be set to
90 enum {
91 HCI_DISABLE = 0x0000,
92 HCI_ENABLE = 0x0001
95 enum {
96 HCI_640_480 = 0x00,
97 HCI_800_600 = 0x01,
98 HCI_1024_768 = 0x02,
99 HCI_1024_600 = 0x03,
100 HCI_800_480 = 0x04
103 enum {
104 HCI_STN_MONO = 0x00,
105 HCI_STN_COLOUR = 0x01,
106 HCI_9BIT_TFT = 0x02,
107 HCI_12BIT_TFT = 0x03,
108 HCI_18BIT_TFT = 0x04,
109 HCI_24BIT_TFT = 0x05
112 enum {
113 HCI_INTERNAL = 0x0000,
114 HCI_EXTERNAL = 0x0001,
115 HCI_SIMULTANEOUS = 0x0002
118 enum {
119 HCI_BIOS_SIZE = 0x0000,
120 HCI_MEMORY_SIZE = 0x0001,
121 HCI_VRAM_SIZE = 0x0002
124 enum {
125 HCI_BUILT_IN = 0x0000,
126 HCI_SELECT_INT = 0x0001,
127 HCI_SELECT_DOCK = 0x0002,
128 HCI_5INCH_DOCK = 0x0003
131 enum {
132 HCI_LOCKED = 0x0000,
133 HCI_UNLOCKED = 0x0001
136 enum {
137 HCI_NOTHING = 0x0000,
138 HCI_FLOPPY = 0x0001,
139 HCI_ATAPI = 0x0002,
140 HCI_IDE = 0x0003,
141 HCI_BATTERY = 0x0004
146 * HCI error codes
148 enum {
149 HCI_SUCCESS = 0x00,
150 HCI_FAILURE = 0x01,
151 HCI_NOT_SUPPORTED = 0x80,
152 HCI_INPUT_ERROR = 0x83,
153 HCI_WRITE_PROTECTED = 0x84,
154 HCI_FIFO_EMPTY = 0x8c
159 * function prototypes
161 int HciFunction(SMMRegisters *reg);
162 int HciGetBiosVersion(void);
163 int HciGetMachineID(int *id);
164 int HciGetLCDPanelType(int *resolution, int *type);
166 #ifdef __cplusplus
168 #endif
170 #endif