lowlev.h

来自「OMAP1030 处理器的ARM 侧硬件测试代码 OMAP1030 是TI」· C头文件 代码 · 共 41 行

H
41
字号
/*******************************************************************************
 *
 *   Created 2003, (C) Copyright 2003 Texas Instruments.  All rights reserved.
 *
 *   Author : Brian Forde (S3)
 *
 *******************************************************************************/


#ifndef __LOWLEV_H__
#define __LOWLEV_H__

#include <file.h>


typedef struct {
   char           name[9];
   unsigned short flags;
   int 	  	  (*OPEN) (const char *path, unsigned flags, int llv_fd);
   int 	  	  (*CLOSE) (int dev_fd);
   int 	  	  (*READ) (int dev_fd, char *buf, unsigned count);
   int 	  	  (*WRITE) (int dev_fd, const char *buf, unsigned count);
   off_t 	  (*LSEEK) (int dev_fd, off_t offset, int origin);
   int 	  	  (*UNLINK) (const char *path);
   int 	  	  (*RENAME) (const char *old_name, const char *new_name);
} _DEVICE;


#define stdevice (&_device[0]) /* Default device */


extern struct stream_info
{
  _DEVICE *dev;
  int dfd;
} _stream[];


#endif /* __LOWLEV_H__ */

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?