Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Linux-御风守护者
linux
提交
8fb303c7
L
linux
项目概览
Linux-御风守护者
/
linux
与 Fork 源项目一致
从无法访问的项目Fork
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
L
linux
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
8fb303c7
编写于
3月 24, 2007
作者:
R
Ralf Baechle
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[MIPS] SB1250: Fix bugs/warnings by creative use of volatile.
Signed-off-by:
N
Ralf Baechle
<
ralf@linux-mips.org
>
上级
41a8198f
变更
7
隐藏空白更改
内联
并排
Showing
7 changed file
with
18 addition
and
17 deletion
+18
-17
arch/mips/mm/pg-sb1.c
arch/mips/mm/pg-sb1.c
+1
-2
arch/mips/pci/pci-bcm1480.c
arch/mips/pci/pci-bcm1480.c
+1
-1
arch/mips/pci/pci-sb1250.c
arch/mips/pci/pci-sb1250.c
+1
-1
arch/mips/sibyte/bcm1480/smp.c
arch/mips/sibyte/bcm1480/smp.c
+3
-3
arch/mips/sibyte/swarm/setup.c
arch/mips/sibyte/swarm/setup.c
+10
-8
drivers/net/sb1250-mac.c
drivers/net/sb1250-mac.c
+1
-1
include/asm-mips/sibyte/sb1250.h
include/asm-mips/sibyte/sb1250.h
+1
-1
未找到文件。
arch/mips/mm/pg-sb1.c
浏览文件 @
8fb303c7
...
...
@@ -218,8 +218,7 @@ void sb1_dma_init(void)
for
(
i
=
0
;
i
<
DM_NUM_CHANNELS
;
i
++
)
{
const
u64
base_val
=
CPHYSADDR
(
&
page_descr
[
i
])
|
V_DM_DSCR_BASE_RINGSZ
(
1
);
volatile
void
*
base_reg
=
IOADDR
(
A_DM_REGISTER
(
i
,
R_DM_DSCR_BASE
));
void
*
base_reg
=
IOADDR
(
A_DM_REGISTER
(
i
,
R_DM_DSCR_BASE
));
__raw_writeq
(
base_val
,
base_reg
);
__raw_writeq
(
base_val
|
M_DM_DSCR_BASE_RESET
,
base_reg
);
...
...
arch/mips/pci/pci-bcm1480.c
浏览文件 @
8fb303c7
...
...
@@ -216,7 +216,7 @@ static int __init bcm1480_pcibios_init(void)
/*
* See if the PCI bus has been configured by the firmware.
*/
reg
=
*
((
volatile
uint64_t
*
)
IOADDR
(
A_SCD_SYSTEM_CFG
));
reg
=
__raw_readq
(
IOADDR
(
A_SCD_SYSTEM_CFG
));
if
(
!
(
reg
&
M_BCM1480_SYS_PCI_HOST
))
{
bcm1480_bus_status
|=
PCI_DEVICE_MODE
;
}
else
{
...
...
arch/mips/pci/pci-sb1250.c
浏览文件 @
8fb303c7
...
...
@@ -228,7 +228,7 @@ static int __init sb1250_pcibios_init(void)
/*
* See if the PCI bus has been configured by the firmware.
*/
reg
=
*
((
volatile
uint64_t
*
)
IOADDR
(
A_SCD_SYSTEM_CFG
));
reg
=
__raw_readq
(
IOADDR
(
A_SCD_SYSTEM_CFG
));
if
(
!
(
reg
&
M_SYS_PCI_HOST
))
{
sb1250_bus_status
|=
PCI_DEVICE_MODE
;
}
else
{
...
...
arch/mips/sibyte/bcm1480/smp.c
浏览文件 @
8fb303c7
...
...
@@ -34,21 +34,21 @@ extern void smp_call_function_interrupt(void);
* independent of board/firmware
*/
static
vo
latile
vo
id
*
mailbox_0_set_regs
[]
=
{
static
void
*
mailbox_0_set_regs
[]
=
{
IOADDR
(
A_BCM1480_IMR_CPU0_BASE
+
R_BCM1480_IMR_MAILBOX_0_SET_CPU
),
IOADDR
(
A_BCM1480_IMR_CPU1_BASE
+
R_BCM1480_IMR_MAILBOX_0_SET_CPU
),
IOADDR
(
A_BCM1480_IMR_CPU2_BASE
+
R_BCM1480_IMR_MAILBOX_0_SET_CPU
),
IOADDR
(
A_BCM1480_IMR_CPU3_BASE
+
R_BCM1480_IMR_MAILBOX_0_SET_CPU
),
};
static
vo
latile
vo
id
*
mailbox_0_clear_regs
[]
=
{
static
void
*
mailbox_0_clear_regs
[]
=
{
IOADDR
(
A_BCM1480_IMR_CPU0_BASE
+
R_BCM1480_IMR_MAILBOX_0_CLR_CPU
),
IOADDR
(
A_BCM1480_IMR_CPU1_BASE
+
R_BCM1480_IMR_MAILBOX_0_CLR_CPU
),
IOADDR
(
A_BCM1480_IMR_CPU2_BASE
+
R_BCM1480_IMR_MAILBOX_0_CLR_CPU
),
IOADDR
(
A_BCM1480_IMR_CPU3_BASE
+
R_BCM1480_IMR_MAILBOX_0_CLR_CPU
),
};
static
vo
latile
vo
id
*
mailbox_0_regs
[]
=
{
static
void
*
mailbox_0_regs
[]
=
{
IOADDR
(
A_BCM1480_IMR_CPU0_BASE
+
R_BCM1480_IMR_MAILBOX_0_CPU
),
IOADDR
(
A_BCM1480_IMR_CPU1_BASE
+
R_BCM1480_IMR_MAILBOX_0_CPU
),
IOADDR
(
A_BCM1480_IMR_CPU2_BASE
+
R_BCM1480_IMR_MAILBOX_0_CPU
),
...
...
arch/mips/sibyte/swarm/setup.c
浏览文件 @
8fb303c7
...
...
@@ -169,17 +169,19 @@ void __init plat_mem_setup(void)
#define LEDS_PHYS MLEDS_PHYS
#endif
#define setled(index, c) \
((unsigned char *)(IOADDR(LEDS_PHYS)+0x20))[(3-(index))<<3] = (c)
void
setleds
(
char
*
str
)
{
void
*
reg
;
int
i
;
for
(
i
=
0
;
i
<
4
;
i
++
)
{
if
(
!
str
[
i
])
{
setled
(
i
,
' '
);
}
else
{
setled
(
i
,
str
[
i
]);
}
reg
=
IOADDR
(
LEDS_PHYS
)
+
0x20
+
((
3
-
i
)
<<
3
);
if
(
!
str
[
i
])
writeb
(
' '
,
reg
);
else
writeb
(
str
[
i
],
reg
);
}
}
#endif
#endif
/* LEDS_PHYS */
drivers/net/sb1250-mac.c
浏览文件 @
8fb303c7
...
...
@@ -243,7 +243,7 @@ struct sbmac_softc {
* Controller-specific things
*/
vo
latile
void
__iomem
*
sbm_base
;
/* MAC's base address */
vo
id
__iomem
*
sbm_base
;
/* MAC's base address */
sbmac_state_t
sbm_state
;
/* current state */
volatile
void
__iomem
*
sbm_macenable
;
/* MAC Enable Register */
...
...
include/asm-mips/sibyte/sb1250.h
浏览文件 @
8fb303c7
...
...
@@ -67,6 +67,6 @@ extern void bcm1480_smp_finish(void);
#endif
#define IOADDR(a) ((vo
latile vo
id __iomem *)(IO_BASE + (a)))
#define IOADDR(a) ((void __iomem *)(IO_BASE + (a)))
#endif
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录