summaryrefslogtreecommitdiff
path: root/libopie2/opiecore/device/odevice_zaurus.h
authormickeyl <mickeyl>2005-01-01 19:33:30 (UTC)
committer mickeyl <mickeyl>2005-01-01 19:33:30 (UTC)
commit5f310dcd91f574c1b34ca99c157c0b93e6ae1e16 (patch) (side-by-side diff)
tree50157690d75a8f925385a8ef5964b52e22d922ad /libopie2/opiecore/device/odevice_zaurus.h
parenta62cf9bfb9814a6f5ce5aa8d59fbe5b0cfb8414a (diff)
downloadopie-5f310dcd91f574c1b34ca99c157c0b93e6ae1e16.zip
opie-5f310dcd91f574c1b34ca99c157c0b93e6ae1e16.tar.gz
opie-5f310dcd91f574c1b34ca99c157c0b93e6ae1e16.tar.bz2
rewrite backlight stuff
Diffstat (limited to 'libopie2/opiecore/device/odevice_zaurus.h') (more/less context) (ignore whitespace changes)
-rw-r--r--libopie2/opiecore/device/odevice_zaurus.h20
1 files changed, 9 insertions, 11 deletions
diff --git a/libopie2/opiecore/device/odevice_zaurus.h b/libopie2/opiecore/device/odevice_zaurus.h
index dc21546..37ab876 100644
--- a/libopie2/opiecore/device/odevice_zaurus.h
+++ b/libopie2/opiecore/device/odevice_zaurus.h
@@ -76,15 +76,12 @@
#define APM_EVT_POWER_BUTTON (1 << 0)
// Brightness
-#define FL_IOCTL_STEP_CONTRAST 100
-
-#define CORGI_TOSA_BL_IOCTL_ON 1
-#define CORGI_TOSA_BL_IOCTL_OFF 2
-#define CORGI_TOSA_BL_IOCTL_STEP_CONTRAST 100
-#define CORGI_TOSA_BL_IOCTL_GET_STEP_CONTRAST 101
-#define CORGI_TOSA_BL_IOCTL_GET_STEP 102
-#define CORGI_BL_PROC_DEVICE corgi-bl
-#define TOSA_BL_PROC_DEVICE tosa-bl
+#define SHARP_FL_IOCTL_DEVICE "/dev/sharp_fl"
+#define SHARP_FL_IOCTL_ON 1
+#define SHARP_FL_IOCTL_OFF 2
+#define SHARP_FL_IOCTL_STEP_CONTRAST 100
+#define SHARP_FL_IOCTL_GET_STEP_CONTRAST 101
+#define SHARP_FL_IOCTL_GET_STEP 102
namespace Opie {
namespace Core {
@@ -96,9 +93,10 @@ class Zaurus : public ODevice
virtual void initButtons();
public:
- virtual bool setSoftSuspend ( bool soft );
+ virtual bool setSoftSuspend( bool soft );
- virtual bool setDisplayBrightness ( int b );
+ virtual bool setDisplayBrightness( int b );
+ virtual bool setDisplayStatus( bool on );
virtual int displayBrightnessResolution() const;
virtual void playAlarmSound();