diff options
Diffstat (limited to 'packages/qte/qte-4.0.0-snapshot')
-rw-r--r-- | packages/qte/qte-4.0.0-snapshot/.mtn2git_empty | 0 | ||||
-rw-r--r-- | packages/qte/qte-4.0.0-snapshot/add-qatomic.patch | 72 | ||||
-rw-r--r-- | packages/qte/qte-4.0.0-snapshot/fix-mkspecs.patch | 68 | ||||
-rw-r--r-- | packages/qte/qte-4.0.0-snapshot/fix-qwidget.patch | 17 | ||||
-rw-r--r-- | packages/qte/qte-4.0.0-snapshot/fix-qwsmanager.patch | 18 | ||||
-rw-r--r-- | packages/qte/qte-4.0.0-snapshot/fix-sl5000driver.patch | 29 | ||||
-rw-r--r-- | packages/qte/qte-4.0.0-snapshot/fix-vncdriver.patch | 16 | ||||
-rw-r--r-- | packages/qte/qte-4.0.0-snapshot/gcc34.patch | 26 | ||||
-rw-r--r-- | packages/qte/qte-4.0.0-snapshot/no-moc-no-uic-no-rcc.patch | 25 | ||||
-rw-r--r-- | packages/qte/qte-4.0.0-snapshot/sharp_char.h | 309 | ||||
-rw-r--r-- | packages/qte/qte-4.0.0-snapshot/switches.h | 74 | ||||
-rwxr-xr-x | packages/qte/qte-4.0.0-snapshot/update-qtfontdir | 62 |
12 files changed, 0 insertions, 716 deletions
diff --git a/packages/qte/qte-4.0.0-snapshot/.mtn2git_empty b/packages/qte/qte-4.0.0-snapshot/.mtn2git_empty deleted file mode 100644 index e69de29bb2..0000000000 --- a/packages/qte/qte-4.0.0-snapshot/.mtn2git_empty +++ /dev/null diff --git a/packages/qte/qte-4.0.0-snapshot/add-qatomic.patch b/packages/qte/qte-4.0.0-snapshot/add-qatomic.patch deleted file mode 100644 index 8fea162691..0000000000 --- a/packages/qte/qte-4.0.0-snapshot/add-qatomic.patch +++ /dev/null @@ -1,72 +0,0 @@ - -# -# Patch managed by http://www.holgerschurig.de/patcher.html -# - ---- /dev/null -+++ qt-embedded-opensource-4.0.0-b1/src/core/arch/arm/qatomic.cpp -@@ -0,0 +1,64 @@ -+#include <qhash.h> -+ -+#define UNLOCKED {-1,-1,-1,-1} -+#define UNLOCKED2 UNLOCKED,UNLOCKED -+#define UNLOCKED4 UNLOCKED2,UNLOCKED2 -+#define UNLOCKED8 UNLOCKED4,UNLOCKED4 -+#define UNLOCKED16 UNLOCKED8,UNLOCKED8 -+#define UNLOCKED32 UNLOCKED16,UNLOCKED16 -+#define UNLOCKED64 UNLOCKED32,UNLOCKED32 -+#define UNLOCKED128 UNLOCKED64,UNLOCKED64 -+#define UNLOCKED256 UNLOCKED128,UNLOCKED128 -+ -+// use a 4k page for locks -+static int locks[256][4] = { UNLOCKED256 }; -+ -+int *getLock(volatile void *addr) -+{ return locks[qHash(const_cast<void *>(addr)) % 256]; } -+ -+static int *align16(int *lock) -+{ -+ ulong off = (((ulong) lock) % 16); -+ return off ? (int *)(ulong(lock) + 16 - off) : lock; -+} -+ -+extern "C" { -+ -+ int q_ldcw(volatile int *addr); -+ -+ void q_atomic_lock(int *lock) -+ { -+ // ldcw requires a 16-byte aligned address -+ volatile int *x = align16(lock); -+ // FIXME WHERE IS q_ldcw ??? while (q_ldcw(x) == 0) -+ ; -+ } -+ -+ void q_atomic_unlock(int *lock) -+ { lock[0] = lock[1] = lock[2] = lock[3] = -1; } -+ -+ int q_atomic_test_and_set_ptr(volatile void *ptr, void *expected, void *newval) -+ { -+ int *lock = getLock(ptr); -+ q_atomic_lock(lock); -+ if (*reinterpret_cast<void * volatile *>(ptr) == expected) { -+ *reinterpret_cast<void * volatile *>(ptr) = newval; -+ q_atomic_unlock(lock); -+ return 1; -+ } -+ q_atomic_unlock(lock); -+ return 0; -+ } -+ -+ void *q_atomic_set_ptr(volatile void *ptr, void *newval) -+ { -+ int *lock = getLock(ptr); -+ q_atomic_lock(lock); -+ void *oldval = *reinterpret_cast<void * volatile *>(ptr); -+ *reinterpret_cast<void * volatile *>(ptr) = newval; -+ q_atomic_unlock(lock); -+ return oldval; -+ } -+ -+} -+ diff --git a/packages/qte/qte-4.0.0-snapshot/fix-mkspecs.patch b/packages/qte/qte-4.0.0-snapshot/fix-mkspecs.patch deleted file mode 100644 index 4450b26c25..0000000000 --- a/packages/qte/qte-4.0.0-snapshot/fix-mkspecs.patch +++ /dev/null @@ -1,68 +0,0 @@ - -# -# Patch managed by http://www.holgerschurig.de/patcher.html -# - ---- qt-embedded-opensource-4.0.0-b2-snapshot-20050128/mkspecs/qws/linux-arm-g++/qmake.conf~fix-mkspecs -+++ qt-embedded-opensource-4.0.0-b2-snapshot-20050128/mkspecs/qws/linux-arm-g++/qmake.conf -@@ -8,12 +8,12 @@ - QT += core gui network - QMAKE_INCREMENTAL_STYLE = sublib - --QMAKE_CC = arm-linux-gcc -+QMAKE_CC = $(CCACHE) arm-linux-gcc - QMAKE_LEX = flex - QMAKE_LEXFLAGS = - QMAKE_YACC = yacc - QMAKE_YACCFLAGS = -d --QMAKE_CFLAGS = -pipe -+QMAKE_CFLAGS = -pipe $(EXTRA_CFLAGS) - QMAKE_CFLAGS_WARN_ON = -Wall -W - QMAKE_CFLAGS_WARN_OFF = - QMAKE_CFLAGS_RELEASE = -O2 -@@ -22,8 +22,8 @@ - QMAKE_CFLAGS_YACC = -Wno-unused -Wno-parentheses - QMAKE_CFLAGS_THREAD = -D_REENTRANT - --QMAKE_CXX = arm-linux-g++ --QMAKE_CXXFLAGS = $$QMAKE_CFLAGS -fno-exceptions -fno-rtti -+QMAKE_CXX = $(CCACHE) arm-linux-g++ -+QMAKE_CXXFLAGS = $$QMAKE_CFLAGS -fno-exceptions -fno-rtti $(EXTRA_CXXFLAGS) - QMAKE_CXXFLAGS_WARN_ON = $$QMAKE_CFLAGS_WARN_ON - QMAKE_CXXFLAGS_WARN_OFF = $$QMAKE_CFLAGS_WARN_OFF - QMAKE_CXXFLAGS_RELEASE = $$QMAKE_CFLAGS_RELEASE -@@ -45,14 +45,14 @@ - - QMAKE_LINK = arm-linux-g++ - QMAKE_LINK_SHLIB = arm-linux-g++ --QMAKE_LFLAGS = -+QMAKE_LFLAGS = $(EXTRA_LFLAGS) - QMAKE_LFLAGS_RELEASE = - QMAKE_LFLAGS_DEBUG = - QMAKE_LFLAGS_SHLIB = -shared - QMAKE_LFLAGS_PLUGIN = $$QMAKE_LFLAGS_SHLIB - QMAKE_LFLAGS_SONAME = -Wl,-soname, - QMAKE_LFLAGS_THREAD = --QMAKE_RPATH = -Wl,-rpath, -+QMAKE_RPATH = -Wl,-rpath-link, - - QMAKE_LIBS = - QMAKE_LIBS_DYNLOAD = -ldl -@@ -66,6 +66,7 @@ - - QMAKE_MOC = $$[QT_INSTALL_BINS]/moc - QMAKE_UIC = $$[QT_INSTALL_BINS]/uic -+QMAKE_RCC = rcc4 - - QMAKE_AR = ar cqs - QMAKE_RANLIB = ---- qt-embedded-opensource-4.0.0-b2-snapshot-20050128/mkspecs/features/resources.prf~fix-mkspecs -+++ qt-embedded-opensource-4.0.0-b2-snapshot-20050128/mkspecs/features/resources.prf -@@ -1,6 +1,6 @@ - isEmpty(QMAKE_RCC) { - win32:QMAKE_RCC = $$[QT_INSTALL_BINS]\rcc.exe -- else:QMAKE_RCC = $$[QT_INSTALL_BINS]/rcc -+ else:QMAKE_RCC = rcc4 - } - - isEmpty(RCC_DIR):RCC_DIR = . diff --git a/packages/qte/qte-4.0.0-snapshot/fix-qwidget.patch b/packages/qte/qte-4.0.0-snapshot/fix-qwidget.patch deleted file mode 100644 index 4cd174f574..0000000000 --- a/packages/qte/qte-4.0.0-snapshot/fix-qwidget.patch +++ /dev/null @@ -1,17 +0,0 @@ - -# -# Patch managed by http://www.holgerschurig.de/patcher.html -# - ---- qt-embedded-opensource-4.0.0-b1/src/gui/kernel/qwidget.cpp~fix-qwidget -+++ qt-embedded-opensource-4.0.0-b1/src/gui/kernel/qwidget.cpp -@@ -6272,7 +6272,9 @@ - ic->update(); - #endif - // ##### is this correct -+#ifndef QT_NO_ACCESSIBILITY - QAccessible::updateAccessibility(this, 0, QAccessible::StateChanged); -+#endif - } - - diff --git a/packages/qte/qte-4.0.0-snapshot/fix-qwsmanager.patch b/packages/qte/qte-4.0.0-snapshot/fix-qwsmanager.patch deleted file mode 100644 index f676f0e09c..0000000000 --- a/packages/qte/qte-4.0.0-snapshot/fix-qwsmanager.patch +++ /dev/null @@ -1,18 +0,0 @@ - -# -# Patch managed by http://www.holgerschurig.de/patcher.html -# - ---- qt-embedded-opensource-4.0.0-b1/src/gui/kernel/qapplication_p.h~fix-qwsmanager -+++ qt-embedded-opensource-4.0.0-b1/src/gui/kernel/qapplication_p.h -@@ -41,7 +41,9 @@ - #include "qmutex.h" - #include "qtranslator.h" - #include "qshortcutmap_p.h" -- -+#ifdef Q_WS_QWS -+#include "qwsmanager_qws.h" -+#endif - #include <private/qcoreapplication_p.h> - #include "qapplication.h" - #include "qbasictimer.h" diff --git a/packages/qte/qte-4.0.0-snapshot/fix-sl5000driver.patch b/packages/qte/qte-4.0.0-snapshot/fix-sl5000driver.patch deleted file mode 100644 index 8f25031d7d..0000000000 --- a/packages/qte/qte-4.0.0-snapshot/fix-sl5000driver.patch +++ /dev/null @@ -1,29 +0,0 @@ - -# -# Patch managed by http://www.holgerschurig.de/patcher.html -# - ---- qt-embedded-opensource-4.0.0-b1/src/gui/embedded/qkbdsl5000_qws.cpp~fix-sl5000driver -+++ qt-embedded-opensource-4.0.0-b1/src/gui/embedded/qkbdsl5000_qws.cpp -@@ -219,7 +219,7 @@ - else if (code == 0x44) { unicode='V'-'@'; scan=Qt::Key_V; } // Paste - else if (code == 0x52) { unicode='Z'-'@'; scan=Qt::Key_Z; } // Undo - if (scan) { -- processKeyEvent(unicode, scan, Qt::ControlButton, !release, false); -+ processKeyEvent(unicode, scan, Qt::ControlModifier, !release, false); - return; - } - } -@@ -307,9 +307,9 @@ - } - - modifiers = 0; -- if (bAlt) modifiers |= Qt::AltButton; -- if (bCtrl) modifiers |= Qt::ControlButton; -- if (bShift) modifiers |= Qt::ShiftButton; -+ if (bAlt) modifiers |= Qt::AltModifier; -+ if (bCtrl) modifiers |= Qt::ControlModifier; -+ if (bShift) modifiers |= Qt::ShiftModifier; - - // looks wrong -- WWA - bool repeat = false; diff --git a/packages/qte/qte-4.0.0-snapshot/fix-vncdriver.patch b/packages/qte/qte-4.0.0-snapshot/fix-vncdriver.patch deleted file mode 100644 index 8c48083a8b..0000000000 --- a/packages/qte/qte-4.0.0-snapshot/fix-vncdriver.patch +++ /dev/null @@ -1,16 +0,0 @@ - -# -# Patch managed by http://www.holgerschurig.de/patcher.html -# - ---- qt-embedded-opensource-4.0.0-b1/src/gui/embedded/qgfxvnc_qws.cpp~fix-vncdriver -+++ qt-embedded-opensource-4.0.0-b1/src/gui/embedded/qgfxvnc_qws.cpp -@@ -31,7 +31,7 @@ - #include "qgfxvnc_qws.h" - #include <private/qsharedmemory_p.h> - #include <stdlib.h> -- -+#include <stdio.h> - extern QString qws_qtePipeFilename(); - - #define MAP_TILE_SIZE 16 diff --git a/packages/qte/qte-4.0.0-snapshot/gcc34.patch b/packages/qte/qte-4.0.0-snapshot/gcc34.patch deleted file mode 100644 index 603e230dd5..0000000000 --- a/packages/qte/qte-4.0.0-snapshot/gcc34.patch +++ /dev/null @@ -1,26 +0,0 @@ - -# -# Patch managed by http://www.holgerschurig.de/patcher.html -# - ---- qt-embedded-opensource-4.0.0-b1/src/core/tools/qchar.h~gcc34 -+++ qt-embedded-opensource-4.0.0-b1/src/core/tools/qchar.h -@@ -197,7 +197,7 @@ - const char ascii() const; - const char latin1() const; - inline const ushort unicode() const { return ucs; } -- inline ushort &unicode() { return ucs; } -+ inline ushort &unicode() { return *(&ucs); } - - static QChar fromAscii(char c); - static QChar fromLatin1(char c); ---- qt-embedded-opensource-4.0.0-b1/src/gui/embedded/qgfxlinuxfb_qws.cpp~gcc34 -+++ qt-embedded-opensource-4.0.0-b1/src/gui/embedded/qgfxlinuxfb_qws.cpp -@@ -31,6 +31,7 @@ - - #include <unistd.h> - #include <stdlib.h> -+#include <stdio.h> - #include <sys/ioctl.h> - #include <sys/types.h> - #include <sys/stat.h> diff --git a/packages/qte/qte-4.0.0-snapshot/no-moc-no-uic-no-rcc.patch b/packages/qte/qte-4.0.0-snapshot/no-moc-no-uic-no-rcc.patch deleted file mode 100644 index 2f99979319..0000000000 --- a/packages/qte/qte-4.0.0-snapshot/no-moc-no-uic-no-rcc.patch +++ /dev/null @@ -1,25 +0,0 @@ - -# -# Patch managed by http://www.holgerschurig.de/patcher.html -# - ---- qt-embedded-opensource-4.0.0-b1/src/src.pro~no-moc-no-uic-no-rcc -+++ qt-embedded-opensource-4.0.0-b1/src/src.pro -@@ -3,16 +3,13 @@ - - # this order is important - win32:SUBDIRS += winmain --SUBDIRS += moc core gui sql -+SUBDIRS += core gui sql - contains(QT_CONFIG, opengl): SUBDIRS += opengl - SUBDIRS += xml network - contains(QT_CONFIG, compat): SUBDIRS += compat - - SUBDIRS += plugins - --embedded:SUBDIRS -= opengl --SUBDIRS += tools -- - # This gives us a top level debug/release - unix { - EXTRA_DEBUG_TARGETS = diff --git a/packages/qte/qte-4.0.0-snapshot/sharp_char.h b/packages/qte/qte-4.0.0-snapshot/sharp_char.h deleted file mode 100644 index a70f5f690e..0000000000 --- a/packages/qte/qte-4.0.0-snapshot/sharp_char.h +++ /dev/null @@ -1,309 +0,0 @@ -/* - * linux/include/asm/sharp_char.h - * - * sharp drivers definitions (SHARP) - * - * Copyright (C) 2001 SHARP - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * Change Log - * 12-Dec-2002 Sharp Corporation for Poodle and Corgi - */ - -#ifndef __ASM_SHARP_CHAR_H_INCLUDED -#define __ASM_SHARP_CHAR_H_INCLUDED - -/* - * If SHARPCHAR_USE_MISCDEV defined , misc driver architecture used instead of sharp_char - */ - -#define SHARPCHAR_USE_MISCDEV - -/* - * devices defines... - */ - -#ifndef SHARP_DEV_MAJOR -#define SHARP_DEV_MAJOR 11 -#endif - -#ifndef SHARP_DEV_MINOR_START -#define SHARP_DEV_MINOR_START 210 -#endif - -#define SHARP_DEV_MINOR_MAX 4 /* defines last minor number of SHARP device */ - -#define SHARP_LED_MINOR (SHARP_DEV_MINOR_START+0) -#define SHARP_BUZZER_MINOR (SHARP_DEV_MINOR_START+1) -#define SHARP_GSM_MINOR (SHARP_DEV_MINOR_START+2) -#define SHARP_AUDIOCTL_MINOR (SHARP_DEV_MINOR_START+3) -#define SHARP_KBDCTL_MINOR (SHARP_DEV_MINOR_START+4) - -/* - * ioctl defines... - */ - -#define SHARP_DEV_IOCTL_COMMAND_START 0x5680 - -/* --- for SHARP_LED device --- */ -#define SHARP_LED_IOCTL_START (SHARP_DEV_IOCTL_COMMAND_START) -#define SHARP_LED_GETSTATUS (SHARP_LED_IOCTL_START) -#define SHARP_LED_SETSTATUS (SHARP_LED_IOCTL_START+1) -#define SHARP_LED_ISUPPORTED (SHARP_LED_IOCTL_START+2) - -typedef struct sharp_led_status { - int which; /* select which LED status is wanted. */ - int status; /* set new led status if you call SHARP_LED_SETSTATUS */ -} sharp_led_status; - -#define SHARP_LED_WHICH_MAX 15 /* last number of LED */ - -/* parameters for 'which' member */ -#define SHARP_LED_PDA 0 /* PDA status */ -#define SHARP_LED_DALARM 1 /* daily alarm */ -#define SHARP_LED_SALARM 2 /* schedule alarm */ -#define SHARP_LED_BATTERY 3 /* main battery status */ -#define SHARP_LED_ACSTATUS 4 /* AC line status */ -#define SHARP_LED_CHARGER 5 /* charger status */ -#define SHARP_LED_PHONE_RSSI 6 /* phone status (RSSI...) */ -#define SHARP_LED_PHONE_DIAL 7 /* phone status (dialing...) */ -#define SHARP_LED_PHONE_IN 8 /* phone status (incoming..) */ -#define SHARP_LED_MAIL_EXISTS 9 /* mail status (exists or not) */ -#define SHARP_LED_MAIL_SEND 10 /* mail status (sending...) */ -#define SHARP_LED_MAIL_QUEUE 11 /* mail to send is in queue */ -#define SHARP_LED_COLLIE_0 12 /* 1st pri. battery LED control */ -#define SHARP_LED_COLLIE_1 13 /* 1st pri. mail LED control */ -#define SHARP_LED_COMM 14 /* communication status */ -#define SHARP_LED_BROWSER 15 /* WWW browser status */ - -/* parameters for 'status' member */ -#define LED_PDA_RUNNING 0 /* for SHARP_LED_RUN */ -#define LED_PDA_SUSPENDED 1 /* for SHARP_LED_RUN */ -#define LED_PDA_OFF 2 /* for SHARP_LED_RUN */ -#define LED_PDA_ERROR 3 /* for SHARP_LED_RUN */ - -#define LED_DALARM_OFF 0 /* for SHARP_LED_DALARM */ -#define LED_DALARM_ON 1 /* for SHARP_LED_DALARM */ - -#define LED_SALARM_OFF 0 /* for SHARP_LED_SALARM */ -#define LED_SALARM_ON 1 /* for SHARP_LED_SALARM */ - -#define LED_BATTERY_GOOD 0 /* for SHARP_LED_BATTERY */ -#define LED_BATTERY_LOW 1 /* for SHARP_LED_BATTERY */ -#define LED_BATTERY_VERY_LOW 2 /* for SHARP_LED_BATTERY */ -#define LED_BATTERY_CRITICAL 3 /* for SHARP_LED_BATTERY */ - -#define LED_CHARGER_OFF 0 /* for SHARP_LED_CHARGER */ -#define LED_CHARGER_CHARGING 1 /* for SHARP_LED_CHARGER */ -#define LED_CHARGER_ERROR 2 /* for SHARP_LED_CHARGER */ -#define LED_CHARGER_FLASH 3 - -#define LED_AC_NOT_CONNECTED 0 /* for SHARP_LED_ACSTATUS */ -#define LED_AC_CONNECTED 1 /* for SHARP_LED_ACSTATUS */ - -#define LED_RSSI_OUT 0 /* for SHARP_LED_PHONE_RSSI */ -#define LED_RSSI_IN 1 /* for SHARP_LED_PHONE_RSSI */ - -#define LED_DIAL_OFF 0 /* for SHARP_LED_PHONE_DIAL */ -#define LED_DIAL_DIALING 1 /* for SHARP_LED_PHONE_DIAL */ -#define LED_DIAL_HOLDING 2 /* for SHARP_LED_PHONE_DIAL */ - -#define LED_PHONE_WAITING 0 /* for SHARP_LED_PHONE_IN */ -#define LED_PHONE_INCOMING 1 /* for SHARP_LED_PHONE_IN */ - -#define LED_MAIL_NO_UNREAD_MAIL 0 /* for SHARP_LED_MAIL_EXISTS */ -#define LED_MAIL_NEWMAIL_EXISTS 1 /* for SHARP_LED_MAIL_EXISTS */ -#define LED_MAIL_UNREAD_MAIL_EX 2 /* for SHARP_LED_MAIL_EXISTS */ - -#define LED_SENDMAIL_OFF 0 /* for SHARP_LED_MAIL_SEND */ -#define LED_SENDMAIL_SENDING 1 /* for SHARP_LED_MAIL_SEND */ -#define LED_SENDMAIL_ERROR 2 /* for SHARP_LED_MAIL_SEND */ - -#define LED_MAILQUEUE_NOUNREAD 0 /* for SHARP_LED_MAIL_QUEUE */ -#define LED_MAILQUEUE_NEWMAIL 1 /* for SHARP_LED_MAIL_QUEUE */ -#define LED_MAILQUEUE_UNREAD 2 /* for SHARP_LED_MAIL_QUEUE */ - -#define LED_COLLIE_0_DEFAULT 0 /* for SHARP_LED_COLLIE_0 */ -#define LED_COLLIE_0_OFF 1 /* for SHARP_LED_COLLIE_0 */ -#define LED_COLLIE_0_ON 2 /* for SHARP_LED_COLLIE_0 */ -#define LED_COLLIE_0_FASTBLINK 3 /* for SHARP_LED_COLLIE_0 */ -#define LED_COLLIE_0_SLOWBLINK 4 /* for SHARP_LED_COLLIE_0 */ - -#define LED_COLLIE_1_DEFAULT 0 /* for SHARP_LED_COLLIE_1 */ -#define LED_COLLIE_1_OFF 1 /* for SHARP_LED_COLLIE_1 */ -#define LED_COLLIE_1_ON 2 /* for SHARP_LED_COLLIE_1 */ -#define LED_COLLIE_1_FLASHON 3 /* for SHARP_LED_COLLIE_1 */ -#define LED_COLLIE_1_FLASHOFF 4 /* for SHARP_LED_COLLIE_1 */ -#define LED_COLLIE_1_VFSTBLINK 5 /* for SHARP_LED_COLLIE_1 */ -#define LED_COLLIE_1_FASTBLINK 6 /* for SHARP_LED_COLLIE_1 */ -#define LED_COLLIE_1_NORMBLINK 7 /* for SHARP_LED_COLLIE_1 */ -#define LED_COLLIE_1_SLOWBLINK 8 /* for SHARP_LED_COLLIE_1 */ -#define LED_COLLIE_1_SOFTBLINK 9 /* for SHARP_LED_COLLIE_1 */ -#define LED_COLLIE_1_SOFTFLASH 10 /* for SHARP_LED_COLLIE_1 */ - -#define LED_COMM_OFFLINE 0 /* for SHARP_LED_COMM */ -#define LED_COMM_ONLINE 1 /* for SHARP_LED_COMM */ -#define LED_COMM_ERROR 2 /* for SHARP_LED_COMM */ - -#define LED_BROWSER_OFFLINE 0 /* for SHARP_LED_BROWSER */ -#define LED_BROWSER_ONLINE 1 /* for SHARP_LED_BROWSER */ -#define LED_BROWSER_ERROR 2 /* for SHARP_LED_BROWSER */ - - -/* --- for SHARP_BUZZER device --- */ -#define SHARP_BUZZER_IOCTL_START (SHARP_DEV_IOCTL_COMMAND_START) -#define SHARP_BUZZER_MAKESOUND (SHARP_BUZZER_IOCTL_START) -#define SHARP_BUZZER_SETVOLUME (SHARP_BUZZER_IOCTL_START+1) -#define SHARP_BUZZER_GETVOLUME (SHARP_BUZZER_IOCTL_START+2) -#define SHARP_BUZZER_ISSUPPORTED (SHARP_BUZZER_IOCTL_START+3) -#define SHARP_BUZZER_SETMUTE (SHARP_BUZZER_IOCTL_START+4) -#define SHARP_BUZZER_STOPSOUND (SHARP_BUZZER_IOCTL_START+5) -#define SHARP_BUZZER_SET_BUFFER (SHARP_BUZZER_IOCTL_START+6) - -typedef struct sharp_buzzer_status { /* this struct is used for setvolume/getvolume */ - int which; /* select which LED status is wanted. */ - int volume; /* set new buzzer volume if you call SHARP_BUZZER_SETVOLUME */ - int mute; /* set 1 to MUTE if you call SHARP_BUZZER_SETMUTE */ -} sharp_buzzer_status; - -#define SHARP_BUZ_WHICH_MAX 14 /* last number of buzzer */ - -#define SHARP_BUZ_ALL_SOUNDS -1 /* for setting volumes of ALL sounds at a time */ - -#define SHARP_BUZ_WRITESOUND 0 /* for sound datas through 'write' calls */ -#define SHARP_BUZ_TOUCHSOUND 1 /* touch panel sound */ -#define SHARP_BUZ_KEYSOUND 2 /* key sound */ -#define SHARP_PDA_ILLCLICKSOUND 3 /* illegal click */ -#define SHARP_PDA_WARNSOUND 4 /* warning occurred */ -#define SHARP_PDA_ERRORSOUND 5 /* error occurred */ -#define SHARP_PDA_CRITICALSOUND 6 /* critical error occurred */ -#define SHARP_PDA_SYSSTARTSOUND 7 /* system start */ -#define SHARP_PDA_SYSTEMENDSOUND 8 /* system shutdown */ -#define SHARP_PDA_APPSTART 9 /* application start */ -#define SHARP_PDA_APPQUIT 10 /* application ends */ -#define SHARP_BUZ_SCHEDULE_ALARM 11 /* schedule alarm */ -#define SHARP_BUZ_DAILY_ALARM 12 /* daily alarm */ -#define SHARP_BUZ_GOT_PHONE_CALL 13 /* phone call sound */ -#define SHARP_BUZ_GOT_MAIL 14 /* mail sound */ - -#define SHARP_BUZ_VOLUME_OFF 0 -#define SHARP_BUZ_VOLUME_LOW 33 -#define SHARP_BUZ_VOLUME_MEDIUM 67 -#define SHARP_BUZ_VOLUME_HIGH 100 /* currentry , this is the maximum ... */ -#define SHARP_BUZ_VOLUME_MAX (SHARP_BUZ_VOLUME_HIGH) - -/* --- for SHARP_GSM device --- */ -#define SHARP_GSM_IOCTL_START (SHARP_DEV_IOCTL_COMMAND_START) -#define SHARP_GSM_GETEXTSTATUS (SHARP_GSM_IOCTL_START+16) -#define SHARP_GSM_INFO_TELL_MODE (SHARP_GSM_IOCTL_START+17) -#define SHARP_IRIS_GETSYNCSTATUS (SHARP_GSM_IOCTL_START+18) -#define SHARP_IRIS_RECHECKDEVICE (SHARP_GSM_IOCTL_START+19) - - -#define GSM_PHONE_NO_POWER 0 /* for SHARP_GSM_INFO_TELL_MODE */ -#define GSM_PHONE_NO_CONNECTION 1 /* for SHARP_GSM_INFO_TELL_MODE */ -#define GSM_PHONE_IN_ANALOG_MODE 2 /* for SHARP_GSM_INFO_TELL_MODE */ -#define GSM_PHONE_IN_DATA_MODE 3 /* for SHARP_GSM_INFO_TELL_MODE */ - -#define IRIS_AUDIO_EXT_IS_NONE 0 -#define IRIS_AUDIO_EXT_IS_HEADPHONEMIC 1 -#define IRIS_AUDIO_EXT_IS_EXTSPEAKER 2 - -typedef struct sharp_gsmext_status { - int carkit; /* be set as 1 , if car-kit is connected */ - int headphone_mic; /* be set as 1 , if head-phone-microphone is inserted */ - int external_sp; /* be set as 1 , if external-speaker is inserted */ -} sharp_gsmext_status; - -typedef struct sharp_irisext_status { /* for SHARP_IRIS_GETSYNCSTATUS */ - int usb; - int uart; - int carkit; -} sharp_irisext_status; - -/* --- for SHARP_AUDIOCTL device --- */ -#define SHARP_AUDIOCTL_IOCTL_START (SHARP_DEV_IOCTL_COMMAND_START) -#define SHARP_AUDIOCTL_ARCH_IOCTL_START (SHARP_DEV_IOCTL_COMMAND_START+0x10) -#define SHARP_IRIS_AUFIL_GETVAL (SHARP_AUDIOCTL_ARCH_IOCTL_START+0) -#define SHARP_IRIS_AUFIL_SETVAL (SHARP_AUDIOCTL_ARCH_IOCTL_START+1) -#define SHARP_IRIS_AMP_EXT_ON (SHARP_AUDIOCTL_ARCH_IOCTL_START+2) -#define SHARP_IRIS_AMP_EXT_OFF (SHARP_AUDIOCTL_ARCH_IOCTL_START+3) - - -#define SHARP_IRIS_AUFIL_FILTERON 0x01 /* Iris AudioCtl Specific. Enable Audio Filter */ - -/* --- for SHARP_AUDIOCTL device --- */ -#define SHARP_KBDCTL_IOCTL_START (SHARP_DEV_IOCTL_COMMAND_START) -#define SHARP_KBDCTL_GETMODIFSTAT (SHARP_KBDCTL_IOCTL_START+0) -#define SHARP_KBDCTL_TOGGLEMODIFSTAT (SHARP_KBDCTL_IOCTL_START+1) -#define SHARP_KBDCTL_SETHOLDTH (SHARP_KBDCTL_IOCTL_START+2) -#define SHARP_KBDCTL_SETHOLDTH_GR (SHARP_KBDCTL_IOCTL_START+3) -#define SHARP_KBDCTL_HOLDINFO_SETHD (SHARP_KBDCTL_IOCTL_START+4) -#define SHARP_KBDCTL_HOLDINFO_SETSL (SHARP_KBDCTL_IOCTL_START+5) -#define SHARP_KBDCTL_HOLDINFO_DELHD (SHARP_KBDCTL_IOCTL_START+6) -#define SHARP_KBDCTL_HOLDINFO_DELSL (SHARP_KBDCTL_IOCTL_START+7) -#define SHARP_KBDCTL_HOLDINFO_RESTHD (SHARP_KBDCTL_IOCTL_START+8) -#define SHARP_KBDCTL_HOLDINFO_RESTSL (SHARP_KBDCTL_IOCTL_START+9) -#define SHARP_KBDCTL_HOLDINFO_RESTFULL (SHARP_KBDCTL_IOCTL_START+10) -#define IRIS_KBDCTL_ENABLEKEYBOARD (SHARP_KBDCTL_IOCTL_START+16) -#define IRIS_KBDCTL_DISABLEKEYBOARD (SHARP_KBDCTL_IOCTL_START+17) -#define SHARP_KBDCTL_SENDKEY (SHARP_KBDCTL_IOCTL_START+18) - -typedef struct sharp_kbdctl_modifstat { - int which; - int stat; -} sharp_kbdctl_modifstat; - -typedef struct sharp_kbdctl_holdstat { - int group; - int timeout; -} sharp_kbdctl_holdstat; - -typedef struct sharp_kbdctl_holdcustom { - int normal_hardcode; - int normal_slcode; - int hold_slcode; -} sharp_kbdctl_holdcustom; - -#define SHARP_EXTMODIF_2ND 0x01 -#define SHARP_EXTMODIF_CAPS 0x02 -#define SHARP_EXTMODIF_NUMLOCK 0x03 - -#define HOLDKEY_GROUP_NORMAL 0 -#define HOLDKEY_GROUP_POWER 1 - - -/* --- for AUDIO & REMOCON device --- */ -#define HPJACK_STATE_UNDETECT (-1) -#define HPJACK_STATE_NONE (0) -#define HPJACK_STATE_HEADPHONE (1) -#define HPJACK_STATE_REMOCON (2) - - -#endif /* __ASM_SHARP_CHAR_H_INCLUDED */ - - -//#define EXTERNAL_IO_BASE01 0xF8000000 -//#define EXTEND_GPIO_RED_LED (1<<4) -//#define EXTEND_GPIO_GREEN_LED (1<<5) -//unsigned short * pwEGPIO1 ; -//unsigned short gwExtendGpio1; -// pwEGPIO1 = (unsigned short *) EXTERNAL_IO_BASE01; - - - - - - - - - diff --git a/packages/qte/qte-4.0.0-snapshot/switches.h b/packages/qte/qte-4.0.0-snapshot/switches.h deleted file mode 100644 index 37516b4c75..0000000000 --- a/packages/qte/qte-4.0.0-snapshot/switches.h +++ /dev/null @@ -1,74 +0,0 @@ -/* - * linux/include/linux/switches.h - * - * Copyright (C) 2000 John Dorsey - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License version 2 as - * published by the Free Software Foundation. - * - * 23 October 2000 - created. - */ - -#if !defined(_LINUX_SWITCHES_H) -#define _LINUX_SWITCHES_H - -#define SWITCHES_MASK_SIZE (128) - -typedef unsigned long switches_bitfield; - -#define SWITCHES_BITS (sizeof(switches_bitfield) * 8) -#define SWITCHES_NUM_FIELDS (SWITCHES_MASK_SIZE / SWITCHES_BITS) -#define SWITCHES_FIELD_SELECT(i) ((i) / SWITCHES_BITS) -#define SWITCHES_FIELD_MASK(i) ((switches_bitfield)(1 << (i) % \ - SWITCHES_BITS)) - -typedef struct switches_mask_t { - unsigned int count; - switches_bitfield events[SWITCHES_NUM_FIELDS]; - switches_bitfield states[SWITCHES_NUM_FIELDS]; -} switches_mask_t; - -#define SWITCHES_ZERO(m) \ -do { \ - unsigned int sz_i; \ - (m)->count = 0; \ - for(sz_i = 0; sz_i < SWITCHES_NUM_FIELDS; ++sz_i) \ - (m)->events[sz_i] = (m)->states[sz_i] = 0; \ -} while (0) - -/* `s' is the state of the switch, either 0 or non-zero: */ -#define SWITCHES_SET(m, i, s) \ -do { \ - ((m)->events[SWITCHES_FIELD_SELECT((i))] |= \ - SWITCHES_FIELD_MASK((i))); \ - if(s) \ - ((m)->states[SWITCHES_FIELD_SELECT((i))] |= \ - SWITCHES_FIELD_MASK((i))); \ - else \ - ((m)->states[SWITCHES_FIELD_SELECT((i))] &= \ - ~SWITCHES_FIELD_MASK((i))); \ - ++((m)->count); \ -} while (0) - -/* Should only use to clear an event set by SWITCHES_SET(): */ -#define SWITCHES_CLEAR(m, i) \ -do { \ - ((m)->events[SWITCHES_FIELD_SELECT((i))] &= \ - ~SWITCHES_FIELD_MASK((i))); \ - ((m)->states[SWITCHES_FIELD_SELECT((i))] &= \ - ~SWITCHES_FIELD_MASK((i))); \ - --((m)->count); \ -} - -#define SWITCHES_COUNT(m) ((m)->count) - -/* Returns 0 or non-zero: */ -#define SWITCHES_EVENT(m, i) \ -((m)->events[SWITCHES_FIELD_SELECT((i))] & SWITCHES_FIELD_MASK((i))) - -/* Returns 0 or non-zero: */ -#define SWITCHES_STATE(m, i) \ -((m)->states[SWITCHES_FIELD_SELECT((i))] & SWITCHES_FIELD_MASK((i))) - -#endif /* !defined(_LINUX_SWITCHES_H) */ diff --git a/packages/qte/qte-4.0.0-snapshot/update-qtfontdir b/packages/qte/qte-4.0.0-snapshot/update-qtfontdir deleted file mode 100755 index 6df7b503af..0000000000 --- a/packages/qte/qte-4.0.0-snapshot/update-qtfontdir +++ /dev/null @@ -1,62 +0,0 @@ -#!/bin/sh - -usage() -{ - echo "usage: $0 [font directory, defaults to QTDIR/lib/fonts]" - exit 1 -} - -setVar() -{ - eval "$1='$2'" -} - -getVar() -{ - eval "echo \$$1" -} - -handleQPF() -{ - base=`basename $1` - family=`echo $base|cut -d_ -f1` - pt=`echo $base|cut -d_ -f2` - weight=`echo $base|cut -d_ -f3|sed -e 's,i$,,'` - if (echo $base|cut -d_ -f3|grep -q 'i$'); then - italic="y" - else - italic="n" - fi - echo "$family $base.qpf QPF $italic $weight $pt u" -} - -if [ -z "$1" ]; then - if [ -n "$QTDIR" ]; then - fontdir=$QTDIR/lib/fonts - else - fontdir=/opt/QtPalmtop/lib/fonts - fi -else - fontdir=$1 -fi - -if ! [ -d $fontdir ]; then - echo Error: $fontdir not a directory - exit 1 -fi - -if [ -e $fontdir/fontdir ]; then - cat $fontdir/fontdir | grep -v '\.qpf' > $fontdir/fontdir.new -fi - -( - for file in `ls $fontdir/*.qpf|sed -e's,\.qpf$,,; s,_t[^_]*$,,;'|sort -u`; do - handleQPF $file - done -) >> $fontdir/fontdir.new - -mv $fontdir/fontdir.new $fontdir/fontdir - -exit 0 - -# vim:ai:et:sts=4:sw=4:tw=0: |