- /*
- By Marcus Xing
- include/type.h
- 在内核中需要的类型的定义
- */
- /*
- forward include:none
- */
- #ifndef _TYPE_H_
- #define _TYPE_H_
- /*
- 数据类型定义,为的是能一眼就看出数据的位数
- 注意此处都为无符号类型
- */
- typedef unsigned int u32; /* 32位 */
- typedef unsigned short u16; /* 16位 */
- typedef unsigned char u8; /* 8位 */
- /* 内中断处理程序的类型 */
- typedef void (*Int_Handler)();
- /* 外中断处理程序的类型 */
- typedef void (*IRQ_Handler)(int vec_no);
- /* 系统调用的各功能函数的类型 */
- typedef u32 System_Call_Handler;
- #endif