Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
raspberrypi-kernel
提交
40cc76e2
R
raspberrypi-kernel
项目概览
openeuler
/
raspberrypi-kernel
通知
13
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
R
raspberrypi-kernel
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
40cc76e2
编写于
11月 12, 2014
作者:
M
Michael Ellerman
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'topic/opal-ipmi' into next
上级
e7a7a65e
608b286d
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
33 addition
and
0 deletion
+33
-0
arch/powerpc/include/asm/opal.h
arch/powerpc/include/asm/opal.h
+17
-0
arch/powerpc/platforms/powernv/opal-wrappers.S
arch/powerpc/platforms/powernv/opal-wrappers.S
+2
-0
arch/powerpc/platforms/powernv/opal.c
arch/powerpc/platforms/powernv/opal.c
+14
-0
未找到文件。
arch/powerpc/include/asm/opal.h
浏览文件 @
40cc76e2
...
...
@@ -154,6 +154,8 @@ struct opal_sg_list {
#define OPAL_HANDLE_HMI 98
#define OPAL_REGISTER_DUMP_REGION 101
#define OPAL_UNREGISTER_DUMP_REGION 102
#define OPAL_IPMI_SEND 107
#define OPAL_IPMI_RECV 108
#ifndef __ASSEMBLY__
...
...
@@ -452,6 +454,17 @@ struct opal_msg {
__be64
params
[
8
];
};
enum
{
OPAL_IPMI_MSG_FORMAT_VERSION_1
=
1
,
};
struct
opal_ipmi_msg
{
uint8_t
version
;
uint8_t
netfn
;
uint8_t
cmd
;
uint8_t
data
[];
};
struct
opal_machine_check_event
{
enum
OpalMCE_Version
version
:
8
;
/* 0x00 */
uint8_t
in_use
;
/* 0x01 */
...
...
@@ -963,6 +976,10 @@ int64_t opal_handle_hmi(void);
int64_t
opal_register_dump_region
(
uint32_t
id
,
uint64_t
start
,
uint64_t
end
);
int64_t
opal_unregister_dump_region
(
uint32_t
id
);
int64_t
opal_pci_set_phb_cxl_mode
(
uint64_t
phb_id
,
uint64_t
mode
,
uint64_t
pe_number
);
int64_t
opal_ipmi_send
(
uint64_t
interface
,
struct
opal_ipmi_msg
*
msg
,
uint64_t
msg_len
);
int64_t
opal_ipmi_recv
(
uint64_t
interface
,
struct
opal_ipmi_msg
*
msg
,
uint64_t
*
msg_len
);
/* Internal functions */
extern
int
early_init_dt_scan_opal
(
unsigned
long
node
,
const
char
*
uname
,
...
...
arch/powerpc/platforms/powernv/opal-wrappers.S
浏览文件 @
40cc76e2
...
...
@@ -250,3 +250,5 @@ OPAL_CALL(opal_handle_hmi, OPAL_HANDLE_HMI);
OPAL_CALL
(
opal_register_dump_region
,
OPAL_REGISTER_DUMP_REGION
)
;
OPAL_CALL
(
opal_unregister_dump_region
,
OPAL_UNREGISTER_DUMP_REGION
)
;
OPAL_CALL
(
opal_pci_set_phb_cxl_mode
,
OPAL_PCI_SET_PHB_CXL_MODE
)
;
OPAL_CALL
(
opal_ipmi_send
,
OPAL_IPMI_SEND
)
;
OPAL_CALL
(
opal_ipmi_recv
,
OPAL_IPMI_RECV
)
;
arch/powerpc/platforms/powernv/opal.c
浏览文件 @
40cc76e2
...
...
@@ -644,6 +644,16 @@ static void __init opal_dump_region_init(void)
pr_warn
(
"DUMP: Failed to register kernel log buffer. "
"rc = %d
\n
"
,
rc
);
}
static
void
opal_ipmi_init
(
struct
device_node
*
opal_node
)
{
struct
device_node
*
np
;
for_each_child_of_node
(
opal_node
,
np
)
if
(
of_device_is_compatible
(
np
,
"ibm,opal-ipmi"
))
of_platform_device_create
(
np
,
NULL
,
NULL
);
}
static
int
__init
opal_init
(
void
)
{
struct
device_node
*
np
,
*
consoles
;
...
...
@@ -707,6 +717,8 @@ static int __init opal_init(void)
opal_msglog_init
();
}
opal_ipmi_init
(
opal_node
);
return
0
;
}
machine_subsys_initcall
(
powernv
,
opal_init
);
...
...
@@ -742,6 +754,8 @@ void opal_shutdown(void)
/* Export this so that test modules can use it */
EXPORT_SYMBOL_GPL
(
opal_invalid_call
);
EXPORT_SYMBOL_GPL
(
opal_ipmi_send
);
EXPORT_SYMBOL_GPL
(
opal_ipmi_recv
);
/* Convert a region of vmalloc memory to an opal sg list */
struct
opal_sg_list
*
opal_vmalloc_to_sg_list
(
void
*
vmalloc_addr
,
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录