Header fixes:
* Do not include system headers in shared files (stdlib.h). * Don't include lcd.h only once in each driver. * Remove some unnecessary headers from driver (e.g. syslog.h) * Include <poll.h> instead of <sys/poll.h> * Spelling fixes.
This commit is contained in:
@@ -20,6 +20,7 @@
|
|||||||
#include <signal.h>
|
#include <signal.h>
|
||||||
#include <time.h>
|
#include <time.h>
|
||||||
#include <sys/wait.h>
|
#include <sys/wait.h>
|
||||||
|
#include <stdlib.h>
|
||||||
|
|
||||||
#include "getopt.h"
|
#include "getopt.h"
|
||||||
|
|
||||||
|
|||||||
@@ -15,6 +15,7 @@
|
|||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <strings.h>
|
#include <strings.h>
|
||||||
|
#include <stdlib.h>
|
||||||
|
|
||||||
#include "shared/report.h"
|
#include "shared/report.h"
|
||||||
#include "shared/configfile.h"
|
#include "shared/configfile.h"
|
||||||
|
|||||||
@@ -19,6 +19,7 @@
|
|||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
|
#include <stdlib.h>
|
||||||
|
|
||||||
#include "lcd_link.h"
|
#include "lcd_link.h"
|
||||||
#include "vc_link.h"
|
#include "vc_link.h"
|
||||||
|
|||||||
@@ -20,6 +20,7 @@
|
|||||||
#include <signal.h>
|
#include <signal.h>
|
||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
|
#include <stdlib.h>
|
||||||
|
|
||||||
#include "getopt.h"
|
#include "getopt.h"
|
||||||
|
|
||||||
|
|||||||
@@ -19,6 +19,7 @@
|
|||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
|
#include <stdlib.h>
|
||||||
|
|
||||||
#include "lcdvc.h"
|
#include "lcdvc.h"
|
||||||
#include "vc_link.h"
|
#include "vc_link.h"
|
||||||
|
|||||||
@@ -33,7 +33,6 @@
|
|||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <syslog.h>
|
|
||||||
|
|
||||||
#ifdef HAVE_CONFIG_H
|
#ifdef HAVE_CONFIG_H
|
||||||
# include "config.h"
|
# include "config.h"
|
||||||
@@ -67,7 +66,7 @@ typedef struct CFontz_private_data {
|
|||||||
unsigned char *framebuf;
|
unsigned char *framebuf;
|
||||||
unsigned char *backingstore;
|
unsigned char *backingstore;
|
||||||
|
|
||||||
/* defineable characters */
|
/* definable characters */
|
||||||
CGmode ccmode;
|
CGmode ccmode;
|
||||||
|
|
||||||
int contrast;
|
int contrast;
|
||||||
|
|||||||
@@ -1,8 +1,6 @@
|
|||||||
#ifndef CFONTZ_H
|
#ifndef CFONTZ_H
|
||||||
#define CFONTZ_H
|
#define CFONTZ_H
|
||||||
|
|
||||||
#include "lcd.h"
|
|
||||||
|
|
||||||
#define DEFAULT_CELL_WIDTH 6
|
#define DEFAULT_CELL_WIDTH 6
|
||||||
#define DEFAULT_CELL_HEIGHT 8
|
#define DEFAULT_CELL_HEIGHT 8
|
||||||
#define DEFAULT_CONTRAST 560
|
#define DEFAULT_CONTRAST 560
|
||||||
|
|||||||
@@ -54,7 +54,6 @@
|
|||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <syslog.h>
|
|
||||||
|
|
||||||
#ifdef HAVE_CONFIG_H
|
#ifdef HAVE_CONFIG_H
|
||||||
# include "config.h"
|
# include "config.h"
|
||||||
@@ -97,7 +96,7 @@ typedef struct CFontz633_private_data {
|
|||||||
unsigned char *framebuf;
|
unsigned char *framebuf;
|
||||||
unsigned char *backingstore;
|
unsigned char *backingstore;
|
||||||
|
|
||||||
/* defineable characters */
|
/* definable characters */
|
||||||
CGmode ccmode;
|
CGmode ccmode;
|
||||||
|
|
||||||
int contrast;
|
int contrast;
|
||||||
|
|||||||
@@ -1,8 +1,6 @@
|
|||||||
#ifndef CFONTZ633_H
|
#ifndef CFONTZ633_H
|
||||||
#define CFONTZ633_H
|
#define CFONTZ633_H
|
||||||
|
|
||||||
#include "lcd.h"
|
|
||||||
|
|
||||||
#define DEFAULT_CELL_WIDTH 6
|
#define DEFAULT_CELL_WIDTH 6
|
||||||
#define DEFAULT_CELL_HEIGHT 8
|
#define DEFAULT_CELL_HEIGHT 8
|
||||||
#define DEFAULT_CONTRAST 560
|
#define DEFAULT_CONTRAST 560
|
||||||
|
|||||||
@@ -42,7 +42,6 @@
|
|||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <syslog.h>
|
|
||||||
|
|
||||||
#include "lcd.h"
|
#include "lcd.h"
|
||||||
#include "CFontzPacket.h"
|
#include "CFontzPacket.h"
|
||||||
@@ -80,7 +79,7 @@ typedef struct CFontzPacket_private_data {
|
|||||||
unsigned char *framebuf;
|
unsigned char *framebuf;
|
||||||
unsigned char *backingstore;
|
unsigned char *backingstore;
|
||||||
|
|
||||||
/* defineable characters */
|
/* definable characters */
|
||||||
CGmode ccmode;
|
CGmode ccmode;
|
||||||
|
|
||||||
int contrast;
|
int contrast;
|
||||||
|
|||||||
@@ -1,8 +1,6 @@
|
|||||||
#ifndef CFONTZPACKET_H
|
#ifndef CFONTZPACKET_H
|
||||||
#define CFONTZPACKET_H
|
#define CFONTZPACKET_H
|
||||||
|
|
||||||
#include "lcd.h"
|
|
||||||
|
|
||||||
#define DEFAULT_CELL_HEIGHT 8
|
#define DEFAULT_CELL_HEIGHT 8
|
||||||
#define DEFAULT_CONTRAST 560
|
#define DEFAULT_CONTRAST 560
|
||||||
#define DEFAULT_DEVICE "/dev/lcd"
|
#define DEFAULT_DEVICE "/dev/lcd"
|
||||||
|
|||||||
@@ -54,7 +54,6 @@
|
|||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <syslog.h>
|
|
||||||
|
|
||||||
#ifdef HAVE_CONFIG_H
|
#ifdef HAVE_CONFIG_H
|
||||||
# include "config.h"
|
# include "config.h"
|
||||||
@@ -94,7 +93,7 @@ typedef struct CwLnx_private_data {
|
|||||||
unsigned char *framebuf;
|
unsigned char *framebuf;
|
||||||
unsigned char *backingstore;
|
unsigned char *backingstore;
|
||||||
|
|
||||||
/* defineable characters */
|
/* definable characters */
|
||||||
CGmode ccmode;
|
CGmode ccmode;
|
||||||
|
|
||||||
char saved_backlight; /* current state of the backlight */
|
char saved_backlight; /* current state of the backlight */
|
||||||
|
|||||||
@@ -22,13 +22,6 @@
|
|||||||
#ifndef CWLNX_H
|
#ifndef CWLNX_H
|
||||||
#define CWLNX_H
|
#define CWLNX_H
|
||||||
|
|
||||||
#include "lcd.h"
|
|
||||||
|
|
||||||
// #define DEFAULT_CONTRAST 560
|
|
||||||
// #define DEFAULT_BRIGHTNESS 60
|
|
||||||
// #define DEFAULT_OFFBRIGHTNESS 0
|
|
||||||
// #define DEFAULT_EXITBRIGHTNESS 0
|
|
||||||
|
|
||||||
#define DEFAULT_DEVICE "/dev/lcd"
|
#define DEFAULT_DEVICE "/dev/lcd"
|
||||||
#define DEFAULT_BACKLIGHT 1
|
#define DEFAULT_BACKLIGHT 1
|
||||||
#define DEFAULT_BRIGHTNESS 700
|
#define DEFAULT_BRIGHTNESS 700
|
||||||
|
|||||||
@@ -28,14 +28,12 @@
|
|||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <sys/time.h>
|
|
||||||
#include <termios.h>
|
#include <termios.h>
|
||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <syslog.h>
|
|
||||||
#include <ctype.h>
|
#include <ctype.h>
|
||||||
#include <sys/poll.h>
|
#include <poll.h>
|
||||||
|
|
||||||
#ifdef HAVE_CONFIG_H
|
#ifdef HAVE_CONFIG_H
|
||||||
# include "config.h"
|
# include "config.h"
|
||||||
|
|||||||
@@ -1,8 +1,6 @@
|
|||||||
#ifndef EYEBOXONE_H
|
#ifndef EYEBOXONE_H
|
||||||
#define EYEBOXONE_H
|
#define EYEBOXONE_H
|
||||||
|
|
||||||
#include "lcd.h"
|
|
||||||
|
|
||||||
MODULE_EXPORT int EyeboxOne_init (Driver *drvthis);
|
MODULE_EXPORT int EyeboxOne_init (Driver *drvthis);
|
||||||
MODULE_EXPORT void EyeboxOne_close (Driver *drvthis);
|
MODULE_EXPORT void EyeboxOne_close (Driver *drvthis);
|
||||||
MODULE_EXPORT int EyeboxOne_width (Driver *drvthis);
|
MODULE_EXPORT int EyeboxOne_width (Driver *drvthis);
|
||||||
|
|||||||
@@ -30,10 +30,9 @@
|
|||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <fcntl.h>
|
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <syslog.h>
|
#include <usb.h>
|
||||||
|
|
||||||
#ifdef HAVE_CONFIG_H
|
#ifdef HAVE_CONFIG_H
|
||||||
# include "config.h"
|
# include "config.h"
|
||||||
@@ -591,7 +590,7 @@ IOWarrior_flush(Driver *drvthis)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Check which defineable chars we need to update */
|
/* Check which definable chars we need to update */
|
||||||
count = 0;
|
count = 0;
|
||||||
for (i = 0; i < NUM_CCs; i++) {
|
for (i = 0; i < NUM_CCs; i++) {
|
||||||
if (!p->cc[i].clean) {
|
if (!p->cc[i].clean) {
|
||||||
|
|||||||
@@ -27,9 +27,6 @@
|
|||||||
#ifndef IOWARRIOR_H
|
#ifndef IOWARRIOR_H
|
||||||
#define IOWARRIOR_H
|
#define IOWARRIOR_H
|
||||||
|
|
||||||
#include <usb.h>
|
|
||||||
#include "lcd.h"
|
|
||||||
|
|
||||||
#define DEFAULT_SERIALNO ""
|
#define DEFAULT_SERIALNO ""
|
||||||
#define DEFAULT_SIZE "20x4"
|
#define DEFAULT_SIZE "20x4"
|
||||||
#define DEFAULT_BACKLIGHT 1
|
#define DEFAULT_BACKLIGHT 1
|
||||||
@@ -89,7 +86,7 @@ typedef struct IOWarrior_private_data {
|
|||||||
/* last LCD contents (for incremental updates) */
|
/* last LCD contents (for incremental updates) */
|
||||||
unsigned char *backingstore;
|
unsigned char *backingstore;
|
||||||
|
|
||||||
/* defineable characters */
|
/* definable characters */
|
||||||
CGram cc[NUM_CCs];
|
CGram cc[NUM_CCs];
|
||||||
CGmode ccmode;
|
CGmode ccmode;
|
||||||
|
|
||||||
|
|||||||
@@ -178,7 +178,6 @@
|
|||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <syslog.h>
|
|
||||||
|
|
||||||
#ifdef HAVE_CONFIG_H
|
#ifdef HAVE_CONFIG_H
|
||||||
# include "config.h"
|
# include "config.h"
|
||||||
@@ -205,7 +204,7 @@ typedef struct MD8800_private_data {
|
|||||||
/* framebuffer and buffer for old LCD contents */
|
/* framebuffer and buffer for old LCD contents */
|
||||||
unsigned char *framebuf;
|
unsigned char *framebuf;
|
||||||
unsigned char *backingstore;
|
unsigned char *backingstore;
|
||||||
/* defineable characters */
|
/* definable characters */
|
||||||
int on_brightness;
|
int on_brightness;
|
||||||
int off_brightness;
|
int off_brightness;
|
||||||
int hw_brightness;
|
int hw_brightness;
|
||||||
|
|||||||
@@ -22,7 +22,6 @@
|
|||||||
|
|
||||||
#ifndef MD8800_H
|
#ifndef MD8800_H
|
||||||
#define MD8800_H
|
#define MD8800_H
|
||||||
#include "lcd.h"
|
|
||||||
|
|
||||||
#define DEFAULT_CELL_WIDTH 5
|
#define DEFAULT_CELL_WIDTH 5
|
||||||
#define DEFAULT_CELL_HEIGHT 7
|
#define DEFAULT_CELL_HEIGHT 7
|
||||||
|
|||||||
@@ -48,9 +48,8 @@
|
|||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <strings.h>
|
#include <strings.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <syslog.h>
|
|
||||||
#include <ctype.h>
|
#include <ctype.h>
|
||||||
#include <sys/poll.h>
|
#include <poll.h>
|
||||||
|
|
||||||
#ifdef HAVE_CONFIG_H
|
#ifdef HAVE_CONFIG_H
|
||||||
# include "config.h"
|
# include "config.h"
|
||||||
@@ -118,7 +117,7 @@ typedef struct MtxOrb_private_data {
|
|||||||
unsigned char *framebuf;
|
unsigned char *framebuf;
|
||||||
unsigned char *backingstore;
|
unsigned char *backingstore;
|
||||||
|
|
||||||
/* defineable characters */
|
/* definable characters */
|
||||||
CGmode ccmode;
|
CGmode ccmode;
|
||||||
|
|
||||||
int output_state; /**< current output state */
|
int output_state; /**< current output state */
|
||||||
|
|||||||
@@ -1,8 +1,6 @@
|
|||||||
#ifndef MTXORB_H
|
#ifndef MTXORB_H
|
||||||
#define MTXORB_H
|
#define MTXORB_H
|
||||||
|
|
||||||
#include "lcd.h"
|
|
||||||
|
|
||||||
#define DEFAULT_CONTRAST 480
|
#define DEFAULT_CONTRAST 480
|
||||||
#define DEFAULT_ADJ_BACKLIGHT 1
|
#define DEFAULT_ADJ_BACKLIGHT 1
|
||||||
#define DEFAULT_BRIGHTNESS 1000
|
#define DEFAULT_BRIGHTNESS 1000
|
||||||
|
|||||||
@@ -54,7 +54,6 @@
|
|||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <syslog.h>
|
|
||||||
|
|
||||||
#ifdef HAVE_CONFIG_H
|
#ifdef HAVE_CONFIG_H
|
||||||
# include "config.h"
|
# include "config.h"
|
||||||
@@ -81,7 +80,7 @@ typedef struct NoritakeVFD_private_data {
|
|||||||
/* framebuffer and buffer for old LCD contents */
|
/* framebuffer and buffer for old LCD contents */
|
||||||
unsigned char *framebuf;
|
unsigned char *framebuf;
|
||||||
unsigned char *backingstore;
|
unsigned char *backingstore;
|
||||||
/* defineable characters */
|
/* definable characters */
|
||||||
CGmode ccmode;
|
CGmode ccmode;
|
||||||
int brightness;
|
int brightness;
|
||||||
int offbrightness;
|
int offbrightness;
|
||||||
|
|||||||
@@ -21,7 +21,6 @@
|
|||||||
|
|
||||||
#ifndef NORITAKEVFD_H
|
#ifndef NORITAKEVFD_H
|
||||||
#define NORITAKEVFD_H
|
#define NORITAKEVFD_H
|
||||||
#include "lcd.h"
|
|
||||||
|
|
||||||
#define DEFAULT_CELL_WIDTH 5
|
#define DEFAULT_CELL_WIDTH 5
|
||||||
#define DEFAULT_CELL_HEIGHT 7
|
#define DEFAULT_CELL_HEIGHT 7
|
||||||
|
|||||||
@@ -43,11 +43,8 @@
|
|||||||
#include <termios.h>
|
#include <termios.h>
|
||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <strings.h>
|
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <syslog.h>
|
|
||||||
#include <ctype.h>
|
#include <ctype.h>
|
||||||
#include <sys/poll.h>
|
|
||||||
|
|
||||||
#ifdef HAVE_CONFIG_H
|
#ifdef HAVE_CONFIG_H
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
@@ -84,7 +81,7 @@ typedef struct SureElec_private_data {
|
|||||||
unsigned char *framebuf;
|
unsigned char *framebuf;
|
||||||
unsigned char *backingstore;
|
unsigned char *backingstore;
|
||||||
|
|
||||||
/* defineable characters */
|
/* definable characters */
|
||||||
CGmode ccmode;
|
CGmode ccmode;
|
||||||
|
|
||||||
int output_state; /**< current output state */
|
int output_state; /**< current output state */
|
||||||
|
|||||||
@@ -4,8 +4,6 @@
|
|||||||
#ifndef SUREELEC_H
|
#ifndef SUREELEC_H
|
||||||
#define SUREELEC_H
|
#define SUREELEC_H
|
||||||
|
|
||||||
#include "lcd.h"
|
|
||||||
|
|
||||||
#define DEFAULT_DEVICE "/dev/ttyUSB0"
|
#define DEFAULT_DEVICE "/dev/ttyUSB0"
|
||||||
#define DEFAULT_SPEED 9600
|
#define DEFAULT_SPEED 9600
|
||||||
#define DEFAULT_LINEWRAP 1
|
#define DEFAULT_LINEWRAP 1
|
||||||
|
|||||||
@@ -8,8 +8,6 @@
|
|||||||
#ifndef _BAYRAD_H
|
#ifndef _BAYRAD_H
|
||||||
#define _BAYRAD_H
|
#define _BAYRAD_H
|
||||||
|
|
||||||
#include "lcd.h"
|
|
||||||
|
|
||||||
MODULE_EXPORT int bayrad_init(Driver *drvthis);
|
MODULE_EXPORT int bayrad_init(Driver *drvthis);
|
||||||
MODULE_EXPORT void bayrad_close(Driver *drvthis);
|
MODULE_EXPORT void bayrad_close(Driver *drvthis);
|
||||||
MODULE_EXPORT int bayrad_width(Driver *drvthis);
|
MODULE_EXPORT int bayrad_width(Driver *drvthis);
|
||||||
|
|||||||
@@ -52,11 +52,8 @@ Different implementations of (n)curses available on:
|
|||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <termios.h>
|
|
||||||
#include <fcntl.h>
|
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <strings.h>
|
#include <strings.h>
|
||||||
#include <errno.h>
|
|
||||||
#include <ctype.h>
|
#include <ctype.h>
|
||||||
#ifdef HAVE_NCURSES_H
|
#ifdef HAVE_NCURSES_H
|
||||||
#include <ncurses.h>
|
#include <ncurses.h>
|
||||||
@@ -67,7 +64,6 @@ Different implementations of (n)curses available on:
|
|||||||
#include "lcd.h"
|
#include "lcd.h"
|
||||||
#include "curses_drv.h"
|
#include "curses_drv.h"
|
||||||
#include "report.h"
|
#include "report.h"
|
||||||
//#include "configfile.h"
|
|
||||||
|
|
||||||
// ACS_S9 and ACS_S1 are defined as part of XSI Curses standard, Issue 4.
|
// ACS_S9 and ACS_S1 are defined as part of XSI Curses standard, Issue 4.
|
||||||
// However, ACS_S3 and ACS_S7 are not; these definitions were created to support
|
// However, ACS_S3 and ACS_S7 are not; these definitions were created to support
|
||||||
|
|||||||
@@ -1,8 +1,6 @@
|
|||||||
#ifndef LCD_CURSES_H
|
#ifndef LCD_CURSES_H
|
||||||
#define LCD_CURSES_H
|
#define LCD_CURSES_H
|
||||||
|
|
||||||
#include "lcd.h"
|
|
||||||
|
|
||||||
MODULE_EXPORT int curses_init (Driver *drvthis);
|
MODULE_EXPORT int curses_init (Driver *drvthis);
|
||||||
MODULE_EXPORT void curses_close (Driver *drvthis);
|
MODULE_EXPORT void curses_close (Driver *drvthis);
|
||||||
MODULE_EXPORT int curses_width (Driver *drvthis);
|
MODULE_EXPORT int curses_width (Driver *drvthis);
|
||||||
|
|||||||
@@ -33,7 +33,6 @@
|
|||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <syslog.h>
|
|
||||||
|
|
||||||
#ifdef HAVE_CONFIG_H
|
#ifdef HAVE_CONFIG_H
|
||||||
# include "config.h"
|
# include "config.h"
|
||||||
|
|||||||
@@ -1,8 +1,6 @@
|
|||||||
#ifndef EA65_H
|
#ifndef EA65_H
|
||||||
#define EA65_H
|
#define EA65_H
|
||||||
|
|
||||||
#include "lcd.h"
|
|
||||||
|
|
||||||
#define DEFAULT_BRIGHTNESS 500
|
#define DEFAULT_BRIGHTNESS 500
|
||||||
#define DEFAULT_OFFBRIGHTNESS 0
|
#define DEFAULT_OFFBRIGHTNESS 0
|
||||||
|
|
||||||
|
|||||||
@@ -31,7 +31,6 @@
|
|||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <syslog.h>
|
|
||||||
#include <sys/socket.h>
|
#include <sys/socket.h>
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <libg15.h>
|
#include <libg15.h>
|
||||||
|
|||||||
@@ -17,14 +17,12 @@
|
|||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <termios.h>
|
|
||||||
#include <fcntl.h>
|
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <errno.h>
|
|
||||||
|
|
||||||
#ifdef HAVE_CONFIG_H
|
#ifdef HAVE_CONFIG_H
|
||||||
# include "config.h"
|
# include "config.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if TIME_WITH_SYS_TIME
|
#if TIME_WITH_SYS_TIME
|
||||||
# include <sys/time.h>
|
# include <sys/time.h>
|
||||||
# include <time.h>
|
# include <time.h>
|
||||||
|
|||||||
@@ -8,11 +8,12 @@
|
|||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
#include <string.h>
|
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <stdarg.h>
|
#include <stdarg.h>
|
||||||
#include <sys/poll.h>
|
#include <poll.h>
|
||||||
|
|
||||||
#include "glkproto.h"
|
#include "glkproto.h"
|
||||||
|
|
||||||
#ifdef HAVE_CONFIG_H
|
#ifdef HAVE_CONFIG_H
|
||||||
# include "config.h"
|
# include "config.h"
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@@ -14,18 +14,10 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include "hd44780-bwct-usb.h"
|
#include "hd44780-bwct-usb.h"
|
||||||
|
#include "hd44780-low.h"
|
||||||
#include "report.h"
|
#include "report.h"
|
||||||
|
|
||||||
#include <stdlib.h>
|
|
||||||
#include <unistd.h>
|
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <usb.h>
|
|
||||||
|
|
||||||
#include <stdio.h>
|
|
||||||
#include <sys/types.h>
|
|
||||||
#include <fcntl.h>
|
|
||||||
|
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
|
|
||||||
#ifdef HAVE_CONFIG_H
|
#ifdef HAVE_CONFIG_H
|
||||||
|
|||||||
@@ -2,7 +2,6 @@
|
|||||||
#define HD_BWCT_USB_H
|
#define HD_BWCT_USB_H
|
||||||
|
|
||||||
#include "lcd.h" /* for Driver */
|
#include "lcd.h" /* for Driver */
|
||||||
#include "hd44780-low.h"
|
|
||||||
|
|
||||||
/* vendor and product id */
|
/* vendor and product id */
|
||||||
#define BWCT_USB_VENDORID 0x03DA
|
#define BWCT_USB_VENDORID 0x03DA
|
||||||
|
|||||||
@@ -29,13 +29,13 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include "hd44780-ftdi.h"
|
#include "hd44780-ftdi.h"
|
||||||
|
#include "hd44780-low.h"
|
||||||
|
|
||||||
#include "report.h"
|
#include "report.h"
|
||||||
|
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <usb.h>
|
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
|
|||||||
@@ -2,7 +2,6 @@
|
|||||||
#define HD_FTDI_H
|
#define HD_FTDI_H
|
||||||
|
|
||||||
#include "lcd.h" /* for Driver */
|
#include "lcd.h" /* for Driver */
|
||||||
#include "hd44780-low.h"
|
|
||||||
|
|
||||||
// initialise this particular driver
|
// initialise this particular driver
|
||||||
int hd_init_ftdi(Driver *drvthis);
|
int hd_init_ftdi(Driver *drvthis);
|
||||||
|
|||||||
@@ -16,15 +16,12 @@
|
|||||||
# include "config.h"
|
# include "config.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <stdio.h>
|
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
|
||||||
#include <usb.h>
|
|
||||||
|
|
||||||
#include "hd44780-lcd2usb.h"
|
#include "hd44780-lcd2usb.h"
|
||||||
|
#include "hd44780-low.h"
|
||||||
#include "report.h"
|
#include "report.h"
|
||||||
|
|
||||||
|
|
||||||
/* connection type specific functions to be exposed using pointers in init() */
|
/* connection type specific functions to be exposed using pointers in init() */
|
||||||
void lcd2usb_HD44780_senddata(PrivateData *p, unsigned char displayID, unsigned char flags, unsigned char ch);
|
void lcd2usb_HD44780_senddata(PrivateData *p, unsigned char displayID, unsigned char flags, unsigned char ch);
|
||||||
void lcd2usb_HD44780_backlight(PrivateData *p, unsigned char state);
|
void lcd2usb_HD44780_backlight(PrivateData *p, unsigned char state);
|
||||||
|
|||||||
@@ -2,7 +2,6 @@
|
|||||||
#define HD_LCD2USB_H
|
#define HD_LCD2USB_H
|
||||||
|
|
||||||
#include "lcd.h" /* for Driver */
|
#include "lcd.h" /* for Driver */
|
||||||
#include "hd44780-low.h"
|
|
||||||
|
|
||||||
/* vendor and product id */
|
/* vendor and product id */
|
||||||
#define LCD2USB_VENDORID 0x0403
|
#define LCD2USB_VENDORID 0x0403
|
||||||
|
|||||||
@@ -141,7 +141,7 @@ typedef struct hd44780_private_data {
|
|||||||
// For incremental updates store last lcd contents
|
// For incremental updates store last lcd contents
|
||||||
unsigned char *backingstore;
|
unsigned char *backingstore;
|
||||||
|
|
||||||
// The defineable characters
|
// The definable characters
|
||||||
CGram cc[NUM_CCs];
|
CGram cc[NUM_CCs];
|
||||||
CGmode ccmode;
|
CGmode ccmode;
|
||||||
|
|
||||||
|
|||||||
@@ -50,6 +50,8 @@
|
|||||||
#include <termios.h>
|
#include <termios.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
|
|
||||||
|
#include "lcd.h"
|
||||||
|
#include "hd44780-low.h"
|
||||||
#include "hd44780-serial.h"
|
#include "hd44780-serial.h"
|
||||||
#include "report.h"
|
#include "report.h"
|
||||||
|
|
||||||
|
|||||||
@@ -6,9 +6,6 @@
|
|||||||
#ifndef HD44780_SERIAL_H
|
#ifndef HD44780_SERIAL_H
|
||||||
#define HD44780_SERIAL_H
|
#define HD44780_SERIAL_H
|
||||||
|
|
||||||
#include "lcd.h"
|
|
||||||
#include "hd44780-low.h"
|
|
||||||
|
|
||||||
#define SERIALIF_NAME_LENGTH 20
|
#define SERIALIF_NAME_LENGTH 20
|
||||||
#define DEFAULT_DEVICE "/dev/lcd"
|
#define DEFAULT_DEVICE "/dev/lcd"
|
||||||
|
|
||||||
|
|||||||
@@ -19,6 +19,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include "hd44780-usblcd.h"
|
#include "hd44780-usblcd.h"
|
||||||
|
#include "hd44780-low.h"
|
||||||
#include "report.h"
|
#include "report.h"
|
||||||
|
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
|||||||
@@ -2,7 +2,6 @@
|
|||||||
#define HD_USBLCD_H
|
#define HD_USBLCD_H
|
||||||
|
|
||||||
#include "lcd.h" /* for lcd_logical_driver */
|
#include "lcd.h" /* for lcd_logical_driver */
|
||||||
#include "hd44780-low.h" /* for HD44780_functions */
|
|
||||||
|
|
||||||
// initialise this particular driver
|
// initialise this particular driver
|
||||||
int hd_init_usblcd(Driver *drvthis);
|
int hd_init_usblcd(Driver *drvthis);
|
||||||
|
|||||||
@@ -18,10 +18,9 @@
|
|||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
|
||||||
#include <usb.h>
|
|
||||||
|
|
||||||
#include "hd44780-usbtiny.h"
|
#include "hd44780-usbtiny.h"
|
||||||
|
#include "hd44780-low.h"
|
||||||
#include "report.h"
|
#include "report.h"
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -2,7 +2,6 @@
|
|||||||
#define HD_USBTINY_H
|
#define HD_USBTINY_H
|
||||||
|
|
||||||
#include "lcd.h" /* for Driver */
|
#include "lcd.h" /* for Driver */
|
||||||
#include "hd44780-low.h"
|
|
||||||
|
|
||||||
/* vendor and product id */
|
/* vendor and product id */
|
||||||
#define USBTINY_VENDORID 0x03EB
|
#define USBTINY_VENDORID 0x03EB
|
||||||
|
|||||||
@@ -27,18 +27,10 @@
|
|||||||
#include "hd44780-uss720.h"
|
#include "hd44780-uss720.h"
|
||||||
#include "hd44780-low.h"
|
#include "hd44780-low.h"
|
||||||
#include "lpt-port.h"
|
#include "lpt-port.h"
|
||||||
|
|
||||||
#include "report.h"
|
#include "report.h"
|
||||||
|
|
||||||
#include <stdlib.h>
|
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <usb.h>
|
|
||||||
|
|
||||||
#include <stdio.h>
|
|
||||||
#include <sys/types.h>
|
|
||||||
#include <fcntl.h>
|
|
||||||
|
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
|
|
||||||
#ifdef HAVE_CONFIG_H
|
#ifdef HAVE_CONFIG_H
|
||||||
|
|||||||
@@ -2,9 +2,7 @@
|
|||||||
#define HD_USS720_H
|
#define HD_USS720_H
|
||||||
|
|
||||||
#include "lcd.h" /* for Driver */
|
#include "lcd.h" /* for Driver */
|
||||||
#include "hd44780-low.h"
|
|
||||||
|
|
||||||
|
/* initialise this particular driver */
|
||||||
// initialise this particular driver
|
|
||||||
int hd_init_uss720(Driver *drvthis);
|
int hd_init_uss720(Driver *drvthis);
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@@ -73,7 +73,6 @@
|
|||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <fcntl.h>
|
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <strings.h>
|
#include <strings.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
@@ -699,7 +698,7 @@ HD44780_flush(Driver *drvthis)
|
|||||||
}
|
}
|
||||||
debug(RPT_DEBUG, "HD44780: flushed %d chars", count);
|
debug(RPT_DEBUG, "HD44780: flushed %d chars", count);
|
||||||
|
|
||||||
/* Check which defineable chars we need to update */
|
/* Check which definable chars we need to update */
|
||||||
count = 0;
|
count = 0;
|
||||||
for (i = 0; i < NUM_CCs; i++) {
|
for (i = 0; i < NUM_CCs; i++) {
|
||||||
if (!p->cc[i].clean) {
|
if (!p->cc[i].clean) {
|
||||||
|
|||||||
@@ -17,8 +17,6 @@
|
|||||||
#ifndef HD44780_H
|
#ifndef HD44780_H
|
||||||
#define HD44780_H
|
#define HD44780_H
|
||||||
|
|
||||||
#include "lcd.h"
|
|
||||||
|
|
||||||
MODULE_EXPORT int HD44780_init(Driver *drvthis);
|
MODULE_EXPORT int HD44780_init(Driver *drvthis);
|
||||||
MODULE_EXPORT void HD44780_close(Driver *drvthis);
|
MODULE_EXPORT void HD44780_close(Driver *drvthis);
|
||||||
MODULE_EXPORT int HD44780_width(Driver *drvthis);
|
MODULE_EXPORT int HD44780_width(Driver *drvthis);
|
||||||
|
|||||||
@@ -27,11 +27,7 @@
|
|||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <termios.h>
|
|
||||||
#include <fcntl.h>
|
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <errno.h>
|
|
||||||
#include <time.h>
|
|
||||||
|
|
||||||
#include "i2500vfdfm.h"
|
#include "i2500vfdfm.h"
|
||||||
|
|
||||||
|
|||||||
@@ -1,8 +1,6 @@
|
|||||||
#ifndef I2500VFD_H
|
#ifndef I2500VFD_H
|
||||||
#define I2500VFD_H
|
#define I2500VFD_H
|
||||||
|
|
||||||
#include "lcd.h"
|
|
||||||
|
|
||||||
MODULE_EXPORT int i2500vfd_init (Driver *drvthis);
|
MODULE_EXPORT int i2500vfd_init (Driver *drvthis);
|
||||||
MODULE_EXPORT void i2500vfd_close (Driver *drvthis);
|
MODULE_EXPORT void i2500vfd_close (Driver *drvthis);
|
||||||
MODULE_EXPORT int i2500vfd_width (Driver *drvthis);
|
MODULE_EXPORT int i2500vfd_width (Driver *drvthis);
|
||||||
|
|||||||
@@ -39,7 +39,6 @@
|
|||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
//#include <time.h>
|
|
||||||
#include <sys/time.h>
|
#include <sys/time.h>
|
||||||
|
|
||||||
#ifdef HAVE_CONFIG_H
|
#ifdef HAVE_CONFIG_H
|
||||||
|
|||||||
@@ -31,7 +31,6 @@
|
|||||||
#ifndef ICP_A106_H
|
#ifndef ICP_A106_H
|
||||||
#define ICP_A106_H
|
#define ICP_A106_H
|
||||||
|
|
||||||
#include "lcd.h"
|
|
||||||
MODULE_EXPORT int icp_a106_init (Driver *drvthis);
|
MODULE_EXPORT int icp_a106_init (Driver *drvthis);
|
||||||
MODULE_EXPORT void icp_a106_close (Driver *drvthis);
|
MODULE_EXPORT void icp_a106_close (Driver *drvthis);
|
||||||
MODULE_EXPORT int icp_a106_width (Driver *drvthis);
|
MODULE_EXPORT int icp_a106_width (Driver *drvthis);
|
||||||
|
|||||||
@@ -30,12 +30,11 @@
|
|||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <termios.h>
|
|
||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
#include <strings.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
|
|
||||||
|
|
||||||
#ifdef HAVE_CONFIG_H
|
#ifdef HAVE_CONFIG_H
|
||||||
# include "config.h"
|
# include "config.h"
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@@ -26,8 +26,6 @@
|
|||||||
#ifndef IMON_H
|
#ifndef IMON_H
|
||||||
#define IMON_H
|
#define IMON_H
|
||||||
|
|
||||||
#include "lcd.h"
|
|
||||||
|
|
||||||
MODULE_EXPORT int imon_init (Driver *drvthis);
|
MODULE_EXPORT int imon_init (Driver *drvthis);
|
||||||
MODULE_EXPORT void imon_close (Driver *drvthis);
|
MODULE_EXPORT void imon_close (Driver *drvthis);
|
||||||
MODULE_EXPORT int imon_width (Driver *drvthis);
|
MODULE_EXPORT int imon_width (Driver *drvthis);
|
||||||
|
|||||||
@@ -38,7 +38,6 @@
|
|||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <termios.h>
|
|
||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
|
|||||||
@@ -16,8 +16,6 @@
|
|||||||
#ifndef IMONLCD_H
|
#ifndef IMONLCD_H
|
||||||
#define IMONLCD_H
|
#define IMONLCD_H
|
||||||
|
|
||||||
#include "lcd.h"
|
|
||||||
|
|
||||||
/* mandatory functions (necessary for all drivers) */
|
/* mandatory functions (necessary for all drivers) */
|
||||||
MODULE_EXPORT int imonlcd_init (Driver *drvthis);
|
MODULE_EXPORT int imonlcd_init (Driver *drvthis);
|
||||||
MODULE_EXPORT void imonlcd_close (Driver *drvthis);
|
MODULE_EXPORT void imonlcd_close (Driver *drvthis);
|
||||||
|
|||||||
@@ -16,7 +16,6 @@
|
|||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <sys/ioctl.h>
|
#include <sys/ioctl.h>
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <errno.h>
|
|
||||||
|
|
||||||
#define __u32 unsigned int
|
#define __u32 unsigned int
|
||||||
#define __u8 unsigned char
|
#define __u8 unsigned char
|
||||||
|
|||||||
@@ -36,7 +36,6 @@
|
|||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <fcntl.h>
|
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <time.h>
|
#include <time.h>
|
||||||
#include <netdb.h>
|
#include <netdb.h>
|
||||||
|
|||||||
@@ -31,8 +31,6 @@
|
|||||||
#ifndef LCD_TEXT_H
|
#ifndef LCD_TEXT_H
|
||||||
#define LCD_TEXT_H
|
#define LCD_TEXT_H
|
||||||
|
|
||||||
#include "lcd.h"
|
|
||||||
|
|
||||||
MODULE_EXPORT int irtrans_init(Driver *drvthis);
|
MODULE_EXPORT int irtrans_init(Driver *drvthis);
|
||||||
MODULE_EXPORT void irtrans_close(Driver *drvthis);
|
MODULE_EXPORT void irtrans_close(Driver *drvthis);
|
||||||
MODULE_EXPORT int irtrans_width(Driver *drvthis);
|
MODULE_EXPORT int irtrans_width(Driver *drvthis);
|
||||||
|
|||||||
@@ -23,7 +23,6 @@
|
|||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <errno.h>
|
|
||||||
#include <sys/ioctl.h>
|
#include <sys/ioctl.h>
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
|
|
||||||
|
|||||||
@@ -8,10 +8,6 @@
|
|||||||
* the height of hbars, etc.
|
* the height of hbars, etc.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <stdlib.h>
|
|
||||||
#include <unistd.h>
|
|
||||||
#include <string.h>
|
|
||||||
|
|
||||||
#include "lcd.h"
|
#include "lcd.h"
|
||||||
|
|
||||||
#ifdef HAVE_CONFIG_H
|
#ifdef HAVE_CONFIG_H
|
||||||
|
|||||||
@@ -37,7 +37,6 @@
|
|||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <syslog.h>
|
|
||||||
|
|
||||||
#ifdef HAVE_CONFIG_H
|
#ifdef HAVE_CONFIG_H
|
||||||
# include "config.h"
|
# include "config.h"
|
||||||
|
|||||||
@@ -33,7 +33,6 @@
|
|||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <sys/ioctl.h>
|
#include <sys/ioctl.h>
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <errno.h>
|
|
||||||
#include <sys/socket.h>
|
#include <sys/socket.h>
|
||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
#include <sys/un.h>
|
#include <sys/un.h>
|
||||||
|
|||||||
@@ -52,21 +52,17 @@
|
|||||||
* 2007/11/01 Change Linux-centric clone() to POSIX
|
* 2007/11/01 Change Linux-centric clone() to POSIX
|
||||||
* threads for portability.
|
* threads for portability.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <termios.h>
|
|
||||||
#include <fcntl.h>
|
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <syslog.h>
|
|
||||||
#include <pthread.h>
|
#include <pthread.h>
|
||||||
|
|
||||||
#include <usb.h>
|
#include <usb.h>
|
||||||
#include <ftdi.h>
|
#include <ftdi.h>
|
||||||
|
|
||||||
#include <sys/syscall.h>
|
|
||||||
|
|
||||||
#ifdef HAVE_CONFIG_H
|
#ifdef HAVE_CONFIG_H
|
||||||
# include "config.h"
|
# include "config.h"
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@@ -19,8 +19,6 @@
|
|||||||
#ifndef LIS_H
|
#ifndef LIS_H
|
||||||
#define LIS_H
|
#define LIS_H
|
||||||
|
|
||||||
#include "lcd.h"
|
|
||||||
|
|
||||||
#ifndef bool
|
#ifndef bool
|
||||||
# define bool short
|
# define bool short
|
||||||
# define true 1
|
# define true 1
|
||||||
|
|||||||
+13
-11
@@ -24,34 +24,36 @@
|
|||||||
|
|
||||||
You should have received a copy of the GNU General Public License
|
You should have received a copy of the GNU General Public License
|
||||||
along with this program; if not, write to the Free Software
|
along with this program; if not, write to the Free Software
|
||||||
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 */
|
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifdef HAVE_CONFIG_H
|
||||||
|
# include "config.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <termios.h>
|
#include <termios.h>
|
||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
#include <time.h>
|
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <syslog.h>
|
|
||||||
|
|
||||||
#ifdef HAVE_CONFIG_H
|
#if TIME_WITH_SYS_TIME
|
||||||
# include "config.h"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef TIME_WITH_SYS_TIME
|
|
||||||
# include <sys/time.h>
|
# include <sys/time.h>
|
||||||
|
# include <time.h>
|
||||||
|
#else
|
||||||
|
# if HAVE_SYS_TIME_H
|
||||||
|
# include <sys/time.h>
|
||||||
|
# else
|
||||||
|
# include <time.h>
|
||||||
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "lcd.h"
|
#include "lcd.h"
|
||||||
#include "ms6931.h"
|
#include "ms6931.h"
|
||||||
#include "report.h"
|
#include "report.h"
|
||||||
#include "lcd_lib.h"
|
#include "lcd_lib.h"
|
||||||
/*
|
|
||||||
#include "server/configfile.h"
|
|
||||||
*/
|
|
||||||
|
|
||||||
/** private data for the \c ms6931 driver */
|
/** private data for the \c ms6931 driver */
|
||||||
typedef struct ms6931_private_data {
|
typedef struct ms6931_private_data {
|
||||||
|
|||||||
@@ -25,8 +25,6 @@
|
|||||||
#ifndef MS6931_H
|
#ifndef MS6931_H
|
||||||
#define MS6931_H
|
#define MS6931_H
|
||||||
|
|
||||||
#include "lcd.h"
|
|
||||||
|
|
||||||
#define MS6931_DEF_DEVICE "/dev/ttyS1"
|
#define MS6931_DEF_DEVICE "/dev/ttyS1"
|
||||||
#define MS6931_DEF_SIZE "16x2"
|
#define MS6931_DEF_SIZE "16x2"
|
||||||
#define MS6931_DEF_CELL_WIDTH 5
|
#define MS6931_DEF_CELL_WIDTH 5
|
||||||
|
|||||||
@@ -50,8 +50,6 @@
|
|||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
|
|
||||||
#include <sys/file.h>
|
|
||||||
|
|
||||||
#ifdef HAVE_CONFIG_H
|
#ifdef HAVE_CONFIG_H
|
||||||
# include "config.h"
|
# include "config.h"
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@@ -38,8 +38,6 @@
|
|||||||
#ifndef MTC_S16209X_H
|
#ifndef MTC_S16209X_H
|
||||||
#define MTC_S16209X_H
|
#define MTC_S16209X_H
|
||||||
|
|
||||||
#include "lcd.h"
|
|
||||||
|
|
||||||
MODULE_EXPORT int MTC_S16209X_init(Driver *drvthis);
|
MODULE_EXPORT int MTC_S16209X_init(Driver *drvthis);
|
||||||
MODULE_EXPORT void MTC_S16209X_close(Driver *drvthis);
|
MODULE_EXPORT void MTC_S16209X_close(Driver *drvthis);
|
||||||
MODULE_EXPORT int MTC_S16209X_width (Driver *drvthis);
|
MODULE_EXPORT int MTC_S16209X_width (Driver *drvthis);
|
||||||
|
|||||||
+12
-3
@@ -25,6 +25,10 @@
|
|||||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#ifdef HAVE_CONFIG_H
|
||||||
|
# include "config.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
#include <sys/select.h>
|
#include <sys/select.h>
|
||||||
@@ -35,11 +39,16 @@
|
|||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
|
#if TIME_WITH_SYS_TIME
|
||||||
# include <sys/time.h>
|
# include <sys/time.h>
|
||||||
# include <time.h>
|
# include <time.h>
|
||||||
|
#else
|
||||||
#ifdef HAVE_CONFIG_H
|
# if HAVE_SYS_TIME_H
|
||||||
# include "config.h"
|
# include <sys/time.h>
|
||||||
|
# else
|
||||||
|
# include <time.h>
|
||||||
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "shared/defines.h"
|
#include "shared/defines.h"
|
||||||
|
|||||||
@@ -69,6 +69,7 @@
|
|||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
#include <stdio.h>
|
||||||
|
|
||||||
#include "lcd.h"
|
#include "lcd.h"
|
||||||
#include "sed1330.h"
|
#include "sed1330.h"
|
||||||
|
|||||||
@@ -32,13 +32,8 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <stdio.h>
|
|
||||||
#include <unistd.h>
|
|
||||||
#include <termios.h>
|
|
||||||
#include <fcntl.h>
|
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <time.h>
|
|
||||||
|
|
||||||
#include "lcd.h"
|
#include "lcd.h"
|
||||||
#include "sed1520.h"
|
#include "sed1520.h"
|
||||||
|
|||||||
@@ -1,8 +1,6 @@
|
|||||||
#ifndef SED1520_H
|
#ifndef SED1520_H
|
||||||
#define SED1520_H
|
#define SED1520_H
|
||||||
|
|
||||||
#include "lcd.h"
|
|
||||||
|
|
||||||
/* Commands for SED1520 */
|
/* Commands for SED1520 */
|
||||||
#define DISP_OFF 0xAE
|
#define DISP_OFF 0xAE
|
||||||
#define DISP_ON 0xAF
|
#define DISP_ON 0xAF
|
||||||
|
|||||||
@@ -66,9 +66,7 @@ get_info Implemented.
|
|||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <strings.h>
|
#include <strings.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <syslog.h>
|
|
||||||
#include <ctype.h>
|
#include <ctype.h>
|
||||||
#include <sys/poll.h>
|
|
||||||
|
|
||||||
#ifdef HAVE_CONFIG_H
|
#ifdef HAVE_CONFIG_H
|
||||||
# include "config.h"
|
# include "config.h"
|
||||||
|
|||||||
@@ -1,8 +1,6 @@
|
|||||||
#ifndef SERPOS_H
|
#ifndef SERPOS_H
|
||||||
#define SERPOS_H
|
#define SERPOS_H
|
||||||
|
|
||||||
#include "lcd.h"
|
|
||||||
|
|
||||||
#define DEFAULT_DEVICE "/dev/Stty"
|
#define DEFAULT_DEVICE "/dev/Stty"
|
||||||
#define DEFAULT_SPEED 9800
|
#define DEFAULT_SPEED 9800
|
||||||
#define DEFAULT_LINEWRAP 0
|
#define DEFAULT_LINEWRAP 0
|
||||||
|
|||||||
@@ -46,9 +46,7 @@
|
|||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <termios.h>
|
#include <termios.h>
|
||||||
#include <fcntl.h>
|
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <errno.h>
|
|
||||||
|
|
||||||
#include "lcd.h"
|
#include "lcd.h"
|
||||||
#include "report.h"
|
#include "report.h"
|
||||||
|
|||||||
@@ -33,8 +33,6 @@
|
|||||||
# include "config.h"
|
# include "config.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <stdlib.h>
|
|
||||||
#include <stdio.h>
|
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <termios.h>
|
#include <termios.h>
|
||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
|
|||||||
@@ -26,8 +26,6 @@
|
|||||||
#ifndef SHUTTLE_VFD_H
|
#ifndef SHUTTLE_VFD_H
|
||||||
#define SHUTTLE_VFD_H
|
#define SHUTTLE_VFD_H
|
||||||
|
|
||||||
#include "lcd.h"
|
|
||||||
|
|
||||||
// mandatory functions (necessary for all drivers)
|
// mandatory functions (necessary for all drivers)
|
||||||
MODULE_EXPORT int shuttleVFD_init(Driver *drvthis);
|
MODULE_EXPORT int shuttleVFD_init(Driver *drvthis);
|
||||||
MODULE_EXPORT void shuttleVFD_close(Driver *drvthis);
|
MODULE_EXPORT void shuttleVFD_close(Driver *drvthis);
|
||||||
|
|||||||
@@ -22,25 +22,21 @@
|
|||||||
// package for further details. //
|
// package for further details. //
|
||||||
//////////////////////////////////////////////////////////////////////////
|
//////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
#include <stdlib.h>
|
|
||||||
#include <stdio.h>
|
|
||||||
#include <unistd.h>
|
|
||||||
#include <termios.h>
|
|
||||||
#include <fcntl.h>
|
|
||||||
#include <string.h>
|
|
||||||
#include <errno.h>
|
|
||||||
#include <time.h>
|
|
||||||
#include "port.h"
|
|
||||||
#include "timing.h"
|
|
||||||
|
|
||||||
#ifdef HAVE_CONFIG_H
|
#ifdef HAVE_CONFIG_H
|
||||||
# include "config.h"
|
# include "config.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#include <stdlib.h>
|
||||||
|
#include <stdio.h>
|
||||||
|
#include <unistd.h>
|
||||||
|
#include <string.h>
|
||||||
|
#include <errno.h>
|
||||||
|
|
||||||
#include "lcd.h"
|
#include "lcd.h"
|
||||||
#include "stv5730.h"
|
#include "stv5730.h"
|
||||||
#include "report.h"
|
#include "report.h"
|
||||||
|
#include "port.h"
|
||||||
|
#include "timing.h"
|
||||||
|
|
||||||
#ifndef LPTPORT
|
#ifndef LPTPORT
|
||||||
#define LPTPORT 0x378
|
#define LPTPORT 0x378
|
||||||
|
|||||||
@@ -2,15 +2,12 @@
|
|||||||
* LCDd \c svga driver for displaying on SVGA screens.
|
* LCDd \c svga driver for displaying on SVGA screens.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*
|
/*-
|
||||||
This is a hack of the curses driver. It's my first attempt at SVGALIB
|
This is a hack of the curses driver. It's my first attempt at SVGALIB
|
||||||
programming so please send comments to <smh@remove_this@dr.com>.
|
programming so please send comments to <smh@remove_this@dr.com>.
|
||||||
|
|
||||||
Simon Harrison. 27 Dec 1999.
|
Simon Harrison. 27 Dec 1999.
|
||||||
|
|
||||||
IMPORTANT NOTE: In order to make this work properly LCDd should not be
|
|
||||||
allowed to fork (-f option), otherwise k/b input won't work.
|
|
||||||
|
|
||||||
Changes:
|
Changes:
|
||||||
9 Jan 2000: Figured out svgalib driver needs a hack to main.c just like
|
9 Jan 2000: Figured out svgalib driver needs a hack to main.c just like
|
||||||
curses. Maybe this should be fixed with another function call
|
curses. Maybe this should be fixed with another function call
|
||||||
@@ -19,17 +16,12 @@
|
|||||||
26 Jul 2005: adapted better to 0.5 API; changed font from 5x7 to 6x8;
|
26 Jul 2005: adapted better to 0.5 API; changed font from 5x7 to 6x8;
|
||||||
take options from the config file: mode, size, brightness,
|
take options from the config file: mode, size, brightness,
|
||||||
contrast, ...
|
contrast, ...
|
||||||
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <unistd.h>
|
|
||||||
#include <termios.h>
|
|
||||||
#include <fcntl.h>
|
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <errno.h>
|
|
||||||
#include <vga.h>
|
#include <vga.h>
|
||||||
#include <vgagl.h>
|
#include <vgagl.h>
|
||||||
|
|
||||||
|
|||||||
@@ -27,14 +27,11 @@
|
|||||||
|
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <unistd.h>
|
|
||||||
#include <fcntl.h>
|
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
#include "lcd.h"
|
#include "lcd.h"
|
||||||
#include "text.h"
|
#include "text.h"
|
||||||
#include "report.h"
|
#include "report.h"
|
||||||
//#include "drv_base.h"
|
|
||||||
|
|
||||||
|
|
||||||
/** private data for the \c text driver */
|
/** private data for the \c text driver */
|
||||||
|
|||||||
@@ -1,8 +1,6 @@
|
|||||||
#ifndef LCD_TEXT_H
|
#ifndef LCD_TEXT_H
|
||||||
#define LCD_TEXT_H
|
#define LCD_TEXT_H
|
||||||
|
|
||||||
#include "lcd.h"
|
|
||||||
|
|
||||||
MODULE_EXPORT int text_init (Driver *drvthis);
|
MODULE_EXPORT int text_init (Driver *drvthis);
|
||||||
MODULE_EXPORT void text_close (Driver *drvthis);
|
MODULE_EXPORT void text_close (Driver *drvthis);
|
||||||
MODULE_EXPORT int text_width (Driver *drvthis);
|
MODULE_EXPORT int text_width (Driver *drvthis);
|
||||||
|
|||||||
@@ -41,7 +41,6 @@
|
|||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <syslog.h>
|
|
||||||
|
|
||||||
#ifdef HAVE_CONFIG_H
|
#ifdef HAVE_CONFIG_H
|
||||||
# include "config.h"
|
# include "config.h"
|
||||||
|
|||||||
@@ -20,8 +20,6 @@
|
|||||||
#ifndef TYAN_LCDM_H
|
#ifndef TYAN_LCDM_H
|
||||||
#define TYAN_LCDM_H
|
#define TYAN_LCDM_H
|
||||||
|
|
||||||
#include "lcd.h"
|
|
||||||
|
|
||||||
#define DEFAULT_CELL_WIDTH 5
|
#define DEFAULT_CELL_WIDTH 5
|
||||||
#define DEFAULT_CELL_HEIGHT 8
|
#define DEFAULT_CELL_HEIGHT 8
|
||||||
#define DEFAULT_DEVICE "/dev/lcd"
|
#define DEFAULT_DEVICE "/dev/lcd"
|
||||||
@@ -63,7 +61,7 @@ typedef struct tyan_lcdm_private_data {
|
|||||||
int cellwidth;
|
int cellwidth;
|
||||||
int cellheight;
|
int cellheight;
|
||||||
|
|
||||||
/* defineable characters */
|
/* definable characters */
|
||||||
CGram cc[NUM_CCs];
|
CGram cc[NUM_CCs];
|
||||||
CGmode ccmode;
|
CGmode ccmode;
|
||||||
} PrivateData;
|
} PrivateData;
|
||||||
|
|||||||
@@ -27,11 +27,8 @@
|
|||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <termios.h>
|
|
||||||
#include <fcntl.h>
|
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <syslog.h>
|
|
||||||
|
|
||||||
#include <usb.h>
|
#include <usb.h>
|
||||||
#include <ftdi.h>
|
#include <ftdi.h>
|
||||||
|
|||||||
@@ -7,8 +7,6 @@
|
|||||||
#ifndef SLI_H
|
#ifndef SLI_H
|
||||||
#define SLI_H
|
#define SLI_H
|
||||||
|
|
||||||
#include "lcd.h"
|
|
||||||
|
|
||||||
MODULE_EXPORT int sli_init (Driver *drvthis);
|
MODULE_EXPORT int sli_init (Driver *drvthis);
|
||||||
MODULE_EXPORT void sli_close (Driver *drvthis);
|
MODULE_EXPORT void sli_close (Driver *drvthis);
|
||||||
MODULE_EXPORT int sli_width (Driver *drvthis);
|
MODULE_EXPORT int sli_width (Driver *drvthis);
|
||||||
|
|||||||
@@ -27,7 +27,6 @@
|
|||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <unistd.h>
|
|
||||||
#include <termios.h>
|
#include <termios.h>
|
||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|||||||
@@ -32,9 +32,6 @@
|
|||||||
#ifndef REPORT_H
|
#ifndef REPORT_H
|
||||||
#define REPORT_H
|
#define REPORT_H
|
||||||
|
|
||||||
#include <stdarg.h>
|
|
||||||
#include <stdio.h>
|
|
||||||
|
|
||||||
/* Reporting levels */
|
/* Reporting levels */
|
||||||
/**
|
/**
|
||||||
* \def RPT_CRIT
|
* \def RPT_CRIT
|
||||||
|
|||||||
@@ -234,7 +234,6 @@ sock_send (int fd, void *src, size_t size)
|
|||||||
if (errno != EAGAIN) {
|
if (errno != EAGAIN) {
|
||||||
report (RPT_ERR, "sock_send: socket write error");
|
report (RPT_ERR, "sock_send: socket write error");
|
||||||
report (RPT_DEBUG, "Message was: '%.*s'", size-offset, (char *) src);
|
report (RPT_DEBUG, "Message was: '%.*s'", size-offset, (char *) src);
|
||||||
//shutdown(fd, SHUT_RDWR);
|
|
||||||
return sent;
|
return sent;
|
||||||
}
|
}
|
||||||
continue;
|
continue;
|
||||||
@@ -270,7 +269,6 @@ sock_recv (int fd, void *dest, size_t maxlen)
|
|||||||
err = read (fd, dest, maxlen);
|
err = read (fd, dest, maxlen);
|
||||||
if (err < 0) {
|
if (err < 0) {
|
||||||
//report (RPT_DEBUG,"sock_recv: socket read error");
|
//report (RPT_DEBUG,"sock_recv: socket read error");
|
||||||
//shutdown(fd, SHUT_RDWR);
|
|
||||||
return err;
|
return err;
|
||||||
}
|
}
|
||||||
//debug(RPT_DEBUG, "sock_recv: Got message \"%s\"", (char *)dest);
|
//debug(RPT_DEBUG, "sock_recv: Got message \"%s\"", (char *)dest);
|
||||||
|
|||||||
@@ -5,8 +5,6 @@
|
|||||||
#ifndef SOCKETS_H
|
#ifndef SOCKETS_H
|
||||||
#define SOCKETS_H
|
#define SOCKETS_H
|
||||||
|
|
||||||
#include <stdlib.h>
|
|
||||||
|
|
||||||
#ifdef HAVE_CONFIG_H
|
#ifdef HAVE_CONFIG_H
|
||||||
# include "config.h"
|
# include "config.h"
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user