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
0d6a9754
Commit
0d6a9754
authored
Mar 24, 2009
by
Bartlomiej Zolnierkiewicz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ide: move ide_read_bcount_and_ireason() to ide-atapi.c
Signed-off-by:
Bartlomiej Zolnierkiewicz
<
bzolnier@gmail.com
>
parent
7eeaaaa5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
15 deletions
+15
-15
drivers/ide/ide-atapi.c
drivers/ide/ide-atapi.c
+15
-0
drivers/ide/ide-iops.c
drivers/ide/ide-iops.c
+0
-15
No files found.
drivers/ide/ide-atapi.c
View file @
0d6a9754
...
@@ -300,6 +300,21 @@ int ide_cd_get_xferlen(struct request *rq)
...
@@ -300,6 +300,21 @@ int ide_cd_get_xferlen(struct request *rq)
}
}
EXPORT_SYMBOL_GPL
(
ide_cd_get_xferlen
);
EXPORT_SYMBOL_GPL
(
ide_cd_get_xferlen
);
void
ide_read_bcount_and_ireason
(
ide_drive_t
*
drive
,
u16
*
bcount
,
u8
*
ireason
)
{
ide_task_t
task
;
memset
(
&
task
,
0
,
sizeof
(
task
));
task
.
tf_flags
=
IDE_TFLAG_IN_LBAH
|
IDE_TFLAG_IN_LBAM
|
IDE_TFLAG_IN_NSECT
;
drive
->
hwif
->
tp_ops
->
tf_read
(
drive
,
&
task
);
*
bcount
=
(
task
.
tf
.
lbah
<<
8
)
|
task
.
tf
.
lbam
;
*
ireason
=
task
.
tf
.
nsect
&
3
;
}
EXPORT_SYMBOL_GPL
(
ide_read_bcount_and_ireason
);
/*
/*
* This is the usual interrupt handler which will be called during a packet
* This is the usual interrupt handler which will be called during a packet
* command. We will transfer some of the data (as requested by the drive)
* command. We will transfer some of the data (as requested by the drive)
...
...
drivers/ide/ide-iops.c
View file @
0d6a9754
...
@@ -362,21 +362,6 @@ u8 ide_read_error(ide_drive_t *drive)
...
@@ -362,21 +362,6 @@ u8 ide_read_error(ide_drive_t *drive)
}
}
EXPORT_SYMBOL_GPL
(
ide_read_error
);
EXPORT_SYMBOL_GPL
(
ide_read_error
);
void
ide_read_bcount_and_ireason
(
ide_drive_t
*
drive
,
u16
*
bcount
,
u8
*
ireason
)
{
ide_task_t
task
;
memset
(
&
task
,
0
,
sizeof
(
task
));
task
.
tf_flags
=
IDE_TFLAG_IN_LBAH
|
IDE_TFLAG_IN_LBAM
|
IDE_TFLAG_IN_NSECT
;
drive
->
hwif
->
tp_ops
->
tf_read
(
drive
,
&
task
);
*
bcount
=
(
task
.
tf
.
lbah
<<
8
)
|
task
.
tf
.
lbam
;
*
ireason
=
task
.
tf
.
nsect
&
3
;
}
EXPORT_SYMBOL_GPL
(
ide_read_bcount_and_ireason
);
const
struct
ide_tp_ops
default_tp_ops
=
{
const
struct
ide_tp_ops
default_tp_ops
=
{
.
exec_command
=
ide_exec_command
,
.
exec_command
=
ide_exec_command
,
.
read_status
=
ide_read_status
,
.
read_status
=
ide_read_status
,
...
...
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