Searched refs:video_frame_buffer_info (Results 1 – 2 of 2) sorted by relevance
/DragonOS-0.1.2/kernel/src/driver/video/ |
D | video.c | 19 struct scm_buffer_info_t video_frame_buffer_info = {0}; variable 40 …video_frame_buffer_info.vaddr = SPECIAL_MEMOEY_MAPPING_VIRT_ADDR_BASE + FRAME_BUFFER_MAPPING_OFFSE… in init_frame_buffer() 41 …mm_map_proc_page_table(global_CR3, true, video_frame_buffer_info.vaddr, __fb_info.framebuffer_addr, in init_frame_buffer() 42 … video_frame_buffer_info.size, PAGE_KERNEL_PAGE | PAGE_PWT | PAGE_PCD, false, true, false); in init_frame_buffer() 66 memcpy((void *)video_frame_buffer_info.vaddr, (void *)video_refresh_target->vaddr, in video_refresh_daemon() 155 memset(&video_frame_buffer_info, 0, sizeof(struct scm_buffer_info_t)); in video_init() 168 video_frame_buffer_info.bit_depth = 8; // type=2时,width和height是按照字符数来表示的,因此depth=8 in video_init() 169 video_frame_buffer_info.flags |= SCM_BF_TEXT; in video_init() 173 video_frame_buffer_info.bit_depth = __fb_info.framebuffer_bpp; in video_init() 174 video_frame_buffer_info.flags |= SCM_BF_PIXEL; in video_init() [all …]
|
/DragonOS-0.1.2/kernel/src/libs/libUI/ |
D | screen_manager.c | 11 extern struct scm_buffer_info_t video_frame_buffer_info; 30 return &video_frame_buffer_info; in __create_buffer() 36 buf->bit_depth = video_frame_buffer_info.bit_depth; in __create_buffer() 43 buf->height = video_frame_buffer_info.height; in __create_buffer() 44 buf->width = video_frame_buffer_info.width; in __create_buffer() 45 buf->size = video_frame_buffer_info.size; in __create_buffer() 47 …struct Page *p = alloc_pages(ZONE_NORMAL, PAGE_2M_ALIGN(video_frame_buffer_info.size) / PAGE_2M_SI… in __create_buffer() 66 if (unlikely(buf == &video_frame_buffer_info || buf == NULL)) in __destroy_buffer() 77 …free_pages(Phy_to_2M_Page(virt_2_phys(buf->vaddr)), PAGE_2M_ALIGN(video_frame_buffer_info.size) / … in __destroy_buffer() 252 if (ptr->buf == &video_frame_buffer_info) in scm_enable_double_buffer() [all …]
|