mirror of
https://git.nju.edu.cn/oslab2023/oslab.git
synced 2024-06-13 04:44:31 +08:00
15 lines
227 B
C
15 lines
227 B
C
#ifndef __DEV_H__
|
|
#define __DEV_H__
|
|
|
|
#include <stdint.h>
|
|
|
|
typedef struct dev {
|
|
int (*read)(void *buf, uint32_t size);
|
|
int (*write)(const void *buf, uint32_t size);
|
|
} dev_t;
|
|
|
|
void init_dev();
|
|
dev_t *dev_get(int id);
|
|
|
|
#endif
|