1 /* hci.h -- Hardware Configuration Interface
3 * Copyright (c) 1998,1999 Jonathan A. Buzzard (jonathan@buzzard.org.uk)
6 * Revision 1.2 2004/03/27 12:59:15 noberasco
9 * Revision 1.1 2003/09/18 16:38:27 noberasco
12 * Revision 1.1.1.1 2003/06/05 09:34:03 noberasco
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
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.
52 #ifndef LINUX_TOSHIBA_H
53 #define LINUX_TOSHIBA_H
54 #include<linux/toshiba.h>
65 HCI_BACKLIGHT
= 0x0002,
66 HCI_AC_ADAPTOR
= 0x0003,
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
105 HCI_STN_COLOUR
= 0x01,
107 HCI_12BIT_TFT
= 0x03,
108 HCI_18BIT_TFT
= 0x04,
113 HCI_INTERNAL
= 0x0000,
114 HCI_EXTERNAL
= 0x0001,
115 HCI_SIMULTANEOUS
= 0x0002
119 HCI_BIOS_SIZE
= 0x0000,
120 HCI_MEMORY_SIZE
= 0x0001,
121 HCI_VRAM_SIZE
= 0x0002
125 HCI_BUILT_IN
= 0x0000,
126 HCI_SELECT_INT
= 0x0001,
127 HCI_SELECT_DOCK
= 0x0002,
128 HCI_5INCH_DOCK
= 0x0003
133 HCI_UNLOCKED
= 0x0001
137 HCI_NOTHING
= 0x0000,
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
);