Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linux-davinci
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
linux
linux-davinci
Commits
8fb303c7
Commit
8fb303c7
authored
Mar 24, 2007
by
Ralf Baechle
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[MIPS] SB1250: Fix bugs/warnings by creative use of volatile.
Signed-off-by:
Ralf Baechle
<
ralf@linux-mips.org
>
parent
41a8198f
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
18 additions
and
17 deletions
+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
No files found.
arch/mips/mm/pg-sb1.c
View file @
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
View file @
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
View file @
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
View file @
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
View file @
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
View file @
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
View file @
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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment