FreeBSD/sys/dev/fb/fb.c
/*
 * Generic low-level frame buffer functions
 * The low-level functions in the frame buffer subdriver may use these
 * functions.
 */
Generic low-level frame buffer functions
The low-level functions in the frame buffer subdriver may use these
functions.
Generic low - level frame buffer functions The low - level functions in the frame buffer subdriver may use these functions .
void
fb_dump_adp_info(char *driver, video_adapter_t *adp, int level)
{
    if (level <= 0)
	return;
    printf("%s%d: %s%d, %s, type:%s (%d), flags:0x%x\n", 
	   FB_DRIVER_NAME, adp->va_index, driver, adp->va_unit, adp->va_name,
	   adapter_name(adp->va_type), adp->va_type, adp->va_flags);
    printf("%s%d: port:0x%lx-0x%lx, crtc:0x%lx, mem:0x%lx 0x%x\n",
	   FB_DRIVER_NAME, adp->va_index, (u_long)adp->va_io_base, 
	   (u_long)adp->va_io_base + adp->va_io_size - 1,
	   (u_long)adp->va_crtc_addr, (u_long)adp->va_mem_base, 
	   adp->va_mem_size);
    printf("%s%d: init mode:%d, bios mode:%d, current mode:%d\n",
	   FB_DRIVER_NAME, adp->va_index,
	   adp->va_initial_mode, adp->va_initial_bios_mode, adp->va_mode);
    printf("%s%d: window:%p size:%dk gran:%dk, buf:%p size:%dk\n",
	   FB_DRIVER_NAME, adp->va_index, 
	   (void *)adp->va_window, (int)adp->va_window_size/1024,
	   (int)adp->va_window_gran/1024, (void *)adp->va_buffer,
	   (int)adp->va_buffer_size/1024);
}
void fb_dump_adp_info ( char * driver , video_adapter_t * adp , int level ) { if ( level <= 0 ) return ; printf ( " \n " , FB_DRIVER_NAME , adp -> va_index , driver , adp -> va_unit , adp -> va_name , adapter_name ( adp -> va_type ) , adp -> va_type , adp -> va_flags ) ; printf ( " \n " , FB_DRIVER_NAME , adp -> va_index , ( u_long ) adp -> va_io_base , ( u_long ) adp -> va_io_base + adp -> va_io_size - 1 , ( u_long ) adp -> va_crtc_addr , ( u_long ) adp -> va_mem_base , adp -> va_mem_size ) ; printf ( " \n " , FB_DRIVER_NAME , adp -> va_index , adp -> va_initial_mode , adp -> va_initial_bios_mode , adp -> va_mode ) ; printf ( " \n " , FB_DRIVER_NAME , adp -> va_index , ( void * ) adp -> va_window , ( int ) adp -> va_window_size / 1024 , ( int ) adp -> va_window_gran / 1024 , ( void * ) adp -> va_buffer , ( int ) adp -> va_buffer_size / 1024 ) ; }
Generic low-level frame buffer functions
 The low-level functions in the frame buffer subdriver may use these
 functions.
Generic low - level frame buffer functions The low - level functions in the frame buffer subdriver may use these functions .