* 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.
61 lines
2.6 KiB
C
61 lines
2.6 KiB
C
/*
|
|
* LCD Driver for MTC_S16209x LCD display, used with lcdproc (lcdproc.org)
|
|
* Copyright (C) 2002 SecureCiRT, A SBU of Z-Vance Pte Ltd (Singapore)
|
|
*
|
|
* 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 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.
|
|
*
|
|
* You should have received a copy of the GNU General Public License
|
|
* along with this program; if not, write to the Free Software Foundation,
|
|
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
|
*
|
|
*/
|
|
|
|
/*
|
|
* Michael Boman - SecureCiRT Security Architect <michael.boman@securecirt.com>
|
|
*
|
|
* Heres a bit more info on the display.
|
|
* It is the MTC-S16209x and is made by Microtips Technology Inc, Taiwan
|
|
* The web page for it is http://www.microtips.com.tw
|
|
*
|
|
* The LCD is optional front panel for Gigabyte GS-SR104 system from
|
|
* Gigabyte (http://www.gigabyte.com.tw)
|
|
*
|
|
*/
|
|
|
|
#ifndef MTC_S16209X_H
|
|
#define MTC_S16209X_H
|
|
|
|
MODULE_EXPORT int MTC_S16209X_init(Driver *drvthis);
|
|
MODULE_EXPORT void MTC_S16209X_close(Driver *drvthis);
|
|
MODULE_EXPORT int MTC_S16209X_width (Driver *drvthis);
|
|
MODULE_EXPORT int MTC_S16209X_height (Driver *drvthis);
|
|
MODULE_EXPORT int MTC_S16209X_cellwidth (Driver *drvthis);
|
|
MODULE_EXPORT int MTC_S16209X_cellheight (Driver *drvthis);
|
|
MODULE_EXPORT void MTC_S16209X_clear (Driver *drvthis);
|
|
MODULE_EXPORT void MTC_S16209X_flush(Driver *drvthis);
|
|
MODULE_EXPORT void MTC_S16209X_string (Driver *drvthis, int x, int y, const char string[]);
|
|
MODULE_EXPORT void MTC_S16209X_chr(Driver *drvthis, int x, int y, char c) ;
|
|
|
|
MODULE_EXPORT void MTC_S16209X_vbar(Driver *drvthis, int x, int y, int len, int promille, int options);
|
|
MODULE_EXPORT void MTC_S16209X_hbar(Driver *drvthis, int x, int y, int len, int promille, int options);
|
|
MODULE_EXPORT int MTC_S16209X_icon(Driver *drvthis, int x, int y, int icon);
|
|
|
|
MODULE_EXPORT void MTC_S16209X_set_char(Driver *drvthis, int n, unsigned char *dat);
|
|
|
|
MODULE_EXPORT void MTC_S16209X_backlight(Driver *drvthis, int on);
|
|
|
|
#endif
|