Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party FreeBSD
提交
40b59e77
T
Third Party FreeBSD
项目概览
OpenHarmony
/
Third Party FreeBSD
1 年多 前同步成功
通知
3
Star
18
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
T
Third Party FreeBSD
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
40b59e77
编写于
6月 19, 2021
作者:
O
openharmony_ci
提交者:
Gitee
6月 19, 2021
浏览文件
操作
浏览文件
下载
差异文件
!18 文件系统冗余代码和依赖删除
Merge pull request !18 from 野生毛霉君/master
上级
81cdd5ae
a0f9dc31
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
14 addition
and
10 deletion
+14
-10
sys/dev/usb/serial/usb_serial.c
sys/dev/usb/serial/usb_serial.c
+1
-1
sys/dev/usb/storage/umass.c
sys/dev/usb/storage/umass.c
+10
-7
sys/dev/usb/usb_dev.c
sys/dev/usb/usb_dev.c
+2
-1
sys/dev/usb/usb_device.c
sys/dev/usb/usb_device.c
+1
-1
未找到文件。
sys/dev/usb/serial/usb_serial.c
浏览文件 @
40b59e77
...
...
@@ -68,7 +68,7 @@ __FBSDID("$FreeBSD: releng/11.4/sys/dev/usb/serial/usb_serial.c 331722 2018-03-2
#include <lwip/netifapi.h>
#endif
#include "implementation/global_implementation.h"
#include "fs/
fs
.h"
#include "fs/
driver
.h"
extern
int
ucom_modem
(
struct
ucom_softc
*
sc
,
int
sigon
,
int
sigoff
);
...
...
sys/dev/usb/storage/umass.c
浏览文件 @
40b59e77
...
...
@@ -108,7 +108,6 @@ __FBSDID("$FreeBSD: releng/11.4/sys/dev/usb/storage/umass.c 331722 2018-03-29 02
#include "implementation/global_implementation.h"
#include "scsi_all.h"
#include "scsi.h"
#include "umass_fs.h"
#if USB_HAVE_DEVICE_TOPOLOGY
#include "implementation/usb_btree.h"
#endif
...
...
@@ -233,6 +232,10 @@ DEBUG_MODULE(umass, umass_debug_func);
#define UR_BBB_RESET 0xff
/* Bulk-Only reset */
#define UR_BBB_GET_MAX_LUN 0xfe
/* Get maximum lun */
#define UMASS_ATTACH_PRENAME "/dev/sd"
#define MASS_NAME 10
#define MAX_DEVICE 5
/*
* SCSI I/O Request CCB used for the XPT_SCSI_IO and XPT_CONT_TARGET_IO
* function codes.
...
...
@@ -3158,21 +3161,21 @@ umass_status(void)
}
static
int
umass_open
(
FAR
struct
Vnode
*
filep
)
umass_open
(
struct
Vnode
*
filep
)
{
(
void
)
filep
;
return
(
0
);
}
static
int
umass_close
(
FAR
struct
Vnode
*
filep
)
umass_close
(
struct
Vnode
*
filep
)
{
(
void
)
filep
;
return
(
0
);
}
static
ssize_t
umass_read
(
FAR
struct
Vnode
*
umass_inode
,
FAR
unsigned
char
*
buffer
,
umass_read
(
struct
Vnode
*
umass_inode
,
unsigned
char
*
buffer
,
uint64_t
start_sector
,
unsigned
int
nsectors
)
{
int
status
;
...
...
@@ -3193,7 +3196,7 @@ umass_read(FAR struct Vnode *umass_inode, FAR unsigned char *buffer,
}
static
ssize_t
umass_write
(
FAR
struct
Vnode
*
umass_inode
,
FAR
const
unsigned
char
*
buffer
,
umass_write
(
struct
Vnode
*
umass_inode
,
const
unsigned
char
*
buffer
,
uint64_t
start_sector
,
unsigned
int
nsectors
)
{
int
status
;
...
...
@@ -3214,7 +3217,7 @@ umass_write(FAR struct Vnode *umass_inode, FAR const unsigned char *buffer,
}
static
int
umass_geometry
(
FAR
struct
Vnode
*
umass_inode
,
FAR
struct
geometry
*
ugeometry
)
umass_geometry
(
struct
Vnode
*
umass_inode
,
struct
geometry
*
ugeometry
)
{
struct
umass_softc
*
sc
;
...
...
@@ -3238,7 +3241,7 @@ umass_geometry(FAR struct Vnode *umass_inode, FAR struct geometry *ugeometry)
}
static
int
umass_ioctl
(
FAR
struct
Vnode
*
umass_inode
,
int
cmd
,
unsigned
long
arg
)
umass_ioctl
(
struct
Vnode
*
umass_inode
,
int
cmd
,
unsigned
long
arg
)
{
(
void
)
umass_inode
;
(
void
)
cmd
;
...
...
sys/dev/usb/usb_dev.c
浏览文件 @
40b59e77
...
...
@@ -28,7 +28,8 @@
*/
#include "implementation/global_implementation.h"
#include "fs/fs.h"
#include "fs/driver.h"
#include "fs/file.h"
#include <unistd.h>
#undef USB_DEBUG_VAR
...
...
sys/dev/usb/usb_device.c
浏览文件 @
40b59e77
...
...
@@ -25,7 +25,7 @@
*/
#include "implementation/global_implementation.h"
#include "fs/
fs
.h"
#include "fs/
driver
.h"
#undef USB_DEBUG_VAR
#define USB_DEBUG_VAR usb_debug
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录