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
Kirill Smelkov
linux
Commits
5cea26a2
Commit
5cea26a2
authored
Feb 17, 2003
by
Alan Cox
Committed by
Linus Torvalds
Feb 17, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] rmeove ide_ioreg_t from PCI ide
parent
3eb2508b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
14 deletions
+14
-14
drivers/ide/ppc/mpc8xx.c
drivers/ide/ppc/mpc8xx.c
+9
-9
drivers/ide/ppc/pmac.c
drivers/ide/ppc/pmac.c
+5
-5
No files found.
drivers/ide/ppc/mpc8xx.c
View file @
5cea26a2
/*
/*
* linux/drivers/ide/ide-m8xx.c
* linux/drivers/ide/
ppc/
ide-m8xx.c
*
*
* Copyright (C) 2000, 2001 Wolfgang Denk, wd@denx.de
* Copyright (C) 2000, 2001 Wolfgang Denk, wd@denx.de
* Modified for direct IDE interface
* Modified for direct IDE interface
...
@@ -54,7 +54,7 @@ static void m8xx_ide_tuneproc(ide_drive_t *drive, u8 pio);
...
@@ -54,7 +54,7 @@ static void m8xx_ide_tuneproc(ide_drive_t *drive, u8 pio);
typedef
struct
ide_ioport_desc
{
typedef
struct
ide_ioport_desc
{
unsigned
long
base_off
;
/* Offset to PCMCIA memory */
unsigned
long
base_off
;
/* Offset to PCMCIA memory */
ide_ioreg_t
reg_off
[
IDE_NR_PORTS
];
/* controller register offsets */
unsigned
long
reg_off
[
IDE_NR_PORTS
];
/* controller register offsets */
int
irq
;
/* IRQ */
int
irq
;
/* IRQ */
}
ide_ioport_desc_t
;
}
ide_ioport_desc_t
;
...
@@ -113,7 +113,7 @@ static int _slot_ = -1; /* will be read from PCMCIA registers */
...
@@ -113,7 +113,7 @@ static int _slot_ = -1; /* will be read from PCMCIA registers */
* IDE stuff.
* IDE stuff.
*/
*/
static
int
static
int
m8xx_ide_default_irq
(
ide_ioreg_t
base
)
m8xx_ide_default_irq
(
unsigned
long
base
)
{
{
#ifdef CONFIG_BLK_DEV_MPC8xx_IDE
#ifdef CONFIG_BLK_DEV_MPC8xx_IDE
if
(
base
>=
MAX_HWIFS
)
if
(
base
>=
MAX_HWIFS
)
...
@@ -127,7 +127,7 @@ m8xx_ide_default_irq(ide_ioreg_t base)
...
@@ -127,7 +127,7 @@ m8xx_ide_default_irq(ide_ioreg_t base)
#endif
#endif
}
}
static
ide_ioreg_t
static
unsigned
long
m8xx_ide_default_io_base
(
int
index
)
m8xx_ide_default_io_base
(
int
index
)
{
{
return
index
;
return
index
;
...
@@ -161,10 +161,10 @@ static int pcmcia_schlvl = PCMCIA_SCHLVL;
...
@@ -161,10 +161,10 @@ static int pcmcia_schlvl = PCMCIA_SCHLVL;
*/
*/
#if defined(CONFIG_IDE_8xx_PCCARD) || defined(CONFIG_IDE_8xx_DIRECT)
#if defined(CONFIG_IDE_8xx_PCCARD) || defined(CONFIG_IDE_8xx_DIRECT)
static
void
static
void
m8xx_ide_init_hwif_ports
(
hw_regs_t
*
hw
,
ide_ioreg_t
data_port
,
m8xx_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
*
p
=
hw
->
io_ports
;
unsigned
long
*
p
=
hw
->
io_ports
;
int
i
;
int
i
;
typedef
struct
{
typedef
struct
{
...
@@ -346,9 +346,9 @@ m8xx_ide_init_hwif_ports(hw_regs_t *hw, ide_ioreg_t data_port,
...
@@ -346,9 +346,9 @@ m8xx_ide_init_hwif_ports(hw_regs_t *hw, ide_ioreg_t data_port,
*/
*/
#if defined(CONFIG_IDE_EXT_DIRECT)
#if defined(CONFIG_IDE_EXT_DIRECT)
void
m8xx_ide_init_hwif_ports
(
hw_regs_t
*
hw
,
void
m8xx_ide_init_hwif_ports
(
hw_regs_t
*
hw
,
ide_ioreg_t
data_port
,
ide_ioreg_t
ctrl_port
,
int
*
irq
)
unsigned
long
data_port
,
unsigned
long
ctrl_port
,
int
*
irq
)
{
{
ide_ioreg_t
*
p
=
hw
->
io_ports
;
unsigned
long
*
p
=
hw
->
io_ports
;
int
i
;
int
i
;
u32
ide_phy_base
;
u32
ide_phy_base
;
...
...
drivers/ide/ppc/pmac.c
View file @
5cea26a2
...
@@ -51,7 +51,7 @@ extern void ide_do_request(ide_hwgroup_t *hwgroup, int masked_irq);
...
@@ -51,7 +51,7 @@ extern void ide_do_request(ide_hwgroup_t *hwgroup, int masked_irq);
#define DMA_WAIT_TIMEOUT 500
#define DMA_WAIT_TIMEOUT 500
typedef
struct
pmac_ide_hwif
{
typedef
struct
pmac_ide_hwif
{
ide_ioreg_t
regbase
;
unsigned
long
regbase
;
int
irq
;
int
irq
;
int
kind
;
int
kind
;
int
aapl_bus_id
;
int
aapl_bus_id
;
...
@@ -267,7 +267,7 @@ struct pmu_sleep_notifier idepmac_sleep_notifier = {
...
@@ -267,7 +267,7 @@ struct pmu_sleep_notifier idepmac_sleep_notifier = {
*/
*/
void
__pmac
void
__pmac
pmac_ide_init_hwif_ports
(
hw_regs_t
*
hw
,
pmac_ide_init_hwif_ports
(
hw_regs_t
*
hw
,
ide_ioreg_t
data_port
,
ide_ioreg_t
ctrl_port
,
unsigned
long
data_port
,
unsigned
long
ctrl_port
,
int
*
irq
)
int
*
irq
)
{
{
int
i
,
ix
;
int
i
,
ix
;
...
@@ -672,14 +672,14 @@ sanitize_timings(pmac_ide_hwif_t *pmif)
...
@@ -672,14 +672,14 @@ sanitize_timings(pmac_ide_hwif_t *pmif)
pmif
->
timings
[
0
]
=
pmif
->
timings
[
1
]
=
value
;
pmif
->
timings
[
0
]
=
pmif
->
timings
[
1
]
=
value
;
}
}
ide_ioreg_t
__pmac
unsigned
long
__pmac
pmac_ide_get_base
(
int
index
)
pmac_ide_get_base
(
int
index
)
{
{
return
pmac_ide
[
index
].
regbase
;
return
pmac_ide
[
index
].
regbase
;
}
}
int
__pmac
int
__pmac
pmac_ide_check_base
(
ide_ioreg_t
base
)
pmac_ide_check_base
(
unsigned
long
base
)
{
{
int
ix
;
int
ix
;
...
@@ -690,7 +690,7 @@ pmac_ide_check_base(ide_ioreg_t base)
...
@@ -690,7 +690,7 @@ pmac_ide_check_base(ide_ioreg_t base)
}
}
int
__pmac
int
__pmac
pmac_ide_get_irq
(
ide_ioreg_t
base
)
pmac_ide_get_irq
(
unsigned
long
base
)
{
{
int
ix
;
int
ix
;
...
...
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