Add patches accepted for 2.6.22-rc1 (not released yet)
[linux-2.6/linux-acpi-2.6/ibm-acpi-2.6.git] / releases / upstream / 2.6.22-rc1 / 0003-ACPI-ibm-acpi-add-header-file.patch
blob379aeb4ccef90848ab76f6f7e712ba49e46f9d20
1 From 1406cdd1760743106278c1f02a0f445159c8f400 Mon Sep 17 00:00:00 2001
2 From: Henrique de Moraes Holschuh <hmh@hmh.eng.br>
3 Date: Fri, 23 Mar 2007 17:33:56 -0300
4 Subject: ACPI: ibm-acpi: add header file
6 Add a (private) header file for ibm-acpi, and move type definitions and
7 ThinkPad driver constants to the new header file.
9 This patch has no functional changes.
11 Signed-off-by: Henrique de Moraes Holschuh <hmh@hmh.eng.br>
12 Signed-off-by: Len Brown <len.brown@intel.com>
13 ---
14 drivers/acpi/ibm_acpi.c | 139 +---------------
15 drivers/acpi/ibm_acpi.h | 437 +++++++++++++++++++++++++++++++++++++++++++++++
16 2 files changed, 438 insertions(+), 138 deletions(-)
17 create mode 100644 drivers/acpi/ibm_acpi.h
19 diff --git a/drivers/acpi/ibm_acpi.c b/drivers/acpi/ibm_acpi.c
20 index 41c46b0..e2da954 100644
21 --- a/drivers/acpi/ibm_acpi.c
22 +++ b/drivers/acpi/ibm_acpi.c
23 @@ -78,44 +78,13 @@
24 * 2004-08-09 0.1 initial release, support for X series
27 -#include <linux/kernel.h>
28 -#include <linux/module.h>
29 -#include <linux/init.h>
30 -#include <linux/types.h>
31 -#include <linux/string.h>
33 -#include <linux/proc_fs.h>
34 -#include <linux/backlight.h>
35 -#include <linux/fb.h>
36 -#include <asm/uaccess.h>
38 -#include <linux/dmi.h>
39 -#include <linux/jiffies.h>
40 -#include <linux/workqueue.h>
42 -#include <acpi/acpi_drivers.h>
43 -#include <acpi/acnamesp.h>
45 -#define IBM_NAME "ibm"
46 -#define IBM_DESC "IBM ThinkPad ACPI Extras"
47 -#define IBM_FILE "ibm_acpi"
48 -#define IBM_URL "http://ibm-acpi.sf.net/"
49 +#include "ibm_acpi.h"
51 MODULE_AUTHOR("Borislav Deianov, Henrique de Moraes Holschuh");
52 MODULE_DESCRIPTION(IBM_DESC);
53 MODULE_VERSION(IBM_VERSION);
54 MODULE_LICENSE("GPL");
56 -#define IBM_DIR IBM_NAME
58 -#define IBM_LOG IBM_FILE ": "
59 -#define IBM_ERR KERN_ERR IBM_LOG
60 -#define IBM_NOTICE KERN_NOTICE IBM_LOG
61 -#define IBM_INFO KERN_INFO IBM_LOG
62 -#define IBM_DEBUG KERN_DEBUG IBM_LOG
64 -#define IBM_MAX_ACPI_ARGS 3
66 #define __unused __attribute__ ((unused))
68 static int experimental;
69 @@ -207,22 +176,6 @@ IBM_HANDLE(sfan, ec, "SFAN", /* 570 */
70 "JFNS", /* 770x-JL */
71 ); /* all others */
73 -#define IBM_HKEY_HID "IBM0068"
74 -#define IBM_PCI_HID "PNP0A03"
76 -enum thermal_access_mode {
77 - IBMACPI_THERMAL_NONE = 0, /* No thermal support */
78 - IBMACPI_THERMAL_ACPI_TMP07, /* Use ACPI TMP0-7 */
79 - IBMACPI_THERMAL_ACPI_UPDT, /* Use ACPI TMP0-7 with UPDT */
80 - IBMACPI_THERMAL_TPEC_8, /* Use ACPI EC regs, 8 sensors */
81 - IBMACPI_THERMAL_TPEC_16, /* Use ACPI EC regs, 16 sensors */
82 -};
84 -#define IBMACPI_MAX_THERMAL_SENSORS 16 /* Max thermal sensors supported */
85 -struct ibm_thermal_sensors_struct {
86 - s32 temp[IBMACPI_MAX_THERMAL_SENSORS];
87 -};
90 * FAN ACCESS MODES
92 @@ -323,72 +276,12 @@ struct ibm_thermal_sensors_struct {
93 * but the ACPI tables just mention level 7.
96 -enum fan_status_access_mode {
97 - IBMACPI_FAN_NONE = 0, /* No fan status or control */
98 - IBMACPI_FAN_RD_ACPI_GFAN, /* Use ACPI GFAN */
99 - IBMACPI_FAN_RD_TPEC, /* Use ACPI EC regs 0x2f, 0x84-0x85 */
102 -enum fan_control_access_mode {
103 - IBMACPI_FAN_WR_NONE = 0, /* No fan control */
104 - IBMACPI_FAN_WR_ACPI_SFAN, /* Use ACPI SFAN */
105 - IBMACPI_FAN_WR_TPEC, /* Use ACPI EC reg 0x2f */
106 - IBMACPI_FAN_WR_ACPI_FANS, /* Use ACPI FANS and EC reg 0x2f */
109 -enum fan_control_commands {
110 - IBMACPI_FAN_CMD_SPEED = 0x0001, /* speed command */
111 - IBMACPI_FAN_CMD_LEVEL = 0x0002, /* level command */
112 - IBMACPI_FAN_CMD_ENABLE = 0x0004, /* enable/disable cmd,
113 - * and also watchdog cmd */
116 -enum { /* Fan control constants */
117 - fan_status_offset = 0x2f, /* EC register 0x2f */
118 - fan_rpm_offset = 0x84, /* EC register 0x84: LSB, 0x85 MSB (RPM)
119 - * 0x84 must be read before 0x85 */
121 - IBMACPI_FAN_EC_DISENGAGED = 0x40, /* EC mode: tachometer
122 - * disengaged */
123 - IBMACPI_FAN_EC_AUTO = 0x80, /* EC mode: auto fan
124 - * control */
127 static char *ibm_thinkpad_ec_found = NULL;
129 -struct ibm_struct {
130 - char *name;
131 - char param[32];
133 - char *hid;
134 - struct acpi_driver *driver;
136 - int (*init) (void);
137 - int (*read) (char *);
138 - int (*write) (char *);
139 - void (*exit) (void);
141 - void (*notify) (struct ibm_struct *, u32);
142 - acpi_handle *handle;
143 - int type;
144 - struct acpi_device *device;
146 - int driver_registered;
147 - int proc_created;
148 - int init_called;
149 - int notify_installed;
151 - int experimental;
154 static struct proc_dir_entry *proc_dir = NULL;
156 static struct backlight_device *ibm_backlight_device = NULL;
158 -#define onoff(status,bit) ((status) & (1 << (bit)) ? "on" : "off")
159 -#define enabled(status,bit) ((status) & (1 << (bit)) ? "enabled" : "disabled")
160 -#define strlencmp(a,b) (strncmp((a), (b), strlen(b)))
162 static int acpi_evalf(acpi_handle handle,
163 void *res, char *method, char *fmt, ...)
165 @@ -775,13 +668,6 @@ static int wan_write(char *buf)
166 return 0;
169 -enum video_access_mode {
170 - IBMACPI_VIDEO_NONE = 0,
171 - IBMACPI_VIDEO_570, /* 570 */
172 - IBMACPI_VIDEO_770, /* 600e/x, 770e, 770x */
173 - IBMACPI_VIDEO_NEW, /* all others */
176 static enum video_access_mode video_supported;
177 static int video_orig_autosw;
179 @@ -1248,12 +1134,6 @@ static int cmos_write(char *buf)
180 return 0;
183 -enum led_access_mode {
184 - IBMACPI_LED_NONE = 0,
185 - IBMACPI_LED_570, /* 570 */
186 - IBMACPI_LED_OLD, /* 600e/x, 770e, 770x, A21e, A2xm/p, T20-22, X20-21 */
187 - IBMACPI_LED_NEW, /* all others */
189 static enum led_access_mode led_supported;
191 static int led_init(void)
192 @@ -1310,10 +1190,6 @@ static const int led_exp_hlbl[] = { 0, 0, 1 }; /* led# * */
193 static const int led_exp_hlcl[] = { 0, 1, 1 }; /* led# * */
194 static const int led_led_arg1[] = { 0, 0x80, 0xc0 };
196 -#define IBMACPI_LED_EC_HLCL 0x0c
197 -#define IBMACPI_LED_EC_HLBL 0x0d
198 -#define IBMACPI_LED_EC_HLMS 0x0e
200 static int led_write(char *buf)
202 char *cmd;
203 @@ -1629,8 +1505,6 @@ static int ecdump_write(char *buf)
204 return 0;
207 -static int brightness_offset = 0x31;
209 static int brightness_get(struct backlight_device *bd)
211 u8 level;
212 @@ -1659,9 +1533,6 @@ static int brightness_read(char *p)
213 return len;
216 -#define TP_CMOS_BRIGHTNESS_UP 4
217 -#define TP_CMOS_BRIGHTNESS_DOWN 5
219 static int brightness_set(int value)
221 int cmos_cmd, inc, i;
222 @@ -1752,8 +1623,6 @@ static void brightness_exit(void)
226 -static int volume_offset = 0x30;
228 static int volume_read(char *p)
230 int len = 0;
231 @@ -1772,10 +1641,6 @@ static int volume_read(char *p)
232 return len;
235 -#define TP_CMOS_VOLUME_DOWN 0
236 -#define TP_CMOS_VOLUME_UP 1
237 -#define TP_CMOS_VOLUME_MUTE 2
239 static int volume_write(char *buf)
241 int cmos_cmd, inc, i;
242 @@ -2563,8 +2428,6 @@ static int __init register_ibmacpi_subdriver(struct ibm_struct *ibm)
243 return ret;
246 -static void ibm_exit(struct ibm_struct *ibm);
248 static int __init ibm_init(struct ibm_struct *ibm)
250 int ret;
251 diff --git a/drivers/acpi/ibm_acpi.h b/drivers/acpi/ibm_acpi.h
252 new file mode 100644
253 index 0000000..7ebaaa4
254 --- /dev/null
255 +++ b/drivers/acpi/ibm_acpi.h
256 @@ -0,0 +1,437 @@
258 + * ibm_acpi.h - IBM ThinkPad ACPI Extras
261 + * Copyright (C) 2004-2005 Borislav Deianov <borislav@users.sf.net>
262 + * Copyright (C) 2006-2007 Henrique de Moraes Holschuh <hmh@hmh.eng.br>
264 + * This program is free software; you can redistribute it and/or modify
265 + * it under the terms of the GNU General Public License as published by
266 + * the Free Software Foundation; either version 2 of the License, or
267 + * (at your option) any later version.
269 + * This program is distributed in the hope that it will be useful,
270 + * but WITHOUT ANY WARRANTY; without even the implied warranty of
271 + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
272 + * GNU General Public License for more details.
274 + * You should have received a copy of the GNU General Public License
275 + * along with this program; if not, write to the Free Software
276 + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
277 + * 02110-1301, USA.
278 + */
280 +#ifndef __IBM_ACPI_H__
281 +#define __IBM_ACPI_H__
283 +#include <linux/kernel.h>
284 +#include <linux/module.h>
285 +#include <linux/init.h>
286 +#include <linux/types.h>
287 +#include <linux/string.h>
289 +#include <linux/proc_fs.h>
290 +#include <linux/backlight.h>
291 +#include <linux/fb.h>
292 +#include <asm/uaccess.h>
294 +#include <linux/dmi.h>
295 +#include <linux/jiffies.h>
296 +#include <linux/workqueue.h>
298 +#include <acpi/acpi_drivers.h>
299 +#include <acpi/acnamesp.h>
302 +/****************************************************************************
303 + * Main driver
304 + */
306 +#define IBM_NAME "ibm"
307 +#define IBM_DESC "IBM ThinkPad ACPI Extras"
308 +#define IBM_FILE "ibm_acpi"
309 +#define IBM_URL "http://ibm-acpi.sf.net/"
311 +#define IBM_DIR IBM_NAME
313 +#define IBM_LOG IBM_FILE ": "
314 +#define IBM_ERR KERN_ERR IBM_LOG
315 +#define IBM_NOTICE KERN_NOTICE IBM_LOG
316 +#define IBM_INFO KERN_INFO IBM_LOG
317 +#define IBM_DEBUG KERN_DEBUG IBM_LOG
319 +#define IBM_MAX_ACPI_ARGS 3
321 +/* ThinkPad CMOS commands */
322 +#define TP_CMOS_VOLUME_DOWN 0
323 +#define TP_CMOS_VOLUME_UP 1
324 +#define TP_CMOS_VOLUME_MUTE 2
325 +#define TP_CMOS_BRIGHTNESS_UP 4
326 +#define TP_CMOS_BRIGHTNESS_DOWN 5
328 +#define onoff(status,bit) ((status) & (1 << (bit)) ? "on" : "off")
329 +#define enabled(status,bit) ((status) & (1 << (bit)) ? "enabled" : "disabled")
330 +#define strlencmp(a,b) (strncmp((a), (b), strlen(b)))
332 +/* ACPI HIDs */
333 +#define IBM_HKEY_HID "IBM0068"
334 +#define IBM_PCI_HID "PNP0A03"
336 +/* ACPI helpers */
337 +static int acpi_evalf(acpi_handle handle,
338 + void *res, char *method, char *fmt, ...);
339 +static int acpi_ec_read(int i, u8 * p);
340 +static int acpi_ec_write(int i, u8 v);
341 +static int _sta(acpi_handle handle);
343 +/* ACPI handles */
344 +static acpi_handle root_handle; /* root namespace */
345 +static acpi_handle ec_handle; /* EC */
346 +static acpi_handle ecrd_handle, ecwr_handle; /* 570 EC access */
347 +static acpi_handle cmos_handle, hkey_handle; /* basic thinkpad handles */
349 +static void ibm_handle_init(char *name,
350 + acpi_handle * handle, acpi_handle parent,
351 + char **paths, int num_paths, char **path);
352 +#define IBM_HANDLE_INIT(object) \
353 + ibm_handle_init(#object, &object##_handle, *object##_parent, \
354 + object##_paths, ARRAY_SIZE(object##_paths), &object##_path)
356 +/* procfs support */
357 +static struct proc_dir_entry *proc_dir;
358 +static int ibm_acpi_driver_init(void);
359 +static int ibm_acpi_driver_read(char *p);
361 +/* procfs helpers */
362 +static int dispatch_read(char *page, char **start, off_t off, int count,
363 + int *eof, void *data);
364 +static int dispatch_write(struct file *file, const char __user * userbuf,
365 + unsigned long count, void *data);
366 +static char *next_cmd(char **cmds);
368 +/* Module */
369 +static int experimental;
370 +static char *ibm_thinkpad_ec_found;
372 +static char* check_dmi_for_ec(void);
373 +static int acpi_ibm_init(void);
374 +static void acpi_ibm_exit(void);
377 +/****************************************************************************
378 + * Subdrivers
379 + */
381 +struct ibm_struct {
382 + char *name;
383 + char param[32];
385 + char *hid;
386 + struct acpi_driver *driver;
388 + int (*init) (void);
389 + int (*read) (char *);
390 + int (*write) (char *);
391 + void (*exit) (void);
393 + void (*notify) (struct ibm_struct *, u32);
394 + acpi_handle *handle;
395 + int type;
396 + struct acpi_device *device;
398 + int driver_registered;
399 + int proc_created;
400 + int init_called;
401 + int notify_installed;
403 + int experimental;
406 +static struct ibm_struct ibms[];
407 +static int set_ibm_param(const char *val, struct kernel_param *kp);
408 +static int ibm_init(struct ibm_struct *ibm);
409 +static void ibm_exit(struct ibm_struct *ibm);
411 +/* ACPI devices */
412 +static void dispatch_notify(acpi_handle handle, u32 event, void *data);
413 +static int setup_notify(struct ibm_struct *ibm);
414 +static int ibm_device_add(struct acpi_device *device);
415 +static int register_ibmacpi_subdriver(struct ibm_struct *ibm);
419 + * Bay subdriver
420 + */
422 +#ifdef CONFIG_ACPI_IBM_BAY
423 +static int bay_status_supported, bay_eject_supported;
424 +static int bay_status2_supported, bay_eject2_supported;
426 +static acpi_handle bay_handle, bay_ej_handle;
427 +static acpi_handle bay2_handle, bay2_ej_handle;
429 +static int bay_init(void);
430 +static void bay_notify(struct ibm_struct *ibm, u32 event);
431 +static int bay_read(char *p);
432 +static int bay_write(char *buf);
433 +#endif /* CONFIG_ACPI_IBM_BAY */
437 + * Beep subdriver
438 + */
440 +static acpi_handle beep_handle;
442 +static int beep_read(char *p);
443 +static int beep_write(char *buf);
447 + * Bluetooth subdriver
448 + */
450 +static int bluetooth_supported;
452 +static int bluetooth_init(void);
453 +static int bluetooth_status(void);
454 +static int bluetooth_read(char *p);
455 +static int bluetooth_write(char *buf);
459 + * Brightness (backlight) subdriver
460 + */
462 +static struct backlight_device *ibm_backlight_device;
463 +static int brightness_offset = 0x31;
465 +static int brightness_init(void);
466 +static void brightness_exit(void);
467 +static int brightness_get(struct backlight_device *bd);
468 +static int brightness_set(int value);
469 +static int brightness_update_status(struct backlight_device *bd);
470 +static int brightness_read(char *p);
471 +static int brightness_write(char *buf);
475 + * CMOS subdriver
476 + */
478 +static int cmos_eval(int cmos_cmd);
479 +static int cmos_read(char *p);
480 +static int cmos_write(char *buf);
484 + * Dock subdriver
485 + */
487 +static acpi_handle pci_handle;
488 +#ifdef CONFIG_ACPI_IBM_DOCK
489 +static acpi_handle dock_handle;
491 +static void dock_notify(struct ibm_struct *ibm, u32 event);
492 +static int dock_read(char *p);
493 +static int dock_write(char *buf);
494 +#endif /* CONFIG_ACPI_IBM_DOCK */
498 + * EC dump subdriver
499 + */
501 +static int ecdump_read(char *p) ;
502 +static int ecdump_write(char *buf);
506 + * Fan subdriver
507 + */
509 +enum { /* Fan control constants */
510 + fan_status_offset = 0x2f, /* EC register 0x2f */
511 + fan_rpm_offset = 0x84, /* EC register 0x84: LSB, 0x85 MSB (RPM)
512 + * 0x84 must be read before 0x85 */
514 + IBMACPI_FAN_EC_DISENGAGED = 0x40, /* EC mode: tachometer
515 + * disengaged */
516 + IBMACPI_FAN_EC_AUTO = 0x80, /* EC mode: auto fan
517 + * control */
520 +enum fan_status_access_mode {
521 + IBMACPI_FAN_NONE = 0, /* No fan status or control */
522 + IBMACPI_FAN_RD_ACPI_GFAN, /* Use ACPI GFAN */
523 + IBMACPI_FAN_RD_TPEC, /* Use ACPI EC regs 0x2f, 0x84-0x85 */
526 +enum fan_control_access_mode {
527 + IBMACPI_FAN_WR_NONE = 0, /* No fan control */
528 + IBMACPI_FAN_WR_ACPI_SFAN, /* Use ACPI SFAN */
529 + IBMACPI_FAN_WR_TPEC, /* Use ACPI EC reg 0x2f */
530 + IBMACPI_FAN_WR_ACPI_FANS, /* Use ACPI FANS and EC reg 0x2f */
533 +enum fan_control_commands {
534 + IBMACPI_FAN_CMD_SPEED = 0x0001, /* speed command */
535 + IBMACPI_FAN_CMD_LEVEL = 0x0002, /* level command */
536 + IBMACPI_FAN_CMD_ENABLE = 0x0004, /* enable/disable cmd,
537 + * and also watchdog cmd */
540 +static enum fan_status_access_mode fan_status_access_mode;
541 +static enum fan_control_access_mode fan_control_access_mode;
542 +static enum fan_control_commands fan_control_commands;
543 +static int fan_control_status_known;
544 +static u8 fan_control_initial_status;
545 +static int fan_watchdog_maxinterval;
547 +static acpi_handle fans_handle, gfan_handle, sfan_handle;
549 +static int fan_init(void);
550 +static void fan_exit(void);
551 +static int fan_get_status(u8 *status);
552 +static int fan_get_speed(unsigned int *speed);
553 +static void fan_watchdog_fire(struct work_struct *ignored);
554 +static void fan_watchdog_reset(void);
555 +static int fan_set_level(int level);
556 +static int fan_set_enable(void);
557 +static int fan_set_disable(void);
558 +static int fan_set_speed(int speed);
559 +static int fan_read(char *p);
560 +static int fan_write(char *buf);
561 +static int fan_write_cmd_level(const char *cmd, int *rc);
562 +static int fan_write_cmd_enable(const char *cmd, int *rc);
563 +static int fan_write_cmd_disable(const char *cmd, int *rc);
564 +static int fan_write_cmd_speed(const char *cmd, int *rc);
565 +static int fan_write_cmd_watchdog(const char *cmd, int *rc);
569 + * Hotkey subdriver
570 + */
572 +static int hotkey_supported;
573 +static int hotkey_mask_supported;
574 +static int hotkey_orig_status;
575 +static int hotkey_orig_mask;
577 +static int hotkey_init(void);
578 +static void hotkey_exit(void);
579 +static int hotkey_get(int *status, int *mask);
580 +static int hotkey_set(int status, int mask);
581 +static void hotkey_notify(struct ibm_struct *ibm, u32 event);
582 +static int hotkey_read(char *p);
583 +static int hotkey_write(char *buf);
587 + * LED subdriver
588 + */
590 +enum led_access_mode {
591 + IBMACPI_LED_NONE = 0,
592 + IBMACPI_LED_570, /* 570 */
593 + IBMACPI_LED_OLD, /* 600e/x, 770e, 770x, A21e, A2xm/p, T20-22, X20-21 */
594 + IBMACPI_LED_NEW, /* all others */
597 +enum { /* For IBMACPI_LED_OLD */
598 + IBMACPI_LED_EC_HLCL = 0x0c, /* EC reg to get led to power on */
599 + IBMACPI_LED_EC_HLBL = 0x0d, /* EC reg to blink a lit led */
600 + IBMACPI_LED_EC_HLMS = 0x0e, /* EC reg to select led to command */
603 +static enum led_access_mode led_supported;
604 +static acpi_handle led_handle;
606 +static int led_init(void);
607 +static int led_read(char *p);
608 +static int led_write(char *buf);
611 + * Light (thinklight) subdriver
612 + */
614 +static int light_supported;
615 +static int light_status_supported;
616 +static acpi_handle lght_handle, ledb_handle;
618 +static int light_init(void);
619 +static int light_read(char *p);
620 +static int light_write(char *buf);
624 + * Thermal subdriver
625 + */
627 +enum thermal_access_mode {
628 + IBMACPI_THERMAL_NONE = 0, /* No thermal support */
629 + IBMACPI_THERMAL_ACPI_TMP07, /* Use ACPI TMP0-7 */
630 + IBMACPI_THERMAL_ACPI_UPDT, /* Use ACPI TMP0-7 with UPDT */
631 + IBMACPI_THERMAL_TPEC_8, /* Use ACPI EC regs, 8 sensors */
632 + IBMACPI_THERMAL_TPEC_16, /* Use ACPI EC regs, 16 sensors */
635 +#define IBMACPI_MAX_THERMAL_SENSORS 16 /* Max thermal sensors supported */
636 +struct ibm_thermal_sensors_struct {
637 + s32 temp[IBMACPI_MAX_THERMAL_SENSORS];
640 +static int thermal_init(void);
641 +static int thermal_get_sensors(struct ibm_thermal_sensors_struct *s);
642 +static int thermal_read(char *p);
646 + * Video subdriver
647 + */
649 +enum video_access_mode {
650 + IBMACPI_VIDEO_NONE = 0,
651 + IBMACPI_VIDEO_570, /* 570 */
652 + IBMACPI_VIDEO_770, /* 600e/x, 770e, 770x */
653 + IBMACPI_VIDEO_NEW, /* all others */
656 +static enum video_access_mode video_supported;
657 +static int video_orig_autosw;
658 +static acpi_handle vid_handle, vid2_handle;
660 +static int video_init(void);
661 +static void video_exit(void);
662 +static int video_status(void);
663 +static int video_autosw(void);
664 +static int video_switch(void);
665 +static int video_switch2(int status);
666 +static int video_expand(void);
667 +static int video_read(char *p);
668 +static int video_write(char *buf);
672 + * Volume subdriver
673 + */
675 +static int volume_offset = 0x30;
677 +static int volume_read(char *p);
678 +static int volume_write(char *buf);
682 + * Wan subdriver
683 + */
685 +static int wan_supported;
687 +static int wan_init(void);
688 +static int wan_status(void);
689 +static int wan_read(char *p);
690 +static int wan_write(char *buf);
693 +#endif /* __IBM_ACPI_H */
695 1.5.1