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
fe0e4341
Commit
fe0e4341
authored
Sep 10, 2002
by
Jens Axboe
Browse files
Options
Browse Files
Download
Plain Diff
Merge axboe@brick.kernel.dk:/mnt/kernel/ide/linux-2.5
into hera.kernel.org:/home/axboe/BK/linux-2.5-ide
parents
76d07e0f
37eb06f8
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
7 deletions
+8
-7
drivers/ide/ide-disk.c
drivers/ide/ide-disk.c
+4
-4
drivers/ide/ide-taskfile.c
drivers/ide/ide-taskfile.c
+1
-1
include/linux/ide.h
include/linux/ide.h
+3
-2
No files found.
drivers/ide/ide-disk.c
View file @
fe0e4341
...
...
@@ -173,7 +173,7 @@ static ide_startstop_t read_intr (ide_drive_t *drive)
drive
->
name
,
rq
->
sector
,
rq
->
sector
+
nsect
-
1
,
(
unsigned
long
)
rq
->
buffer
+
(
nsect
<<
9
),
rq
->
nr_sectors
-
nsect
);
#endif
ide_unmap_buffer
(
to
,
&
flags
);
ide_unmap_buffer
(
rq
,
to
,
&
flags
);
rq
->
sector
+=
nsect
;
rq
->
errors
=
0
;
i
=
(
rq
->
nr_sectors
-=
nsect
);
...
...
@@ -227,7 +227,7 @@ static ide_startstop_t write_intr (ide_drive_t *drive)
unsigned
long
flags
;
char
*
to
=
ide_map_buffer
(
rq
,
&
flags
);
taskfile_output_data
(
drive
,
to
,
SECTOR_WORDS
);
ide_unmap_buffer
(
to
,
&
flags
);
ide_unmap_buffer
(
rq
,
to
,
&
flags
);
if
(
HWGROUP
(
drive
)
->
handler
!=
NULL
)
BUG
();
ide_set_handler
(
drive
,
&
write_intr
,
WAIT_CMD
,
NULL
);
...
...
@@ -304,7 +304,7 @@ int ide_multwrite (ide_drive_t *drive, unsigned int mcount)
* re-entering us on the last transfer.
*/
taskfile_output_data
(
drive
,
buffer
,
nsect
<<
7
);
ide_unmap_buffer
(
buffer
,
&
flags
);
ide_unmap_buffer
(
rq
,
buffer
,
&
flags
);
}
while
(
mcount
);
return
0
;
...
...
@@ -522,7 +522,7 @@ static ide_startstop_t do_rw_disk (ide_drive_t *drive, struct request *rq, unsig
BUG
();
ide_set_handler
(
drive
,
&
write_intr
,
WAIT_CMD
,
NULL
);
taskfile_output_data
(
drive
,
to
,
SECTOR_WORDS
);
ide_unmap_buffer
(
to
,
&
flags
);
ide_unmap_buffer
(
rq
,
to
,
&
flags
);
}
return
ide_started
;
}
...
...
drivers/ide/ide-taskfile.c
View file @
fe0e4341
...
...
@@ -60,7 +60,7 @@
#endif
#define task_map_rq(rq, flags) ide_map_buffer((rq), (flags))
#define task_unmap_rq(rq, buf, flags) ide_unmap_buffer((buf), (flags))
#define task_unmap_rq(rq, buf, flags) ide_unmap_buffer((
rq), (
buf), (flags))
inline
u32
task_read_24
(
ide_drive_t
*
drive
)
{
...
...
include/linux/ide.h
View file @
fe0e4341
...
...
@@ -894,9 +894,10 @@ extern inline void *ide_map_buffer(struct request *rq, unsigned long *flags)
return
rq
->
buffer
+
task_rq_offset
(
rq
);
}
extern
inline
void
ide_unmap_buffer
(
char
*
buffer
,
unsigned
long
*
flags
)
extern
inline
void
ide_unmap_buffer
(
struct
request
*
rq
,
char
*
buffer
,
unsigned
long
*
flags
)
{
bio_kunmap_irq
(
buffer
,
flags
);
if
(
rq
->
bio
)
bio_kunmap_irq
(
buffer
,
flags
);
}
#define IDE_CHIPSET_PCI_MASK \
...
...
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