2
* Author: Timo Hoenig <thoenig@nouse.net>
3
* Copyright (c) 2003, 2004 Timo Hoenig <thoenig@nouse.net>
6
* This program is free software; you can redistribute it and/or modify
7
* it under the terms of the GNU General Public License as published by
8
* the Free Software Foundation; either version 2, or (at your option)
11
* This program is distributed in the hope that it will be useful,
12
* but WITHOUT ANY WARRANTY; without even the implied warranty of
13
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
* GNU General Public License for more details.
16
* You should have received a copy of the GNU General Public License
17
* along with this program; if not, write to the Free Software
18
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
22
#include <sys/types.h>
47
#define ACPI_TOSHIBA "/proc/acpi/toshiba"
48
#define ACPI_FAN "/proc/acpi/toshiba/fan"
49
#define ACPI_KEYS "/proc/acpi/toshiba/keys"
50
#define ACPI_LCD "/proc/acpi/toshiba/lcd"
51
#define ACPI_VERSION "/proc/acpi/toshiba/version"
52
#define ACPI_VIDEO "/proc/acpi/toshiba/video"
53
#define ACPI_SLEEP "/proc/acpi/sleep"
54
#define ACPI_CPU "/proc/acpi/processor/CPU0/limit"
55
#define ACPI_BLUETOOTH "/proc/acpi/toshiba/bluetooth"
57
#define VAL_TOSHIBA 0x01
61
#define VAL_VERSION 0x10
62
#define VAL_VIDEO 0x20
63
#define VAL_SLEEP 0x40
69
#define FNKEY_ENABLED 0x1
70
#define FNKEY_CLIENT 0x2
71
#define FNKEY_EXTERNAL 0x4
73
#define MIXER_ENABLED 0x1
74
#define MIXER_MUTE 0x2
76
#define SHMKEY 0x31011980
77
#define SHMSIZE 655360
79
#define SEMKEY 0x31011980
81
#define MSGBUFSIZE 1024
84
#define MIXER_SIZE 128
86
#define DCFG_OFFSET 1024
89
#define PIDFILE "/var/run/fnfxd.pid"
94
char device[MIXER_SIZE];
101
char command[CMD_SIZE];
102
char client_command[CMD_SIZE];
103
char descr[LINE_SIZE];
134
/* FnFX Client Config */
135
typedef struct s_client_config {
144
/* FnFX Daemon Config */
145
typedef struct s_daemon_config {