dev.h
来自「msLinux v1.0 可以在arm ads 下仿真运行的linux」· C头文件 代码 · 共 36 行
H
36 行
/* MShowTec - www.mshowtec.com
** msLinux dev.h ver1.0
** 20051221 lmjx create limiao@mshowtec.com
**
*/
#ifndef MSLINUX_DEV_H
#define MSLINUX_DEV_H
#define MSLINUX_DEV_NR (16)
#define DEV_NAME_LEN (12)
#define DEV_NULL (0)
#define DEV_RAM (1)
#define DEV_ROM (2)
#define DEV_TTY (3)
#define DEV_LCD (4)
#define DEV_CP (5)
#define IOCTRL_INIT (0)
#define IOCTRL_RD (1)
#define IOCTRL_WE (2)
#define IOCTRL_USER (3)
#define IOCTRL_LCD_DRAW (IOCTRL_USER+0)
#define IOCTRL_CP_RESET (IOCTRL_USER+1)
void dev_init(void);
void dev_user_init(void);
long ioctrl(int dev,int cmd,long para);
int dev_register(int dev,long (*ioctrl_fn) (void));
#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?