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
d780244a
Commit
d780244a
authored
Mar 29, 2004
by
Bartlomiej Zolnierkiewicz
Committed by
Linus Torvalds
Mar 29, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] asm-sparc{64}/ide.h cleanup (there are no standard ports)
Acked by David Miller.
parent
0b778621
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
36 deletions
+4
-36
include/asm-sparc/ide.h
include/asm-sparc/ide.h
+2
-18
include/asm-sparc64/ide.h
include/asm-sparc64/ide.h
+2
-18
No files found.
include/asm-sparc/ide.h
View file @
d780244a
...
...
@@ -53,24 +53,8 @@ static __inline__ void ide_init_hwif_ports(hw_regs_t *hw, unsigned long data_por
hw
->
io_ports
[
IDE_IRQ_OFFSET
]
=
0
;
}
/*
* This registers the standard ports for this architecture with the IDE
* driver.
*/
static
__inline__
void
ide_init_default_hwifs
(
void
)
{
#ifndef CONFIG_PCI
hw_regs_t
hw
;
int
index
;
for
(
index
=
0
;
index
<
MAX_HWIFS
;
index
++
)
{
memset
(
&
hw
,
0
,
sizeof
hw
);
ide_init_hwif_ports
(
&
hw
,
ide_default_io_base
(
index
),
0
,
NULL
);
hw
.
irq
=
ide_default_irq
(
ide_default_io_base
(
index
));
ide_register_hw
(
&
hw
,
NULL
);
}
#endif
}
/* There are no standard ports. */
static
inline
void
ide_init_default_hwifs
(
void
)
{
;
}
#define __ide_insl(data_reg, buffer, wcount) \
__ide_insw(data_reg, buffer, (wcount)<<1)
...
...
include/asm-sparc64/ide.h
View file @
d780244a
...
...
@@ -54,24 +54,8 @@ static __inline__ void ide_init_hwif_ports(hw_regs_t *hw, unsigned long data_por
hw
->
io_ports
[
IDE_IRQ_OFFSET
]
=
0
;
}
/*
* This registers the standard ports for this architecture with the IDE
* driver.
*/
static
__inline__
void
ide_init_default_hwifs
(
void
)
{
#ifndef CONFIG_BLK_DEV_IDEPCI
hw_regs_t
hw
;
int
index
;
for
(
index
=
0
;
index
<
MAX_HWIFS
;
index
++
)
{
memset
(
&
hw
,
0
,
sizeof
hw
);
ide_init_hwif_ports
(
&
hw
,
ide_default_io_base
(
index
),
0
,
NULL
);
hw
.
irq
=
ide_default_irq
(
ide_default_io_base
(
index
));
ide_register_hw
(
&
hw
,
NULL
);
}
#endif
/* CONFIG_BLK_DEV_IDEPCI */
}
/* There are no standard ports. */
static
inline
void
ide_init_default_hwifs
(
void
)
{
;
}
#define __ide_insl(data_reg, buffer, wcount) \
__ide_insw(data_reg, buffer, (wcount)<<1)
...
...
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