~ubuntu-branches/ubuntu/trusty/lcd4linux/trusty-proposed

« back to all changes in this revision

Viewing changes to drv.c

  • Committer: Bazaar Package Importer
  • Author(s): Reinhard Tartler
  • Date: 2008-01-10 10:30:49 UTC
  • mfrom: (2.1.7 gutsy)
  • Revision ID: james.westby@ubuntu.com-20080110103049-pai7ayvojkg2wf7i
Tags: 0.10.1~rc2-2
* Bugfix: "lcd4linux: FTBFS: undefined reference to `rdtscl'" Patch
  taken from upstream svn. Thanks to Robert Buchholz and Michael Reinelt
  (upstream) for reviewing the patch. Closes: #436332
* Urgency medium for RC bug
* bump to standards version 3.7.3 (no changes needed)
* add Vcs-Bzr and Homepage header.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* $Id: drv.c,v 1.43 2006/08/08 19:35:21 reinelt Exp $
 
1
/* $Id: drv.c 760 2007-02-04 06:29:55Z michael $
 
2
 * $URL: https://ssl.bulix.org/svn/lcd4linux/branches/0.10.1/drv.c $
2
3
 *
3
4
 * new framework for display drivers
4
5
 *
21
22
 * along with this program; if not, write to the Free Software
22
23
 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
23
24
 *
24
 
 *
25
 
 * $Log: drv.c,v $
26
 
 * Revision 1.43  2006/08/08 19:35:21  reinelt
27
 
 * USBHUB driver from Ernst Bachmann
28
 
 *
29
 
 * Revision 1.42  2006/08/05 21:08:01  harbaum
30
 
 * New LEDMATRIX driver (see http://www.harbaum.org/till/ledmatrix)
31
 
 *
32
 
 * Revision 1.41  2006/07/31 03:48:09  reinelt
33
 
 * preparations for scrolling
34
 
 *
35
 
 * Revision 1.40  2006/04/14 20:59:38  harbaum
36
 
 * Disable inclusion of Image driver in drv.c if no gd was found.
37
 
 *
38
 
 * Revision 1.39  2006/01/26 19:26:27  harbaum
39
 
 * Added LCD2USB support
40
 
 *
41
 
 * Revision 1.38  2006/01/21 13:26:44  reinelt
42
 
 * Logitech G-15 keyboard LCD driver from Dave Ingram
43
 
 *
44
 
 * Revision 1.37  2006/01/03 13:20:06  reinelt
45
 
 * LUIse driver added
46
 
 *
47
 
 * Revision 1.36  2005/11/05 06:26:51  reinelt
48
 
 * littly typo corrected
49
 
 *
50
 
 * Revision 1.35  2005/11/04 14:10:38  reinelt
51
 
 * drv_Sample and drv_LPH7508
52
 
 *
53
 
 * Revision 1.34  2005/11/04 04:44:52  reinelt
54
 
 * LPH7508 driver (not yet finished)
55
 
 *
56
 
 * Revision 1.33  2005/08/22 05:44:43  reinelt
57
 
 * new driver 'WincorNixdorf'
58
 
 * some fixes to the bar code
59
 
 *
60
 
 * Revision 1.32  2005/05/10 13:20:14  reinelt
61
 
 * added serdisplib driver
62
 
 *
63
 
 * Revision 1.31  2005/05/08 04:32:43  reinelt
64
 
 * CodingStyle added and applied
65
 
 *
66
 
 * Revision 1.30  2005/05/04 05:42:38  reinelt
67
 
 * Noritake driver added
68
 
 *
69
 
 * Revision 1.29  2005/04/24 04:33:46  reinelt
70
 
 * driver for TREFON USB LCD's added
71
 
 *
72
 
 * Revision 1.28  2005/02/24 07:06:48  reinelt
73
 
 * SimpleLCD driver added
74
 
 *
75
 
 * Revision 1.27  2005/01/30 06:43:22  reinelt
76
 
 * driver for LCD-Linux finished
77
 
 *
78
 
 * Revision 1.26  2005/01/22 22:57:57  reinelt
79
 
 * LCD-Linux driver added
80
 
 *
81
 
 * Revision 1.25  2005/01/18 06:30:22  reinelt
82
 
 * added (C) to all copyright statements
83
 
 *
84
 
 * Revision 1.24  2005/01/15 13:10:15  reinelt
85
 
 * LCDTerm driver added
86
 
 *
87
 
 * Revision 1.23  2004/09/24 21:41:00  reinelt
88
 
 * new driver for the BWCT USB LCD interface board.
89
 
 *
90
 
 * Revision 1.22  2004/08/29 13:03:41  reinelt
91
 
 *
92
 
 * added RouterBoard driver
93
 
 *
94
 
 * Revision 1.21  2004/06/26 12:04:59  reinelt
95
 
 *
96
 
 * uh-oh... the last CVS log message messed up things a lot...
97
 
 *
98
 
 * Revision 1.20  2004/06/26 09:27:20  reinelt
99
 
 *
100
 
 * added '-W' to CFLAGS
101
 
 * changed all C++ comments to C ones
102
 
 * cleaned up a lot of signed/unsigned mistakes
103
 
 *
104
 
 * Revision 1.19  2004/06/20 10:09:54  reinelt
105
 
 *
106
 
 * 'const'ified the whole source
107
 
 *
108
 
 * Revision 1.18  2004/06/06 06:51:59  reinelt
109
 
 *
110
 
 * do not display end splash screen if quiet=1
111
 
 *
112
 
 * Revision 1.17  2004/06/02 10:09:22  reinelt
113
 
 *
114
 
 * splash screen for HD44780
115
 
 *
116
 
 * Revision 1.16  2004/06/02 09:41:19  reinelt
117
 
 *
118
 
 * prepared support for startup splash screen
119
 
 *
120
 
 * Revision 1.15  2004/05/31 16:39:06  reinelt
121
 
 *
122
 
 * added NULL display driver (for debugging/profiling purposes)
123
 
 * added backlight/contrast initialisation for matrixOrbital
124
 
 * added Backlight initialisation for Cwlinux
125
 
 *
126
 
 * Revision 1.14  2004/05/28 13:51:42  reinelt
127
 
 *
128
 
 * ported driver for Beckmann+Egle Mini-Terminals
129
 
 * added 'flags' parameter to serial_init()
130
 
 *
131
 
 * Revision 1.13  2004/05/26 11:37:36  reinelt
132
 
 *
133
 
 * Curses driver ported.
134
 
 *
135
 
 * Revision 1.12  2004/05/26 05:03:27  reinelt
136
 
 *
137
 
 * MilfordInstruments driver ported
138
 
 *
139
 
 * Revision 1.11  2004/05/25 19:54:15  reinelt
140
 
 *
141
 
 * 'make distcheck' bugs fixed
142
 
 * release number changed to 0.10.0-RC1
143
 
 *
144
 
 * Revision 1.10  2004/05/25 14:26:29  reinelt
145
 
 *
146
 
 * added "Image" driver (was: Raster.c) for PPM and PNG creation
147
 
 * fixed some glitches in the X11 driver
148
 
 *
149
 
 * Revision 1.9  2004/02/24 05:55:04  reinelt
150
 
 *
151
 
 * X11 driver ported
152
 
 *
153
 
 * Revision 1.8  2004/02/15 21:43:43  reinelt
154
 
 * T6963 driver nearly finished
155
 
 * framework for graphic displays done
156
 
 * i2c_sensors patch from Xavier
157
 
 * some more old generation files removed
158
 
 *
159
 
 * Revision 1.7  2004/02/15 08:22:47  reinelt
160
 
 * ported USBLCD driver to NextGeneration
161
 
 * added drv_M50530.c (I forgot yesterday, sorry)
162
 
 * removed old drivers M50530.c and USBLCD.c
163
 
 *
164
 
 * Revision 1.6  2004/02/14 11:56:17  reinelt
165
 
 * M50530 driver ported
166
 
 * changed lots of 'char' to 'unsigned char'
167
 
 *
168
 
 * Revision 1.5  2004/01/27 06:34:14  reinelt
169
 
 * Cwlinux driver portet to NextGeneration (compiles, but not tested!)
170
 
 *
171
 
 * Revision 1.4  2004/01/21 12:36:19  reinelt
172
 
 * Crystalfontz NextGeneration driver added
173
 
 *
174
 
 * Revision 1.3  2004/01/20 15:32:49  reinelt
175
 
 * first version of Next Generation HD44780 (untested! but it compiles...)
176
 
 * some cleanup in the other drivers
177
 
 *
178
 
 * Revision 1.2  2004/01/10 10:20:22  reinelt
179
 
 * new MatrixOrbital changes
180
 
 *
181
 
 * Revision 1.1  2004/01/09 17:03:07  reinelt
182
 
 * initiated transfer to new driver architecture
183
 
 * new file 'drv.c' will someday replace 'display.c'
184
 
 * new file 'drv_MatrixOrbital.c' will replace 'MatrixOrbital.c'
185
 
 * due to this 'soft' transfer lcd4linux should stay usable during the switch
186
 
 * (at least I hope so)
187
 
 *
188
25
 */
189
26
 
190
27
/* 
215
52
extern DRIVER drv_Crystalfontz;
216
53
extern DRIVER drv_Curses;
217
54
extern DRIVER drv_Cwlinux;
 
55
extern DRIVER drv_EA232graphic;
218
56
extern DRIVER drv_G15;
219
57
extern DRIVER drv_HD44780;
220
58
extern DRIVER drv_Image;
229
67
extern DRIVER drv_MilfordInstruments;
230
68
extern DRIVER drv_Noritake;
231
69
extern DRIVER drv_NULL;
 
70
extern DRIVER drv_picoLCD;
232
71
extern DRIVER drv_RouterBoard;
233
72
extern DRIVER drv_Sample;
234
73
extern DRIVER drv_serdisplib;
256
95
#ifdef WITH_CRYSTALFONTZ
257
96
    &drv_Crystalfontz,
258
97
#endif
 
98
#ifdef WITH_CURSES
 
99
    &drv_Curses,
 
100
#endif
259
101
#ifdef WITH_CWLINUX
260
102
    &drv_Cwlinux,
261
103
#endif
262
 
#ifdef WITH_CURSES
263
 
    &drv_Curses,
 
104
#ifdef WITH_EA232graphic
 
105
    &drv_EA232graphic,
264
106
#endif
265
107
#ifdef WITH_G15
266
108
    &drv_G15,
304
146
#ifdef WITH_NULL
305
147
    &drv_NULL,
306
148
#endif
 
149
#ifdef WITH_picoLCD
 
150
    &drv_picoLCD,
 
151
#endif
 
152
 
307
153
#ifdef WITH_ROUTERBOARD
308
154
    &drv_RouterBoard,
309
155
#endif