XFusion API v1.3.0
|
#include "xf_hal_kernel_config.h"
#include "xf_hal_posix.h"
#include "xf_hal_dev.h"
#include <stdarg.h>
#include "../device/xf_hal_reg_table.inc"
结构体 | |
struct | dev_name_t |
宏定义 | |
#define | DEV_STR_NUM (sizeof(dev_str) / sizeof(const char *)) |
#define | TAG "hal_posix" |
#define | XF_HAL_TABLE_STR |
#define | FD_TO_ID(fd) ((fd) & 0xffff) |
#define | FD_TO_TYPE(fd) (((fd) >> 16) & 0xffff) |
#define | TYPE_ID_TO_FD(type, id) (((type) << 16) | (id)) |
类型定义 | |
typedef struct dev_name_t | dev_name_t |
函数 | |
static const char * | is_prefix (const char *substr, const char *str) |
static bool | _atoi (const char *src, uint16_t *num) |
static bool | name_to_type_and_id (const char *pathname, uint16_t *type, uint16_t *id) |
int | open (const char *pathname, int flags) |
int | ioctl (int fd, unsigned long request,...) |
size_t | write (int fd, const void *buf, size_t count) |
size_t | read (int fd, void *buf, size_t count) |
int | close (int fd) |
变量 | |
static const char * | dev_str [] |
#define DEV_STR_NUM (sizeof(dev_str) / sizeof(const char *)) |
在文件 xf_hal_posix.c 第 24 行定义.
#define TAG "hal_posix" |
在文件 xf_hal_posix.c 第 25 行定义.
#define XF_HAL_TABLE_STR |
#define FD_TO_ID | ( | fd | ) | ((fd) & 0xffff) |
在文件 xf_hal_posix.c 第 49 行定义.
#define FD_TO_TYPE | ( | fd | ) | (((fd) >> 16) & 0xffff) |
在文件 xf_hal_posix.c 第 50 行定义.
#define TYPE_ID_TO_FD | ( | type, | |
id | |||
) | (((type) << 16) | (id)) |
在文件 xf_hal_posix.c 第 51 行定义.
typedef struct dev_name_t dev_name_t |
|
static |
在文件 xf_hal_posix.c 第 198 行定义.
|
static |
在文件 xf_hal_posix.c 第 210 行定义.
|
static |
在文件 xf_hal_posix.c 第 225 行定义.
int open | ( | const char * | pathname, |
int | flags | ||
) |
在文件 xf_hal_posix.c 第 55 行定义.
int ioctl | ( | int | fd, |
unsigned long | request, | ||
... | |||
) |
在文件 xf_hal_posix.c 第 106 行定义.
size_t write | ( | int | fd, |
const void * | buf, | ||
size_t | count | ||
) |
在文件 xf_hal_posix.c 第 133 行定义.
size_t read | ( | int | fd, |
void * | buf, | ||
size_t | count | ||
) |
在文件 xf_hal_posix.c 第 154 行定义.
int close | ( | int | fd | ) |
在文件 xf_hal_posix.c 第 175 行定义.
|
static |
在文件 xf_hal_posix.c 第 42 行定义.