Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
kernel_linux
提交
b383f47e
K
kernel_linux
项目概览
OpenHarmony
/
kernel_linux
上一次同步 3 年多
通知
13
Star
8
Fork
2
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
K
kernel_linux
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
提交
b383f47e
编写于
6月 07, 2006
作者:
R
Ralf Baechle
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[MIPS] IP27: Nuke last leftovers of CONFIG_SGI_IO.
Signed-off-by:
N
Ralf Baechle
<
ralf@linux-mips.org
>
上级
5e46c3ae
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
2 addition
and
83 deletion
+2
-83
include/asm-mips/sn/addrs.h
include/asm-mips/sn/addrs.h
+0
-5
include/asm-mips/sn/klconfig.h
include/asm-mips/sn/klconfig.h
+2
-48
include/asm-mips/sn/kldir.h
include/asm-mips/sn/kldir.h
+0
-30
未找到文件。
include/asm-mips/sn/addrs.h
浏览文件 @
b383f47e
...
...
@@ -27,13 +27,8 @@
#ifndef __ASSEMBLY__
#if defined(CONFIG_SGI_IO)
/* FIXME */
#define PS_UINT_CAST (__psunsigned_t)
#define UINT64_CAST (__uint64_t)
#else
/* CONFIG_SGI_IO */
#define PS_UINT_CAST (unsigned long)
#define UINT64_CAST (unsigned long)
#endif
/* CONFIG_SGI_IO */
#define HUBREG_CAST (volatile hubreg_t *)
...
...
include/asm-mips/sn/klconfig.h
浏览文件 @
b383f47e
...
...
@@ -54,12 +54,12 @@
#include <asm/sn/agent.h>
#include <asm/arc/types.h>
#include <asm/arc/hinv.h>
#if defined(CONFIG_SGI_I
O) || defined(CONFIG_SGI_I
P35)
#if defined(CONFIG_SGI_IP35)
// The hack file has to be before vector and after sn0_fru....
#include <asm/hack.h>
#include <asm/sn/vector.h>
#include <asm/xtalk/xtalk.h>
#endif
/* CONFIG_SGI_I
O || CONFIG_SGI_I
P35 */
#endif
/* CONFIG_SGI_IP35 */
#endif
/* CONFIG_SGI_IP27 || CONFIG_SGI_IP35 */
#define KLCFGINFO_MAGIC 0xbeedbabe
...
...
@@ -134,15 +134,9 @@ typedef s32 klconf_off_t;
typedef
struct
console_s
{
#if defined(CONFIG_SGI_IO)
/* FIXME */
__psunsigned_t
uart_base
;
__psunsigned_t
config_base
;
__psunsigned_t
memory_base
;
#else
unsigned
long
uart_base
;
unsigned
long
config_base
;
unsigned
long
memory_base
;
#endif
short
baud
;
short
flag
;
int
type
;
...
...
@@ -197,23 +191,13 @@ typedef struct kl_config_hdr {
/* --- New Macros for the changed kl_config_hdr_t structure --- */
#if defined(CONFIG_SGI_IO)
#define PTR_CH_MALLOC_HDR(_k) ((klc_malloc_hdr_t *)\
((__psunsigned_t)_k + (_k->ch_malloc_hdr_off)))
#else
#define PTR_CH_MALLOC_HDR(_k) ((klc_malloc_hdr_t *)\
(unsigned long)_k + (_k->ch_malloc_hdr_off)))
#endif
#define KL_CONFIG_CH_MALLOC_HDR(_n) PTR_CH_MALLOC_HDR(KL_CONFIG_HDR(_n))
#if defined(CONFIG_SGI_IO)
#define PTR_CH_CONS_INFO(_k) ((console_t *)\
((__psunsigned_t)_k + (_k->ch_cons_off)))
#else
#define PTR_CH_CONS_INFO(_k) ((console_t *)\
((unsigned long)_k + (_k->ch_cons_off)))
#endif
#define KL_CONFIG_CH_CONS_INFO(_n) PTR_CH_CONS_INFO(KL_CONFIG_HDR(_n))
...
...
@@ -945,36 +929,6 @@ extern klcpu_t *nasid_slice_to_cpuinfo(nasid_t, int);
extern
lboard_t
*
find_lboard_class
(
lboard_t
*
start
,
unsigned
char
brd_class
);
#if defined(CONFIG_SGI_IO)
extern
xwidgetnum_t
nodevertex_widgetnum_get
(
vertex_hdl_t
node_vtx
);
extern
vertex_hdl_t
nodevertex_xbow_peer_get
(
vertex_hdl_t
node_vtx
);
extern
lboard_t
*
find_gfxpipe
(
int
pipenum
);
extern
void
setup_gfxpipe_link
(
vertex_hdl_t
vhdl
,
int
pipenum
);
extern
lboard_t
*
find_lboard_module_class
(
lboard_t
*
start
,
moduleid_t
mod
,
unsigned
char
brd_class
);
extern
lboard_t
*
find_nic_lboard
(
lboard_t
*
,
nic_t
);
extern
lboard_t
*
find_nic_type_lboard
(
nasid_t
,
unsigned
char
,
nic_t
);
extern
lboard_t
*
find_lboard_modslot
(
lboard_t
*
start
,
moduleid_t
mod
,
slotid_t
slot
);
extern
lboard_t
*
find_lboard_module
(
lboard_t
*
start
,
moduleid_t
mod
);
extern
lboard_t
*
get_board_name
(
nasid_t
nasid
,
moduleid_t
mod
,
slotid_t
slot
,
char
*
name
);
extern
int
config_find_nic_router
(
nasid_t
,
nic_t
,
lboard_t
**
,
klrou_t
**
);
extern
int
config_find_nic_hub
(
nasid_t
,
nic_t
,
lboard_t
**
,
klhub_t
**
);
extern
int
config_find_xbow
(
nasid_t
,
lboard_t
**
,
klxbow_t
**
);
extern
klcpu_t
*
get_cpuinfo
(
cpuid_t
cpu
);
extern
int
update_klcfg_cpuinfo
(
nasid_t
,
int
);
extern
void
board_to_path
(
lboard_t
*
brd
,
char
*
path
);
extern
moduleid_t
get_module_id
(
nasid_t
nasid
);
extern
void
nic_name_convert
(
char
*
old_name
,
char
*
new_name
);
extern
int
module_brds
(
nasid_t
nasid
,
lboard_t
**
module_brds
,
int
n
);
extern
lboard_t
*
brd_from_key
(
ulong_t
key
);
extern
void
device_component_canonical_name_get
(
lboard_t
*
,
klinfo_t
*
,
char
*
);
extern
int
board_serial_number_get
(
lboard_t
*
,
char
*
);
extern
int
is_master_baseio
(
nasid_t
,
moduleid_t
,
slotid_t
);
extern
nasid_t
get_actual_nasid
(
lboard_t
*
brd
)
;
extern
net_vec_t
klcfg_discover_route
(
lboard_t
*
,
lboard_t
*
,
int
);
#else
/* CONFIG_SGI_IO */
extern
klcpu_t
*
sn_get_cpuinfo
(
cpuid_t
cpu
);
#endif
/* CONFIG_SGI_IO */
#endif
/* _ASM_SN_KLCONFIG_H */
include/asm-mips/sn/kldir.h
浏览文件 @
b383f47e
...
...
@@ -13,10 +13,6 @@
#include <linux/config.h>
#if defined(CONFIG_SGI_IO)
#include <asm/hack.h>
#endif
/*
* The kldir memory area resides at a fixed place in each node's memory and
* provides pointers to most other IP27 memory areas. This allows us to
...
...
@@ -136,8 +132,6 @@
#define KLDIR_OFF_STRIDE 0x28
#endif
/* __ASSEMBLY__ */
#if !defined(CONFIG_SGI_IO)
/*
* This is defined here because IP27_SYMMON_STK_SIZE must be at least what
* we define here. Since it's set up in the prom. We can't redefine it later
...
...
@@ -207,17 +201,11 @@
#define KLDIR_ENT_SIZE 0x40
#define KLDIR_MAX_ENTRIES (0x400 / 0x40)
#endif
/* !CONFIG_SGI_IO */
#ifndef __ASSEMBLY__
typedef
struct
kldir_ent_s
{
u64
magic
;
/* Indicates validity of entry */
off_t
offset
;
/* Offset from start of node space */
#if defined(CONFIG_SGI_IO)
/* FIXME */
__psunsigned_t
pointer
;
/* Pointer to area in some cases */
#else
unsigned
long
pointer
;
/* Pointer to area in some cases */
#endif
size_t
size
;
/* Size in bytes */
u64
count
;
/* Repeat count if array, 1 if not */
size_t
stride
;
/* Stride if array, 0 if not */
...
...
@@ -227,22 +215,4 @@ typedef struct kldir_ent_s {
}
kldir_ent_t
;
#endif
/* !__ASSEMBLY__ */
#if defined(CONFIG_SGI_IO)
#define KLDIR_ENT_SIZE 0x40
#define KLDIR_MAX_ENTRIES (0x400 / 0x40)
/*
* The actual offsets of each memory area are machine-dependent
*/
#ifdef CONFIG_SGI_IP27
// Not yet #include <asm/sn/sn0/kldir.h>
#elif defined(CONFIG_SGI_IP35)
#include <asm/sn/sn1/kldir.h>
#else
#error "kldir.h is currently defined for IP27 and IP35 platforms only"
#endif
#endif
/* CONFIG_SGI_IO */
#endif
/* _ASM_SN_KLDIR_H */
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录