stifb.c (f01387d2693813eb5271a3448e6a082322c7d75d) stifb.c (1f17a0fa681326f726505f5a662caf07f0d098e2)
1/*
2 * linux/drivers/video/stifb.c -
3 * Low level Frame buffer driver for HP workstations with
4 * STI (standard text interface) video firmware.
5 *
6 * Copyright (C) 2001-2006 Helge Deller <deller@gmx.de>
7 * Portions Copyright (C) 2001 Thomas Bogendoerfer <tsbogend@alpha.franken.de>
8 *

--- 904 unchanged lines hidden (view full) ---

913
914
915/* ------------------- driver specific functions --------------------------- */
916
917static int
918stifb_setcolreg(u_int regno, u_int red, u_int green,
919 u_int blue, u_int transp, struct fb_info *info)
920{
1/*
2 * linux/drivers/video/stifb.c -
3 * Low level Frame buffer driver for HP workstations with
4 * STI (standard text interface) video firmware.
5 *
6 * Copyright (C) 2001-2006 Helge Deller <deller@gmx.de>
7 * Portions Copyright (C) 2001 Thomas Bogendoerfer <tsbogend@alpha.franken.de>
8 *

--- 904 unchanged lines hidden (view full) ---

913
914
915/* ------------------- driver specific functions --------------------------- */
916
917static int
918stifb_setcolreg(u_int regno, u_int red, u_int green,
919 u_int blue, u_int transp, struct fb_info *info)
920{
921 struct stifb_info *fb = (struct stifb_info *) info;
921 struct stifb_info *fb = container_of(info, struct stifb_info, info);
922 u32 color;
923
924 if (regno >= NR_PALETTE)
925 return 1;
926
927 red >>= 8;
928 green >>= 8;
929 blue >>= 8;

--- 43 unchanged lines hidden (view full) ---

973 DEBUG_ON();
974
975 return 0;
976}
977
978static int
979stifb_blank(int blank_mode, struct fb_info *info)
980{
922 u32 color;
923
924 if (regno >= NR_PALETTE)
925 return 1;
926
927 red >>= 8;
928 green >>= 8;
929 blue >>= 8;

--- 43 unchanged lines hidden (view full) ---

973 DEBUG_ON();
974
975 return 0;
976}
977
978static int
979stifb_blank(int blank_mode, struct fb_info *info)
980{
981 struct stifb_info *fb = (struct stifb_info *) info;
981 struct stifb_info *fb = container_of(info, struct stifb_info, info);
982 int enable = (blank_mode == 0) ? ENABLE : DISABLE;
983
984 switch (fb->id) {
985 case S9000_ID_A1439A:
986 CRX24_ENABLE_DISABLE_DISPLAY(fb, enable);
987 break;
988 case CRT_ID_VISUALIZE_EG:
989 case S9000_ID_ARTIST:

--- 428 unchanged lines hidden ---
982 int enable = (blank_mode == 0) ? ENABLE : DISABLE;
983
984 switch (fb->id) {
985 case S9000_ID_A1439A:
986 CRX24_ENABLE_DISABLE_DISPLAY(fb, enable);
987 break;
988 case CRT_ID_VISUALIZE_EG:
989 case S9000_ID_ARTIST:

--- 428 unchanged lines hidden ---