login fb6c29d01d
port kmalloc and printk to rust (#83)
* 暂时移除cbindgen

* 将lib文件夹更名为libs文件夹(解决rust的冲突)

* 实现了全局的allocator

* 实现了printk宏

* new: 完善了printk的颜色
2022-11-13 16:43:58 +08:00

33 lines
734 B
C
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#pragma once
#include <common/glib.h>
#include <stdbool.h>
#include <libs/libUI/screen_manager.h>
/**
* @brief 重新初始化显示驱动,需先低级初始化才能高级初始化
* @param level 初始化等级
* false -> 低级初始化不使用double buffer
* true ->高级初始化增加double buffer的支持
* @return int
*/
int video_reinitialize(bool level);
/**
* @brief 初始化显示驱动
*
* @return int
*/
int video_init();
/**
* @brief 设置帧缓冲区刷新目标
*
* @param buf
* @return int
*/
int video_set_refresh_target(struct scm_buffer_info_t *buf);
extern uint64_t video_refresh_expire_jiffies;
extern uint64_t video_last_refresh_pid;
extern void video_refresh_framebuffer();