Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Drivers Liteos
提交
c48f4f87
D
Drivers Liteos
项目概览
OpenHarmony
/
Drivers Liteos
9 个月 前同步成功
通知
3
Star
21
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
D
Drivers Liteos
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
c48f4f87
编写于
6月 19, 2021
作者:
O
openharmony_ci
提交者:
Gitee
6月 19, 2021
浏览文件
操作
浏览文件
下载
差异文件
!9 文件系统冗余代码和依赖删除
Merge pull request !9 from 野生毛霉君/master
上级
cdf3e589
3e11aaf0
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
9 addition
and
10 deletion
+9
-10
hievent/src/hievent_driver.c
hievent/src/hievent_driver.c
+8
-8
tzdriver/include/tzdriver_compat.h
tzdriver/include/tzdriver_compat.h
+1
-2
未找到文件。
hievent/src/hievent_driver.c
浏览文件 @
c48f4f87
...
@@ -34,7 +34,7 @@
...
@@ -34,7 +34,7 @@
#include <assert.h>
#include <assert.h>
#include <errno.h>
#include <errno.h>
#include <fcntl.h>
#include <fcntl.h>
#include <fs/
fs
.h>
#include <fs/
driver
.h>
#include <linux/list.h>
#include <linux/list.h>
#include <linux/wait.h>
#include <linux/wait.h>
#include <semaphore.h>
#include <semaphore.h>
...
@@ -66,7 +66,7 @@ struct HieventEntry {
...
@@ -66,7 +66,7 @@ struct HieventEntry {
char
msg
[
0
];
char
msg
[
0
];
};
};
FAR
struct
HieventCharDevice
{
struct
HieventCharDevice
{
int
flag
;
int
flag
;
LosMux
mtx
;
LosMux
mtx
;
unsigned
char
*
buffer
;
unsigned
char
*
buffer
;
...
@@ -86,13 +86,13 @@ static inline unsigned char *HieventBufferHead(void)
...
@@ -86,13 +86,13 @@ static inline unsigned char *HieventBufferHead(void)
}
}
int
HieventOpen
(
FAR
struct
file
*
filep
)
int
HieventOpen
(
struct
file
*
filep
)
{
{
(
void
)
filep
;
(
void
)
filep
;
return
0
;
return
0
;
}
}
int
HieventClose
(
FAR
struct
file
*
filep
)
int
HieventClose
(
struct
file
*
filep
)
{
{
(
void
)
filep
;
(
void
)
filep
;
return
0
;
return
0
;
...
@@ -158,7 +158,7 @@ static int HieventReadRingBuffer(unsigned char *buffer, size_t bufLen)
...
@@ -158,7 +158,7 @@ static int HieventReadRingBuffer(unsigned char *buffer, size_t bufLen)
return
retval
;
return
retval
;
}
}
static
ssize_t
HieventRead
(
FAR
struct
file
*
filep
,
char
*
buffer
,
size_t
bufLen
)
static
ssize_t
HieventRead
(
struct
file
*
filep
,
char
*
buffer
,
size_t
bufLen
)
{
{
size_t
retval
;
size_t
retval
;
struct
HieventEntry
header
;
struct
HieventEntry
header
;
...
@@ -316,14 +316,14 @@ out:
...
@@ -316,14 +316,14 @@ out:
}
}
static
ssize_t
HieventWrite
(
FAR
struct
file
*
filep
,
static
ssize_t
HieventWrite
(
struct
file
*
filep
,
const
char
*
buffer
,
size_t
bufLen
)
const
char
*
buffer
,
size_t
bufLen
)
{
{
(
void
)
filep
;
(
void
)
filep
;
return
HieventWriteInternal
(
buffer
,
bufLen
);
return
HieventWriteInternal
(
buffer
,
bufLen
);
}
}
static
int
HieventPoll
(
FAR
struct
file
*
filep
,
poll_table
*
fds
)
static
int
HieventPoll
(
struct
file
*
filep
,
poll_table
*
fds
)
{
{
(
void
)
filep
;
(
void
)
filep
;
...
@@ -332,7 +332,7 @@ static int HieventPoll(FAR struct file *filep, poll_table *fds)
...
@@ -332,7 +332,7 @@ static int HieventPoll(FAR struct file *filep, poll_table *fds)
return
(
POLLOUT
|
POLLWRNORM
);
return
(
POLLOUT
|
POLLWRNORM
);
}
}
static
int
HieventIoctl
(
FAR
struct
file
*
filep
,
int
cmd
,
unsigned
long
arg
)
static
int
HieventIoctl
(
struct
file
*
filep
,
int
cmd
,
unsigned
long
arg
)
{
{
// not support ioctl in liteos now
// not support ioctl in liteos now
(
void
)
filep
;
(
void
)
filep
;
...
...
tzdriver/include/tzdriver_compat.h
浏览文件 @
c48f4f87
...
@@ -36,8 +36,7 @@
...
@@ -36,8 +36,7 @@
#include <linux/kernel.h>
#include <linux/kernel.h>
#include <linux/workqueue.h>
#include <linux/workqueue.h>
#include "arm.h"
#include "arm.h"
#include "fs/fs.h"
#include "fs/driver.h"
#include "fs_poll_pri.h"
#include "hisoc/random.h"
#include "hisoc/random.h"
#include "los_process_pri.h"
#include "los_process_pri.h"
#include "los_task.h"
#include "los_task.h"
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录