/* * linux/drivers/video/maxinefb.c * * DECstation 5000/xx onboard framebuffer support ... derived from: * "HP300 Topcat framebuffer support (derived from macfb of all things) * Phil Blundell <philb@gnu.org> 1998", the original code can be * found in the file hpfb.c in the same directory. * * DECstation related code Copyright (C) 1999,2000,2001 by * Michael Engel <engel@unix-ag.org> and * Karsten Merker <merker@linuxtag.org>. * This file is subject to the terms and conditions of the GNU General * Public License. See the file COPYING in the main directory of this * archive for more details. *
*/
/* * Changes: * 2001/01/27 removed debugging and testing code, fixed fb_ops * initialization which had caused a crash before, * general cleanup, first official release (KM) *
*/
/* Set the palette */ staticint maxinefb_setcolreg(unsigned regno, unsigned red, unsigned green, unsigned blue, unsigned transp, struct fb_info *info)
{ /* value to be written into the palette reg. */ unsignedlong hw_colorvalue = 0;
if (regno > 255) return 1;
red >>= 8; /* The cmap fields are 16 bits */
green >>= 8; /* wide, but the harware colormap */
blue >>= 8; /* registers are only 8 bits wide */
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.