kernels/linux-2.4.0/drivers/video/sis/sis_main.c
/*
 *    Read a single color register and split it into colors/transparent. 
 *    Return != 0 for invalid regno.
 */
Read a single color register and split it into colors/transparent.
Return != 0 for invalid regno.
Read a single color register and split it into colors / transparent . Return ! = 0 for invalid regno .
static int sis_getcolreg(unsigned regno, unsigned *red, unsigned *green, unsigned *blue,
			 unsigned *transp, struct fb_info *fb_info)
{
	if (regno >= video_cmap_len)
		return 1;
	*red = palette[regno].red;
	*green = palette[regno].green;
	*blue = palette[regno].blue;
	*transp = 0;
	return 0;
}
static int sis_getcolreg ( unsigned regno , unsigned * red , unsigned * green , unsigned * blue , unsigned * transp , struct fb_info * fb_info ) { if ( regno >= video_cmap_len ) return 1 ; * red = palette [ regno ] . red ; * green = palette [ regno ] . green ; * blue = palette [ regno ] . blue ; * transp = 0 ; return 0 ; }
Read a single color register and split it into colors/transparent.
Read a single color register and split it into colors / transparent .