/* $Id: drv.c,v 1.5 2004/01/27 06:34:14 reinelt Exp $ * * new framework for display drivers * * Copyright 1999-2003 Michael Reinelt * Copyright 2004 The LCD4Linux Team * * This file is part of LCD4Linux. * * LCD4Linux 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, or (at your option) * any later version. * * LCD4Linux 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., 675 Mass Ave, Cambridge, MA 02139, USA. * * * $Log: drv.c,v $ * Revision 1.5 2004/01/27 06:34:14 reinelt * Cwlinux driver portet to NextGeneration (compiles, but not tested!) * * Revision 1.4 2004/01/21 12:36:19 reinelt * Crystalfontz NextGeneration driver added * * Revision 1.3 2004/01/20 15:32:49 reinelt * first version of Next Generation HD44780 (untested! but it compiles...) * some cleanup in the other drivers * * Revision 1.2 2004/01/10 10:20:22 reinelt * new MatrixOrbital changes * * Revision 1.1 2004/01/09 17:03:07 reinelt * initiated transfer to new driver architecture * new file 'drv.c' will someday replace 'display.c' * new file 'drv_MatrixOrbital.c' will replace 'MatrixOrbital.c' * due to this 'soft' transfer lcd4linux should stay usable during the switch * (at least I hope so) * */ /* * exported functions: * * drv_list (void) * lists all available drivers to stdout * * drv_init (char *driver) * initializes the named driver * * drv_query (int *rows, int *cols, int *xres, int *yres, int *bars, int *gpos) * queries the attributes of the selected driver * * drv_clear () * clears the display * * int drv_put (int row, int col, char *text) * writes text at row, col * * int drv_bar (int type, int row, int col, int max, int len1, int len2) * draws a specified bar at row, col with len * * int drv_icon (int num, int seq, int row, int col) * draws icon #num sequence #seq at row, col * * int drv_gpo (int num, int val) * sets GPO #num to val * * int drv_flush (void) * flushes the framebuffer to the display * * int drv_quit (void) * de-initializes the driver */ #include "config.h" #include #include #include #include "debug.h" #include "cfg.h" #include "drv.h" extern DRIVER
usr/bin
usr/lib