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
1ed9ed8f
Commit
1ed9ed8f
authored
Jul 03, 2004
by
Jeff Garzik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[ata] add ata_ok() inlined helper, and ATA_{DRDY,DF} bit to linux/ata.h
parent
ea21e4ac
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
1 deletion
+9
-1
include/linux/ata.h
include/linux/ata.h
+9
-1
No files found.
include/linux/ata.h
View file @
1ed9ed8f
...
...
@@ -78,9 +78,11 @@ enum {
ATA_NIEN
=
(
1
<<
1
),
/* disable-irq flag */
ATA_LBA
=
(
1
<<
6
),
/* LBA28 selector */
ATA_DEV1
=
(
1
<<
4
),
/* Select Device 1 (slave) */
ATA_BUSY
=
(
1
<<
7
),
/* BSY status bit */
ATA_DEVICE_OBS
=
(
1
<<
7
)
|
(
1
<<
5
),
/* obs bits in dev reg */
ATA_DEVCTL_OBS
=
(
1
<<
3
),
/* obsolete bit in devctl reg */
ATA_BUSY
=
(
1
<<
7
),
/* BSY status bit */
ATA_DRDY
=
(
1
<<
6
),
/* device ready */
ATA_DF
=
(
1
<<
5
),
/* device fault */
ATA_DRQ
=
(
1
<<
3
),
/* data request i/o */
ATA_ERR
=
(
1
<<
0
),
/* have an error */
ATA_SRST
=
(
1
<<
2
),
/* software reset */
...
...
@@ -224,4 +226,10 @@ static inline int is_atapi_taskfile(struct ata_taskfile *tf)
(
tf
->
protocol
==
ATA_PROT_ATAPI_DMA
);
}
static
inline
int
ata_ok
(
u8
status
)
{
return
((
status
&
(
ATA_BUSY
|
ATA_DRDY
|
ATA_DF
|
ATA_DRQ
|
ATA_ERR
))
==
ATA_DRDY
);
}
#endif
/* __LINUX_ATA_H__ */
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