Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 110258
b: refs/heads/master
c: ea6ce53
h: refs/heads/master
v: v3
  • Loading branch information
Elias Oltmanns authored and Jeff Garzik committed Sep 29, 2008
1 parent f7d729f commit 83fb49d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 2ad69677b626fc311783b47af25dfecf7be2845b
refs/heads/master: ea6ce53cd5d005455ec0a3cc1d45d3af0cb90919
9 changes: 9 additions & 0 deletions trunk/include/linux/ata.h
Original file line number Diff line number Diff line change
Expand Up @@ -667,6 +667,15 @@ static inline int ata_id_has_dword_io(const u16 *id)
return 0;
}

static inline int ata_id_has_unload(const u16 *id)
{
if (ata_id_major_version(id) >= 7 &&
(id[ATA_ID_CFSSE] & 0xC000) == 0x4000 &&
id[ATA_ID_CFSSE] & (1 << 13))
return 1;
return 0;
}

static inline int ata_id_current_chs_valid(const u16 *id)
{
/* For ATA-1 devices, if the INITIALIZE DEVICE PARAMETERS command
Expand Down

0 comments on commit 83fb49d

Please sign in to comment.