~ubuntu-branches/ubuntu/natty/lirc/natty

« back to all changes in this revision

Viewing changes to drivers/lirc_wpc8769l/lirc_wpc8769l.h

  • Committer: Bazaar Package Importer
  • Author(s): Mario Limonciello, Jeremy Yoder, Mario Limonciello
  • Date: 2009-10-12 21:16:10 UTC
  • mfrom: (1.2.9 upstream)
  • Revision ID: james.westby@ubuntu.com-20091012211610-z63bnon17ahmxgd1
Tags: 0.8.6-0ubuntu1
[ Jeremy Yoder ]
* Update to LIRC 0.8.6 release. (LP: #432678)
  - added support for ENE KB3926 revision B/C/D (ENE0100) CIR port
    (found on some notebooks, e.g: Acer Aspire 5720G, HP Pavilion dv5)
    (Maxim Levitsky)
  - New parameter for lircd: --repeat-max
  - merged 1st-gen mceusb device support into lirc_mceusb2,
    renamed lirc_mceusb2 to lirc_mceusb
  - added support for putting iMON receviers into MCE/RC6 mode
  - added input subsystem mouse device support to iMON driver
  - improved iMON driver to handle dual-interface iMON devices
    via a single lirc device, reducing configuration complexity
  - added support for more iMON devices, including proper support
    for touchscreen iMON devices (Rene Harder)
  - improved iMON driver including touchscreen support
  - Linux input support added to lircmd
  - added support for IT8720 CIR port
  - added support for XMP protocol
* Cleanup more_remotes.hwdb
* TODO:  Make changes to the "lircd.conf.atiusb" and
  "lircd.conf.hauppauge" files PATCHES instead of duplicates
* TODO:  Submit "lircd.conf.atiusb" and
  "lircd.conf.hauppauge" file patches upstream again
* Changed lirc init script to create socket in /var/run/lirc/lircd
  as is the new default, but also create a symlink /dev/lircd
  to point to it.  This makes all clients happy, old and new.
* Fix bug in dkms.conf.in, forgot to increment array number
  when adding ene0100 driver.
* Added the extra "Debian-only" remotes and transmitters back
  in, but in a different way.  I created a subdirectory 
  "debian/extras" and copy that to /usr/share/lirc/extras.
  This avoids patching the source.
  NOTE: CONFIG FILES IN BOTH LOCATIONS WILL USE THE "extras"
  VERSION.  DUPLICATE LINES IN lirc.hwdb AND extras/remotes.hwdb
  WILL USE THE extras/remotes.hwdb VERSION.  TRY TO AVOID THIS.
* Added support to build new ene0100 driver
* Update debian/lircd.init.d to reflect new default
  PID location in /var/run/lirc
* Update debian/lircd.init.d to force socket to /dev/lircd
  rather than the new default of /var/run/lirc/lircd
* Add support for new lirc-extras package to
  debian/lirc.postinst
* Remove /etc/lircd.conf link to /etc/lirc since
  0.8.6 defaults to /etc/lirc/lircd.conf now
* Drop 04_man_pages patch, included in upstream
* Drop 16_lirc-gpio in favor of a sed line in debian/rules
* Drop 28_irrecord_resume_support - Doesn't work
  according to upstream
* Drop 36_remove_extra_tekram in favor of a minor
  tweak to debian/lirc.postinst to ignore duplicates
* Drop extra remote control/transmitter patches, move to lirc-extras:
  - 21_atiusb
  - 22_hauppauge_novat_500
  - 23_remove_md8800
  - 24_freecom_dvbt
  - 26_transmitter_lircd.conf
  - 30_medion_md1_remote
  - 31_hauppauge_hvr_1100
  - 32_radioshack_15_2116_remote
  - 33_asus_mycinema_remote
  - 34_nebula_digitaltv_remote
  - 35_general_deviniput
  - 37_msi_tv_anywhere
  - 38_encore_enltv
* Cleaned up a few lintian warnings

[ Mario Limonciello ]
* lirc.init.d:
  - Merge a bunch of whitespace cleanup from debian.
* control:
  - Merge whitespace cleanup from debian.
  - Drop breaks on udev.  We don't have any older version of udev in karmic.
* copyright:
  - Sync from debian.
* watch:
  - Sync from debian.
* links:
  - Don't link to a transmitterdb, this should be provided by lirc-extras.
* rules:
  - Install extra changelog, as mentioned in debian's debian/rules.
* dkms.conf.in:
  - Drop bashisms. (LP: #445175)
* lirc.postinst:
  - On upgrades from earlier versions, require the user to reconfigure
    their remote and transmitter.
* lirc-modules-source.postinst:
  - Update to use the DKMS common postinst template.
 

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*      $Id: lirc_wpc8769l.h,v 1.4 2009/02/05 20:55:20 lirc Exp $      */
 
1
/*      $Id: lirc_wpc8769l.h,v 1.5 2009/06/15 15:11:39 jarodwilson Exp $      */
2
2
 
3
3
/****************************************************************************
4
4
 ** lirc_wpc8769l.h ****************************************************
67
67
/* WPC8769L register set definitions. Note that these are all wild guesses.*/
68
68
 
69
69
/* Registers for I/O range 1. */
70
 
#define WPC8769L_SELECT_REG                             0x03
 
70
#define WPC8769L_SELECT_REG                     0x03
71
71
 
72
72
/*------------*/
73
 
#define WPC8769L_BANK_00                                0x00
 
73
#define WPC8769L_BANK_00                        0x00
74
74
 
75
 
#define WPC8769L_DATA_REG                               0x00
 
75
#define WPC8769L_DATA_REG                       0x00
76
76
 
77
77
#define WPC8769L_INTERRUPT_REG                  0x01
78
78
#define WPC8769L_INTERRUPT_1_MASK               0x01
83
83
#define WPC8769L_DATA_STATUS_MASK_1             0x02
84
84
#define WPC8769L_DATA_STATUS_MASK_2             0xd0
85
85
 
86
 
#define WPC8769L_CONFIG_REG                             0x04
 
86
#define WPC8769L_CONFIG_REG                     0x04
87
87
#define WPC8769L_CONFIG_OFF_MASK                0xe0
88
88
#define WPC8769L_CONFIG_ON_MASK                 0xc0
89
89
 
94
94
#define WPC8769L_TIMEOUT_RESET_MASK             0x20
95
95
 
96
96
/*------------*/
97
 
#define WPC8769L_BANK_E0                                0xe0
 
97
#define WPC8769L_BANK_E0                        0xe0
98
98
 
99
99
#define WPC8769L_CONFIG6_REG                    0x00
100
100
#define WPC8769L_CONFIG6_MASK                   0x4b
101
101
 
102
102
#define WPC8769L_CONFIG7_REG                    0x01
103
103
 
104
 
#define WPC8769L_HARDWARE_ENABLE1_REG   0x02
105
 
#define WPC8769L_HARDWARE_ENABLE1_MASK  0x01
 
104
#define WPC8769L_HARDWARE_ENABLE1_REG           0x02
 
105
#define WPC8769L_HARDWARE_ENABLE1_MASK          0x01
106
106
 
107
107
#define WPC8769L_CONFIG5_REG                    0x04
108
108
#define WPC8769L_CONFIG5_ON_MASK                0x30
109
109
 
110
 
#define WPC8769L_REMAINING_RX_DATA_REG  0x07
111
 
 
112
 
/*------------*/
113
 
#define WPC8769L_BANK_E4                                0xe4
114
 
 
115
 
#define WPC8769L_READ_ON_STARTUP_REG    0x00
116
 
 
117
 
/*------------*/
118
 
#define WPC8769L_BANK_EC                                0xec
 
110
#define WPC8769L_REMAINING_RX_DATA_REG          0x07
 
111
 
 
112
/*------------*/
 
113
#define WPC8769L_BANK_E4                        0xe4
 
114
 
 
115
#define WPC8769L_READ_ON_STARTUP_REG            0x00
 
116
 
 
117
/*------------*/
 
118
#define WPC8769L_BANK_EC                        0xec
119
119
 
120
120
#define WPC8769L_CONFIG3_REG                    0x04
121
121
#define WPC8769L_CONFIG3_ON_MASK                0x01
122
122
#define WPC8769L_CONFIG3_MASK_1                 0x10
123
123
 
124
124
/*------------*/
125
 
#define WPC8769L_BANK_F0                                0xf0
 
125
#define WPC8769L_BANK_F0                        0xf0
126
126
 
127
 
#define WPC8769L_WAKEUP_STATUS_LEG_REG  0x02
128
 
#define WPC8769L_WAKEUP_STATUS_LEG_MASK 0x04
 
127
#define WPC8769L_WAKEUP_STATUS_LEG_REG          0x02
 
128
#define WPC8769L_WAKEUP_STATUS_LEG_MASK         0x04
129
129
#define WPC8769L_WAKEUP_STATUS_LEG_MASK_A       0x02
130
130
#define WPC8769L_WAKEUP_STATUS_LEG_MASK_B       0x08
131
131
 
132
132
/*------------*/
133
 
#define WPC8769L_BANK_F4                                0xf4
 
133
#define WPC8769L_BANK_F4                        0xf4
134
134
 
135
135
#define WPC8769L_CONFIG9_REG                    0x01
136
136
 
157
157
#define WPC8769L_CLOCK_ON_MASK                  0x01
158
158
 
159
159
#define WPC8769L_WAKEUP_CONFIG_REG              0x1a
160
 
#define WPC8769L_WAKEUP_CONFIG_PRE_MASK 0x80
 
160
#define WPC8769L_WAKEUP_CONFIG_PRE_MASK         0x80
161
161
#define WPC8769L_MAX_INFO_BITS_BIAS             0x0e
162
 
#define WPC8769L_MAX_INFO_BITS_SHIFT    0x01
 
162
#define WPC8769L_MAX_INFO_BITS_SHIFT            0x01
163
163
 
164
164
#define WPC8769L_WAKEUP_CONFIG3_REG             0x13
165
165
#define WPC8769L_WAKEUP_CONFIG3_OFF_MASK        0x10
166
 
#define WPC8769L_WAKEUP_CONFIG3_ON_MASK 0x21
167
 
#define WPC8769L_WAKEUP_CONFIG3_A_SHIFT 0x01
168
 
#define WPC8769L_WAKEUP_CONFIG3_A_MASK  0x03
169
 
#define WPC8769L_WAKEUP_CONFIG3_B_SHIFT 0x03
170
 
#define WPC8769L_WAKEUP_CONFIG3_B_MASK  0x01
 
166
#define WPC8769L_WAKEUP_CONFIG3_ON_MASK         0x21
 
167
#define WPC8769L_WAKEUP_CONFIG3_A_SHIFT         0x01
 
168
#define WPC8769L_WAKEUP_CONFIG3_A_MASK          0x03
 
169
#define WPC8769L_WAKEUP_CONFIG3_B_SHIFT         0x03
 
170
#define WPC8769L_WAKEUP_CONFIG3_B_MASK          0x01
171
171
 
172
172
#define WPC8769L_WAKEUP_STATUS_REG              0x14
173
 
#define WPC8769L_WAKEUP_WOKE_UP_MASK    0x01
 
173
#define WPC8769L_WAKEUP_WOKE_UP_MASK            0x01
174
174
#define WPC8769L_WAKEUP_CONFIGURING_MASK        0x17
175
175
 
176
176
#define WPC8769L_WAKEUP_CONFIG2_REG             0x15
177
177
#define WPC8769L_WAKEUP_CONFIG2_AND_MASK        0xf9
178
 
#define WPC8769L_WAKEUP_CONFIG2_OR_MASK 0x01
 
178
#define WPC8769L_WAKEUP_CONFIG2_OR_MASK         0x01
179
179
 
180
 
#define WPC8769L_WAKEUP_DATA_PTR_REG    0x18
 
180
#define WPC8769L_WAKEUP_DATA_PTR_REG            0x18
181
181
#define WPC8769L_WAKEUP_DATA_BITS               0x20
182
182
#define WPC8769L_WAKEUP_DATA_BASE               0x10
183
183
#define WPC8769L_WAKEUP_MASK_BASE               0x20