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
61b9de84
Commit
61b9de84
authored
Mar 21, 2003
by
Alan Cox
Committed by
Linus Torvalds
Mar 21, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] FOr efficient non posted I/O people need to know the target
parent
20e51ffc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
6 deletions
+19
-6
drivers/ide/ide-iops.c
drivers/ide/ide-iops.c
+19
-6
No files found.
drivers/ide/ide-iops.c
View file @
61b9de84
/*
/*
* linux/drivers/ide/ide-iops.c Version 0.3
3 April 11, 2002
* linux/drivers/ide/ide-iops.c Version 0.3
7 Mar 05, 2003
*
*
* Copyright (C) 2000-2002 Andre Hedrick <andre@linux-ide.org>
* Copyright (C) 2000-2002 Andre Hedrick <andre@linux-ide.org>
*
*
Copyright (C) 2003 Red Hat <alan@redhat.com>
*
*
*/
*/
#include <linux/config.h>
#include <linux/config.h>
#define __NO_VERSION__
#include <linux/module.h>
#include <linux/module.h>
#include <linux/types.h>
#include <linux/types.h>
#include <linux/string.h>
#include <linux/string.h>
...
@@ -63,6 +62,10 @@ static void ide_unplugged_outb (u8 val, unsigned long port)
...
@@ -63,6 +62,10 @@ static void ide_unplugged_outb (u8 val, unsigned long port)
{
{
}
}
static
void
ide_unplugged_outbsync
(
ide_drive_t
*
drive
,
u8
addr
,
unsigned
long
port
)
{
}
static
void
ide_unplugged_outw
(
u16
val
,
unsigned
long
port
)
static
void
ide_unplugged_outw
(
u16
val
,
unsigned
long
port
)
{
{
}
}
...
@@ -82,7 +85,7 @@ static void ide_unplugged_outsl (unsigned long port, void *addr, u32 count)
...
@@ -82,7 +85,7 @@ static void ide_unplugged_outsl (unsigned long port, void *addr, u32 count)
void
unplugged_hwif_iops
(
ide_hwif_t
*
hwif
)
void
unplugged_hwif_iops
(
ide_hwif_t
*
hwif
)
{
{
hwif
->
OUTB
=
ide_unplugged_outb
;
hwif
->
OUTB
=
ide_unplugged_outb
;
hwif
->
OUTBSYNC
=
ide_unplugged_outb
;
hwif
->
OUTBSYNC
=
ide_unplugged_outb
sync
;
hwif
->
OUTW
=
ide_unplugged_outw
;
hwif
->
OUTW
=
ide_unplugged_outw
;
hwif
->
OUTL
=
ide_unplugged_outl
;
hwif
->
OUTL
=
ide_unplugged_outl
;
hwif
->
OUTSW
=
ide_unplugged_outsw
;
hwif
->
OUTSW
=
ide_unplugged_outsw
;
...
@@ -130,6 +133,11 @@ static void ide_outb (u8 val, unsigned long port)
...
@@ -130,6 +133,11 @@ static void ide_outb (u8 val, unsigned long port)
outb
(
val
,
port
);
outb
(
val
,
port
);
}
}
static
void
ide_outbsync
(
ide_drive_t
*
drive
,
u8
addr
,
unsigned
long
port
)
{
outb
(
addr
,
port
);
}
static
void
ide_outw
(
u16
val
,
unsigned
long
port
)
static
void
ide_outw
(
u16
val
,
unsigned
long
port
)
{
{
outw
(
val
,
port
);
outw
(
val
,
port
);
...
@@ -153,7 +161,7 @@ static void ide_outsl (unsigned long port, void *addr, u32 count)
...
@@ -153,7 +161,7 @@ static void ide_outsl (unsigned long port, void *addr, u32 count)
void
default_hwif_iops
(
ide_hwif_t
*
hwif
)
void
default_hwif_iops
(
ide_hwif_t
*
hwif
)
{
{
hwif
->
OUTB
=
ide_outb
;
hwif
->
OUTB
=
ide_outb
;
hwif
->
OUTBSYNC
=
ide_outb
;
hwif
->
OUTBSYNC
=
ide_outb
sync
;
hwif
->
OUTW
=
ide_outw
;
hwif
->
OUTW
=
ide_outw
;
hwif
->
OUTL
=
ide_outl
;
hwif
->
OUTL
=
ide_outl
;
hwif
->
OUTSW
=
ide_outsw
;
hwif
->
OUTSW
=
ide_outsw
;
...
@@ -201,6 +209,11 @@ static void ide_mm_outb (u8 value, unsigned long port)
...
@@ -201,6 +209,11 @@ static void ide_mm_outb (u8 value, unsigned long port)
writeb
(
value
,
port
);
writeb
(
value
,
port
);
}
}
static
void
ide_mm_outbsync
(
ide_drive_t
*
drive
,
u8
value
,
unsigned
long
port
)
{
writeb
(
value
,
port
);
}
static
void
ide_mm_outw
(
u16
value
,
unsigned
long
port
)
static
void
ide_mm_outw
(
u16
value
,
unsigned
long
port
)
{
{
writew
(
value
,
port
);
writew
(
value
,
port
);
...
@@ -226,7 +239,7 @@ void default_hwif_mmiops (ide_hwif_t *hwif)
...
@@ -226,7 +239,7 @@ void default_hwif_mmiops (ide_hwif_t *hwif)
hwif
->
OUTB
=
ide_mm_outb
;
hwif
->
OUTB
=
ide_mm_outb
;
/* Most systems will need to override OUTBSYNC, alas however
/* Most systems will need to override OUTBSYNC, alas however
this one is controller specific! */
this one is controller specific! */
hwif
->
OUTBSYNC
=
ide_mm_outb
;
hwif
->
OUTBSYNC
=
ide_mm_outb
sync
;
hwif
->
OUTW
=
ide_mm_outw
;
hwif
->
OUTW
=
ide_mm_outw
;
hwif
->
OUTL
=
ide_mm_outl
;
hwif
->
OUTL
=
ide_mm_outl
;
hwif
->
OUTSW
=
ide_mm_outsw
;
hwif
->
OUTSW
=
ide_mm_outsw
;
...
...
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