Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
989ceec2
Commit
989ceec2
authored
Mar 24, 2003
by
Paul Mackerras
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
PPC32: Convert uses of ide_ioreg_t to unsigned long.
parent
b84cea0b
Changes
9
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
50 additions
and
50 deletions
+50
-50
arch/ppc/platforms/k2_setup.c
arch/ppc/platforms/k2_setup.c
+3
-3
arch/ppc/platforms/lopec_setup.c
arch/ppc/platforms/lopec_setup.c
+8
-8
arch/ppc/platforms/mcpn765_setup.c
arch/ppc/platforms/mcpn765_setup.c
+8
-8
arch/ppc/platforms/menf1_setup.c
arch/ppc/platforms/menf1_setup.c
+5
-5
arch/ppc/platforms/pplus_setup.c
arch/ppc/platforms/pplus_setup.c
+4
-4
arch/ppc/platforms/prep_setup.c
arch/ppc/platforms/prep_setup.c
+2
-2
arch/ppc/platforms/sandpoint_setup.c
arch/ppc/platforms/sandpoint_setup.c
+8
-8
arch/ppc/syslib/ppc4xx_setup.c
arch/ppc/syslib/ppc4xx_setup.c
+2
-2
include/asm-ppc/ide.h
include/asm-ppc/ide.h
+10
-10
No files found.
arch/ppc/platforms/k2_setup.c
View file @
989ceec2
...
@@ -56,10 +56,10 @@ static unsigned int cpu_6xx[16] = {
...
@@ -56,10 +56,10 @@ static unsigned int cpu_6xx[16] = {
/* IDE functions */
/* IDE functions */
static
void
__init
static
void
__init
k2_ide_init_hwif_ports
(
hw_regs_t
*
hw
,
ide_ioreg_t
data_port
,
k2_ide_init_hwif_ports
(
hw_regs_t
*
hw
,
unsigned
long
data_port
,
ide_ioreg_t
ctrl_port
,
int
*
irq
)
unsigned
long
ctrl_port
,
int
*
irq
)
{
{
ide_ioreg_t
reg
=
data_port
;
unsigned
long
reg
=
data_port
;
int
i
=
8
;
int
i
=
8
;
for
(
i
=
IDE_DATA_OFFSET
;
i
<=
IDE_STATUS_OFFSET
;
i
++
)
{
for
(
i
=
IDE_DATA_OFFSET
;
i
<=
IDE_STATUS_OFFSET
;
i
++
)
{
...
...
arch/ppc/platforms/lopec_setup.c
View file @
989ceec2
...
@@ -104,9 +104,9 @@ lopec_power_off(void)
...
@@ -104,9 +104,9 @@ lopec_power_off(void)
#if defined(CONFIG_BLK_DEV_IDE) || defined(CONFIG_BLK_DEV_IDE_MODULE)
#if defined(CONFIG_BLK_DEV_IDE) || defined(CONFIG_BLK_DEV_IDE_MODULE)
int
lopec_ide_ports_known
=
0
;
int
lopec_ide_ports_known
=
0
;
static
ide_ioreg_t
lopec_ide_regbase
[
MAX_HWIFS
];
static
unsigned
long
lopec_ide_regbase
[
MAX_HWIFS
];
static
ide_ioreg_t
lopec_ide_ctl_regbase
[
MAX_HWIFS
];
static
unsigned
long
lopec_ide_ctl_regbase
[
MAX_HWIFS
];
static
ide_ioreg_t
lopec_idedma_regbase
;
static
unsigned
long
lopec_idedma_regbase
;
static
void
static
void
lopec_ide_probe
(
void
)
lopec_ide_probe
(
void
)
...
@@ -126,7 +126,7 @@ lopec_ide_probe(void)
...
@@ -126,7 +126,7 @@ lopec_ide_probe(void)
}
}
static
int
static
int
lopec_ide_default_irq
(
ide_ioreg_t
base
)
lopec_ide_default_irq
(
unsigned
long
base
)
{
{
if
(
lopec_ide_ports_known
==
0
)
if
(
lopec_ide_ports_known
==
0
)
lopec_ide_probe
();
lopec_ide_probe
();
...
@@ -139,7 +139,7 @@ lopec_ide_default_irq(ide_ioreg_t base)
...
@@ -139,7 +139,7 @@ lopec_ide_default_irq(ide_ioreg_t base)
return
0
;
return
0
;
}
}
static
ide_ioreg_t
static
unsigned
long
lopec_ide_default_io_base
(
int
index
)
lopec_ide_default_io_base
(
int
index
)
{
{
if
(
lopec_ide_ports_known
==
0
)
if
(
lopec_ide_ports_known
==
0
)
...
@@ -148,10 +148,10 @@ lopec_ide_default_io_base(int index)
...
@@ -148,10 +148,10 @@ lopec_ide_default_io_base(int index)
}
}
static
void
__init
static
void
__init
lopec_ide_init_hwif_ports
(
hw_regs_t
*
hw
,
ide_ioreg_t
data
,
lopec_ide_init_hwif_ports
(
hw_regs_t
*
hw
,
unsigned
long
data
,
ide_ioreg_t
ctl
,
int
*
irq
)
unsigned
long
ctl
,
int
*
irq
)
{
{
ide_ioreg_t
reg
=
data
;
unsigned
long
reg
=
data
;
uint
alt_status_base
;
uint
alt_status_base
;
int
i
;
int
i
;
...
...
arch/ppc/platforms/mcpn765_setup.c
View file @
989ceec2
...
@@ -274,9 +274,9 @@ mcpn765_show_cpuinfo(struct seq_file *m)
...
@@ -274,9 +274,9 @@ mcpn765_show_cpuinfo(struct seq_file *m)
* IDE support.
* IDE support.
*/
*/
static
int
mcpn765_ide_ports_known
=
0
;
static
int
mcpn765_ide_ports_known
=
0
;
static
ide_ioreg_t
mcpn765_ide_regbase
[
MAX_HWIFS
];
static
unsigned
long
mcpn765_ide_regbase
[
MAX_HWIFS
];
static
ide_ioreg_t
mcpn765_ide_ctl_regbase
[
MAX_HWIFS
];
static
unsigned
long
mcpn765_ide_ctl_regbase
[
MAX_HWIFS
];
static
ide_ioreg_t
mcpn765_idedma_regbase
;
static
unsigned
long
mcpn765_idedma_regbase
;
static
void
static
void
mcpn765_ide_probe
(
void
)
mcpn765_ide_probe
(
void
)
...
@@ -298,7 +298,7 @@ mcpn765_ide_probe(void)
...
@@ -298,7 +298,7 @@ mcpn765_ide_probe(void)
}
}
static
int
static
int
mcpn765_ide_default_irq
(
ide_ioreg_t
base
)
mcpn765_ide_default_irq
(
unsigned
long
base
)
{
{
if
(
mcpn765_ide_ports_known
==
0
)
if
(
mcpn765_ide_ports_known
==
0
)
mcpn765_ide_probe
();
mcpn765_ide_probe
();
...
@@ -311,7 +311,7 @@ mcpn765_ide_default_irq(ide_ioreg_t base)
...
@@ -311,7 +311,7 @@ mcpn765_ide_default_irq(ide_ioreg_t base)
return
0
;
return
0
;
}
}
static
ide_ioreg_t
static
unsigned
long
mcpn765_ide_default_io_base
(
int
index
)
mcpn765_ide_default_io_base
(
int
index
)
{
{
if
(
mcpn765_ide_ports_known
==
0
)
if
(
mcpn765_ide_ports_known
==
0
)
...
@@ -321,10 +321,10 @@ mcpn765_ide_default_io_base(int index)
...
@@ -321,10 +321,10 @@ mcpn765_ide_default_io_base(int index)
}
}
static
void
__init
static
void
__init
mcpn765_ide_init_hwif_ports
(
hw_regs_t
*
hw
,
ide_ioreg_t
data_port
,
mcpn765_ide_init_hwif_ports
(
hw_regs_t
*
hw
,
unsigned
long
data_port
,
ide_ioreg_t
ctrl_port
,
int
*
irq
)
unsigned
long
ctrl_port
,
int
*
irq
)
{
{
ide_ioreg_t
reg
=
data_port
;
unsigned
long
reg
=
data_port
;
uint
alt_status_base
;
uint
alt_status_base
;
int
i
;
int
i
;
...
...
arch/ppc/platforms/menf1_setup.c
View file @
989ceec2
...
@@ -194,10 +194,10 @@ menf1_map_io(void)
...
@@ -194,10 +194,10 @@ menf1_map_io(void)
/* IDE functions */
/* IDE functions */
static
void
__init
static
void
__init
menf1_ide_init_hwif_ports
(
hw_regs_t
*
hw
,
ide_ioreg_t
data_port
,
menf1_ide_init_hwif_ports
(
hw_regs_t
*
hw
,
unsigned
long
data_port
,
ide_ioreg_t
ctrl_port
,
int
*
irq
)
unsigned
long
ctrl_port
,
int
*
irq
)
{
{
ide_ioreg_t
reg
=
data_port
;
unsigned
long
reg
=
data_port
;
int
i
=
8
;
int
i
=
8
;
for
(
i
=
IDE_DATA_OFFSET
;
i
<=
IDE_STATUS_OFFSET
;
i
++
)
{
for
(
i
=
IDE_DATA_OFFSET
;
i
<=
IDE_STATUS_OFFSET
;
i
++
)
{
...
@@ -215,7 +215,7 @@ menf1_ide_init_hwif_ports (hw_regs_t *hw, ide_ioreg_t data_port,
...
@@ -215,7 +215,7 @@ menf1_ide_init_hwif_ports (hw_regs_t *hw, ide_ioreg_t data_port,
}
}
static
int
static
int
menf1_ide_default_irq
(
ide_ioreg_t
base
)
menf1_ide_default_irq
(
unsigned
long
base
)
{
{
if
(
base
==
MENF1_IDE0_BASE_ADDR
)
if
(
base
==
MENF1_IDE0_BASE_ADDR
)
return
14
;
return
14
;
...
@@ -225,7 +225,7 @@ menf1_ide_default_irq(ide_ioreg_t base)
...
@@ -225,7 +225,7 @@ menf1_ide_default_irq(ide_ioreg_t base)
return
0
;
return
0
;
}
}
static
ide_ioreg_t
static
unsigned
long
menf1_ide_default_io_base
(
int
index
)
menf1_ide_default_io_base
(
int
index
)
{
{
if
(
index
==
0
)
if
(
index
==
0
)
...
...
arch/ppc/platforms/pplus_setup.c
View file @
989ceec2
...
@@ -235,7 +235,7 @@ pplus_init_IRQ(void)
...
@@ -235,7 +235,7 @@ pplus_init_IRQ(void)
* IDE stuff.
* IDE stuff.
*/
*/
static
int
static
int
pplus_ide_default_irq
(
ide_ioreg_t
base
)
pplus_ide_default_irq
(
unsigned
long
base
)
{
{
switch
(
base
)
{
switch
(
base
)
{
case
0x1f0
:
return
14
;
case
0x1f0
:
return
14
;
...
@@ -244,7 +244,7 @@ pplus_ide_default_irq(ide_ioreg_t base)
...
@@ -244,7 +244,7 @@ pplus_ide_default_irq(ide_ioreg_t base)
}
}
}
}
static
ide_ioreg_t
static
unsigned
long
pplus_ide_default_io_base
(
int
index
)
pplus_ide_default_io_base
(
int
index
)
{
{
switch
(
index
)
{
switch
(
index
)
{
...
@@ -256,9 +256,9 @@ pplus_ide_default_io_base(int index)
...
@@ -256,9 +256,9 @@ pplus_ide_default_io_base(int index)
}
}
static
void
__init
static
void
__init
pplus_ide_init_hwif_ports
(
hw_regs_t
*
hw
,
ide_ioreg_t
data_port
,
ide_ioreg_t
ctrl_port
,
int
*
irq
)
pplus_ide_init_hwif_ports
(
hw_regs_t
*
hw
,
unsigned
long
data_port
,
unsigned
long
ctrl_port
,
int
*
irq
)
{
{
ide_ioreg_t
reg
=
data_port
;
unsigned
long
reg
=
data_port
;
int
i
;
int
i
;
for
(
i
=
IDE_DATA_OFFSET
;
i
<=
IDE_STATUS_OFFSET
;
i
++
)
{
for
(
i
=
IDE_DATA_OFFSET
;
i
<=
IDE_STATUS_OFFSET
;
i
++
)
{
...
...
arch/ppc/platforms/prep_setup.c
View file @
989ceec2
...
@@ -1017,7 +1017,7 @@ prep_init_IRQ(void)
...
@@ -1017,7 +1017,7 @@ prep_init_IRQ(void)
* IDE stuff.
* IDE stuff.
*/
*/
static
int
__prep
static
int
__prep
prep_ide_default_irq
(
ide_ioreg_t
base
)
prep_ide_default_irq
(
unsigned
long
base
)
{
{
switch
(
base
)
{
switch
(
base
)
{
case
0x1f0
:
return
13
;
case
0x1f0
:
return
13
;
...
@@ -1030,7 +1030,7 @@ prep_ide_default_irq(ide_ioreg_t base)
...
@@ -1030,7 +1030,7 @@ prep_ide_default_irq(ide_ioreg_t base)
}
}
}
}
static
ide_ioreg_t
__prep
static
unsigned
long
__prep
prep_ide_default_io_base
(
int
index
)
prep_ide_default_io_base
(
int
index
)
{
{
switch
(
index
)
{
switch
(
index
)
{
...
...
arch/ppc/platforms/sandpoint_setup.c
View file @
989ceec2
...
@@ -433,9 +433,9 @@ sandpoint_show_cpuinfo(struct seq_file *m)
...
@@ -433,9 +433,9 @@ sandpoint_show_cpuinfo(struct seq_file *m)
* IDE support.
* IDE support.
*/
*/
static
int
sandpoint_ide_ports_known
=
0
;
static
int
sandpoint_ide_ports_known
=
0
;
static
ide_ioreg_t
sandpoint_ide_regbase
[
MAX_HWIFS
];
static
unsigned
long
sandpoint_ide_regbase
[
MAX_HWIFS
];
static
ide_ioreg_t
sandpoint_ide_ctl_regbase
[
MAX_HWIFS
];
static
unsigned
long
sandpoint_ide_ctl_regbase
[
MAX_HWIFS
];
static
ide_ioreg_t
sandpoint_idedma_regbase
;
static
unsigned
long
sandpoint_idedma_regbase
;
static
void
static
void
sandpoint_ide_probe
(
void
)
sandpoint_ide_probe
(
void
)
...
@@ -457,7 +457,7 @@ sandpoint_ide_probe(void)
...
@@ -457,7 +457,7 @@ sandpoint_ide_probe(void)
}
}
static
int
static
int
sandpoint_ide_default_irq
(
ide_ioreg_t
base
)
sandpoint_ide_default_irq
(
unsigned
long
base
)
{
{
if
(
sandpoint_ide_ports_known
==
0
)
if
(
sandpoint_ide_ports_known
==
0
)
sandpoint_ide_probe
();
sandpoint_ide_probe
();
...
@@ -470,7 +470,7 @@ sandpoint_ide_default_irq(ide_ioreg_t base)
...
@@ -470,7 +470,7 @@ sandpoint_ide_default_irq(ide_ioreg_t base)
return
0
;
return
0
;
}
}
static
ide_ioreg_t
static
unsigned
long
sandpoint_ide_default_io_base
(
int
index
)
sandpoint_ide_default_io_base
(
int
index
)
{
{
if
(
sandpoint_ide_ports_known
==
0
)
if
(
sandpoint_ide_ports_known
==
0
)
...
@@ -480,10 +480,10 @@ sandpoint_ide_default_io_base(int index)
...
@@ -480,10 +480,10 @@ sandpoint_ide_default_io_base(int index)
}
}
static
void
__init
static
void
__init
sandpoint_ide_init_hwif_ports
(
hw_regs_t
*
hw
,
ide_ioreg_t
data_port
,
sandpoint_ide_init_hwif_ports
(
hw_regs_t
*
hw
,
unsigned
long
data_port
,
ide_ioreg_t
ctrl_port
,
int
*
irq
)
unsigned
long
ctrl_port
,
int
*
irq
)
{
{
ide_ioreg_t
reg
=
data_port
;
unsigned
long
reg
=
data_port
;
uint
alt_status_base
;
uint
alt_status_base
;
int
i
;
int
i
;
...
...
arch/ppc/syslib/ppc4xx_setup.c
View file @
989ceec2
...
@@ -228,8 +228,8 @@ ppc4xx_progress(char *s, unsigned short hex)
...
@@ -228,8 +228,8 @@ ppc4xx_progress(char *s, unsigned short hex)
*/
*/
#if defined(CONFIG_PCI) && defined(CONFIG_IDE)
#if defined(CONFIG_PCI) && defined(CONFIG_IDE)
static
void
static
void
ppc4xx_ide_init_hwif_ports
(
hw_regs_t
*
hw
,
ide_ioreg_t
data_port
,
ppc4xx_ide_init_hwif_ports
(
hw_regs_t
*
hw
,
unsigned
long
data_port
,
ide_ioreg_t
ctrl_port
,
int
*
irq
)
unsigned
long
ctrl_port
,
int
*
irq
)
{
{
int
i
;
int
i
;
...
...
include/asm-ppc/ide.h
View file @
989ceec2
...
@@ -33,11 +33,11 @@ extern void __ide_mm_insl(unsigned long port, void *addr, u32 count);
...
@@ -33,11 +33,11 @@ extern void __ide_mm_insl(unsigned long port, void *addr, u32 count);
extern
void
__ide_mm_outsl
(
unsigned
long
port
,
void
*
addr
,
u32
count
);
extern
void
__ide_mm_outsl
(
unsigned
long
port
,
void
*
addr
,
u32
count
);
struct
ide_machdep_calls
{
struct
ide_machdep_calls
{
int
(
*
default_irq
)(
ide_ioreg_t
base
);
int
(
*
default_irq
)(
unsigned
long
base
);
ide_ioreg_t
(
*
default_io_base
)(
int
index
);
unsigned
long
(
*
default_io_base
)(
int
index
);
void
(
*
ide_init_hwif
)(
hw_regs_t
*
hw
,
void
(
*
ide_init_hwif
)(
hw_regs_t
*
hw
,
ide_ioreg_t
data_port
,
unsigned
long
data_port
,
ide_ioreg_t
ctrl_port
,
unsigned
long
ctrl_port
,
int
*
irq
);
int
*
irq
);
};
};
...
@@ -46,14 +46,14 @@ extern struct ide_machdep_calls ppc_ide_md;
...
@@ -46,14 +46,14 @@ extern struct ide_machdep_calls ppc_ide_md;
#undef SUPPORT_SLOW_DATA_PORTS
#undef SUPPORT_SLOW_DATA_PORTS
#define SUPPORT_SLOW_DATA_PORTS 0
#define SUPPORT_SLOW_DATA_PORTS 0
static
__inline__
int
ide_default_irq
(
ide_ioreg_t
base
)
static
__inline__
int
ide_default_irq
(
unsigned
long
base
)
{
{
if
(
ppc_ide_md
.
default_irq
)
if
(
ppc_ide_md
.
default_irq
)
return
ppc_ide_md
.
default_irq
(
base
);
return
ppc_ide_md
.
default_irq
(
base
);
return
0
;
return
0
;
}
}
static
__inline__
ide_ioreg_t
ide_default_io_base
(
int
index
)
static
__inline__
unsigned
long
ide_default_io_base
(
int
index
)
{
{
if
(
ppc_ide_md
.
default_io_base
)
if
(
ppc_ide_md
.
default_io_base
)
return
ppc_ide_md
.
default_io_base
(
index
);
return
ppc_ide_md
.
default_io_base
(
index
);
...
@@ -66,10 +66,10 @@ static __inline__ ide_ioreg_t ide_default_io_base(int index)
...
@@ -66,10 +66,10 @@ static __inline__ ide_ioreg_t ide_default_io_base(int index)
* as the pmac IDE interfaces.
* as the pmac IDE interfaces.
*/
*/
static
__inline__
void
ide_init_hwif_ports
(
hw_regs_t
*
hw
,
static
__inline__
void
ide_init_hwif_ports
(
hw_regs_t
*
hw
,
ide_ioreg_t
data_port
,
unsigned
long
data_port
,
ide_ioreg_t
ctrl_port
,
int
*
irq
)
unsigned
long
ctrl_port
,
int
*
irq
)
{
{
ide_ioreg_t
reg
=
data_port
;
unsigned
long
reg
=
data_port
;
int
i
;
int
i
;
for
(
i
=
IDE_DATA_OFFSET
;
i
<=
IDE_STATUS_OFFSET
;
i
++
)
for
(
i
=
IDE_DATA_OFFSET
;
i
<=
IDE_STATUS_OFFSET
;
i
++
)
...
@@ -92,7 +92,7 @@ static __inline__ void ide_init_default_hwifs(void)
...
@@ -92,7 +92,7 @@ static __inline__ void ide_init_default_hwifs(void)
#ifndef CONFIG_PCI
#ifndef CONFIG_PCI
hw_regs_t
hw
;
hw_regs_t
hw
;
int
index
;
int
index
;
ide_ioreg_t
base
;
unsigned
long
base
;
for
(
index
=
0
;
index
<
MAX_HWIFS
;
index
++
)
{
for
(
index
=
0
;
index
<
MAX_HWIFS
;
index
++
)
{
base
=
ide_default_io_base
(
index
);
base
=
ide_default_io_base
(
index
);
...
...
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