-rw-r--r-- | library/custom-sharp.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/library/custom-sharp.h b/library/custom-sharp.h index a149bbd..f65d474 100644 --- a/library/custom-sharp.h +++ b/library/custom-sharp.h | |||
@@ -1,24 +1,44 @@ | |||
1 | /********************************************************************** | ||
2 | ** Copyright (C) 2000-2002 Trolltech AS. All rights reserved. | ||
3 | ** | ||
4 | ** This file is part of the Qtopia Environment. | ||
5 | ** | ||
6 | ** This file may be distributed and/or modified under the terms of the | ||
7 | ** GNU General Public License version 2 as published by the Free Software | ||
8 | ** Foundation and appearing in the file LICENSE.GPL included in the | ||
9 | ** packaging of this file. | ||
10 | ** | ||
11 | ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE | ||
12 | ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. | ||
13 | ** | ||
14 | ** See http://www.trolltech.com/gpl/ for GPL licensing information. | ||
15 | ** | ||
16 | ** Contact info@trolltech.com if any conditions of this licensing are | ||
17 | ** not clear to you. | ||
18 | ** | ||
19 | **********************************************************************/ | ||
20 | |||
1 | #define QPE_OWNAPM | 21 | #define QPE_OWNAPM |
2 | #define QPE_HAVE_TOGGLELIGHT | 22 | #define QPE_HAVE_TOGGLELIGHT |
3 | #define QPE_NOCIBAUD | 23 | #define QPE_NOCIBAUD |
4 | #define QPE_STARTMENU | 24 | #define QPE_STARTMENU |
5 | #include <asm/sharp_apm.h> | 25 | #include <asm/sharp_apm.h> |
6 | #ifndef APM_IOC_BATTERY_BACK_CHK | 26 | #ifndef APM_IOC_BATTERY_BACK_CHK |
7 | #define APM_IOC_BATTERY_BACK_CHK _IO(APM_IOC_MAGIC, 32) | 27 | #define APM_IOC_BATTERY_BACK_CHK _IO(APM_IOC_MAGIC, 32) |
8 | #endif | 28 | #endif |
9 | #ifndef APM_IOC_BATTERY_MAIN_CHK | 29 | #ifndef APM_IOC_BATTERY_MAIN_CHK |
10 | #define APM_IOC_BATTERY_MAIN_CHK _IO(APM_IOC_MAGIC, 33) | 30 | #define APM_IOC_BATTERY_MAIN_CHK _IO(APM_IOC_MAGIC, 33) |
11 | #endif | 31 | #endif |
12 | 32 | ||
13 | #include <unistd.h> | 33 | #include <unistd.h> |
14 | #include <stdio.h> | 34 | #include <stdio.h> |
15 | #include <signal.h> | 35 | #include <signal.h> |
16 | #include <fcntl.h> | 36 | #include <fcntl.h> |
17 | #include <sys/ioctl.h> | 37 | #include <sys/ioctl.h> |
18 | 38 | ||
19 | #define SHARP_DEV_IOCTL_COMMAND_START 0x5680 | 39 | #define SHARP_DEV_IOCTL_COMMAND_START 0x5680 |
20 | 40 | ||
21 | /* --- for SHARP_BUZZER device --- */ | 41 | /* --- for SHARP_BUZZER device --- */ |
22 | #defineSHARP_BUZZER_IOCTL_START (SHARP_DEV_IOCTL_COMMAND_START) | 42 | #defineSHARP_BUZZER_IOCTL_START (SHARP_DEV_IOCTL_COMMAND_START) |
23 | #define SHARP_BUZZER_MAKESOUND (SHARP_BUZZER_IOCTL_START) | 43 | #define SHARP_BUZZER_MAKESOUND (SHARP_BUZZER_IOCTL_START) |
24 | #define SHARP_BUZZER_SETVOLUME (SHARP_BUZZER_IOCTL_START+1) | 44 | #define SHARP_BUZZER_SETVOLUME (SHARP_BUZZER_IOCTL_START+1) |