Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
U
u-boot-2015.04
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
vesta
u-boot-2015.04
Commits
f297b7a1
Commit
f297b7a1
authored
17 years ago
by
Dave Liu
Committed by
Wolfgang Denk
16 years ago
Browse files
Options
Downloads
Patches
Plain Diff
drivers: code clean up
Signed-off-by:
Dave Liu
<
daveliu@freescale.com
>
parent
0ff7cba4
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
drivers/block/libata.c
+18
-18
18 additions, 18 deletions
drivers/block/libata.c
include/sata.h
+5
-0
5 additions, 0 deletions
include/sata.h
with
23 additions
and
18 deletions
drivers/block/libata.c
+
18
−
18
View file @
f297b7a1
...
...
@@ -109,39 +109,39 @@ void ata_dump_id(u16 *id)
n_sectors
=
ata_id_n_sectors
(
id
);
printf
(
"Capablity: %d sectors
\n\r
"
,
n_sectors
);
printf
(
"id[49]: capabilities =
=
0x%04x
\n
"
"id[53]: field valid =
=
0x%04x
\n
"
"id[63]: mwdma =
=
0x%04x
\n
"
"id[64]: pio =
=
0x%04x
\n
"
"id[75]: queue depth =
=
0x%04x
\n
"
,
printf
(
"id[49]: capabilities =
0x%04x
\n
"
"id[53]: field valid =
0x%04x
\n
"
"id[63]: mwdma =
0x%04x
\n
"
"id[64]: pio =
0x%04x
\n
"
"id[75]: queue depth =
0x%04x
\n
"
,
id
[
49
],
id
[
53
],
id
[
63
],
id
[
64
],
id
[
75
]);
printf
(
"id[76]: sata capablity =
=
0x%04x
\n
"
"id[78]: sata features supported =
=
0x%04x
\n
"
"id[79]: sata features enable =
=
0x%04x
\n
"
,
printf
(
"id[76]: sata capablity =
0x%04x
\n
"
"id[78]: sata features supported =
0x%04x
\n
"
"id[79]: sata features enable =
0x%04x
\n
"
,
id
[
76
],
id
[
78
],
id
[
79
]);
printf
(
"id[80]: major version =
=
0x%04x
\n
"
"id[81]: minor version =
=
0x%04x
\n
"
"id[82]: command set supported 1 =
=
0x%04x
\n
"
"id[83]: command set supported 2 =
=
0x%04x
\n
"
"id[84]: command set extension =
=
0x%04x
\n
"
,
printf
(
"id[80]: major version =
0x%04x
\n
"
"id[81]: minor version =
0x%04x
\n
"
"id[82]: command set supported 1 =
0x%04x
\n
"
"id[83]: command set supported 2 =
0x%04x
\n
"
"id[84]: command set extension =
0x%04x
\n
"
,
id
[
80
],
id
[
81
],
id
[
82
],
id
[
83
],
id
[
84
]);
printf
(
"id[85]: command set enable 1 =
=
0x%04x
\n
"
"id[86]: command set enable 2 =
=
0x%04x
\n
"
"id[87]: command set default =
=
0x%04x
\n
"
"id[88]: udma =
=
0x%04x
\n
"
"id[93]: hardware reset result =
=
0x%04x
\n
"
,
printf
(
"id[85]: command set enable 1 =
0x%04x
\n
"
"id[86]: command set enable 2 =
0x%04x
\n
"
"id[87]: command set default =
0x%04x
\n
"
"id[88]: udma =
0x%04x
\n
"
"id[93]: hardware reset result =
0x%04x
\n
"
,
id
[
85
],
id
[
86
],
id
[
87
],
...
...
This diff is collapsed.
Click to expand it.
include/sata.h
+
5
−
0
View file @
f297b7a1
#ifndef __SATA_H__
#define __SATA_H__
int
init_sata
(
int
dev
);
int
scan_sata
(
int
dev
);
ulong
sata_read
(
int
dev
,
ulong
blknr
,
ulong
blkcnt
,
void
*
buffer
);
ulong
sata_write
(
int
dev
,
ulong
blknr
,
ulong
blkcnt
,
const
void
*
buffer
);
int
sata_initialize
(
void
);
#endif
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment