Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
cloud-kernel
提交
e4eacd6b
cloud-kernel
项目概览
openanolis
/
cloud-kernel
1 年多 前同步成功
通知
161
Star
36
Fork
7
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
10
列表
看板
标记
里程碑
合并请求
2
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
cloud-kernel
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
10
Issue
10
列表
看板
标记
里程碑
合并请求
2
合并请求
2
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
e4eacd6b
编写于
3月 18, 2018
作者:
A
Al Viro
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
alpha: switch pci syscalls to SYSCALL_DEFINE
Signed-off-by:
N
Al Viro
<
viro@zeniv.linux.org.uk
>
上级
0c8efd61
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
10 addition
and
10 deletion
+10
-10
arch/alpha/kernel/pci-noop.c
arch/alpha/kernel/pci-noop.c
+7
-8
arch/alpha/kernel/pci.c
arch/alpha/kernel/pci.c
+3
-2
未找到文件。
arch/alpha/kernel/pci-noop.c
浏览文件 @
e4eacd6b
...
...
@@ -15,6 +15,7 @@
#include <linux/sched.h>
#include <linux/dma-mapping.h>
#include <linux/scatterlist.h>
#include <linux/syscalls.h>
#include "proto.h"
...
...
@@ -46,8 +47,8 @@ alloc_resource(void)
return
alloc_bootmem
(
sizeof
(
struct
resource
));
}
asmlinkage
long
sys_pciconfig_iobase
(
long
which
,
unsigned
long
bus
,
unsigned
long
dfn
)
SYSCALL_DEFINE3
(
pciconfig_iobase
,
long
,
which
,
unsigned
long
,
bus
,
unsigned
long
,
dfn
)
{
struct
pci_controller
*
hose
;
...
...
@@ -84,9 +85,8 @@ sys_pciconfig_iobase(long which, unsigned long bus, unsigned long dfn)
return
-
EOPNOTSUPP
;
}
asmlinkage
long
sys_pciconfig_read
(
unsigned
long
bus
,
unsigned
long
dfn
,
unsigned
long
off
,
unsigned
long
len
,
void
*
buf
)
SYSCALL_DEFINE5
(
pciconfig_read
,
unsigned
long
,
bus
,
unsigned
long
,
dfn
,
unsigned
long
,
off
,
unsigned
long
,
len
,
void
__user
*
,
buf
)
{
if
(
!
capable
(
CAP_SYS_ADMIN
))
return
-
EPERM
;
...
...
@@ -94,9 +94,8 @@ sys_pciconfig_read(unsigned long bus, unsigned long dfn,
return
-
ENODEV
;
}
asmlinkage
long
sys_pciconfig_write
(
unsigned
long
bus
,
unsigned
long
dfn
,
unsigned
long
off
,
unsigned
long
len
,
void
*
buf
)
SYSCALL_DEFINE5
(
pciconfig_write
,
unsigned
long
,
bus
,
unsigned
long
,
dfn
,
unsigned
long
,
off
,
unsigned
long
,
len
,
void
__user
*
,
buf
)
{
if
(
!
capable
(
CAP_SYS_ADMIN
))
return
-
EPERM
;
...
...
arch/alpha/kernel/pci.c
浏览文件 @
e4eacd6b
...
...
@@ -22,6 +22,7 @@
#include <linux/module.h>
#include <linux/cache.h>
#include <linux/slab.h>
#include <linux/syscalls.h>
#include <asm/machvec.h>
#include "proto.h"
...
...
@@ -409,8 +410,8 @@ alloc_resource(void)
/* Provide information on locations of various I/O regions in physical
memory. Do this on a per-card basis so that we choose the right hose. */
asmlinkage
long
sys_pciconfig_iobase
(
long
which
,
unsigned
long
bus
,
unsigned
long
dfn
)
SYSCALL_DEFINE3
(
pciconfig_iobase
,
long
,
which
,
unsigned
long
,
bus
,
unsigned
long
,
dfn
)
{
struct
pci_controller
*
hose
;
struct
pci_dev
*
dev
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录