Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 8745
b: refs/heads/master
c: d7d7634
h: refs/heads/master
i:
  8743: dceee20
v: v3
  • Loading branch information
Alan Cox authored and Linus Torvalds committed Sep 13, 2005
1 parent 1be8c81 commit a80c940
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 36 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: c352ec8ab87b065cd2edda171811f49ac7d0d5cd
refs/heads/master: d7d7634c0f021d7d7ed781680d2c88940fc5fee8
41 changes: 6 additions & 35 deletions trunk/drivers/ide/ide-iops.c
Original file line number Diff line number Diff line change
Expand Up @@ -601,44 +601,15 @@ EXPORT_SYMBOL(ide_wait_stat);
*/
u8 eighty_ninty_three (ide_drive_t *drive)
{
#if 0
if (!HWIF(drive)->udma_four)
if(HWIF(drive)->udma_four == 0)
return 0;
if (!(drive->id->hw_config & 0x6000))
return 0;

if (drive->id->major_rev_num) {
int hssbd = 0;
int i;
/*
* Determine highest Supported SPEC
*/
for (i=1; i<=15; i++)
if (drive->id->major_rev_num & (1<<i))
hssbd++;

switch (hssbd) {
case 7:
case 6:
case 5:
/* ATA-4 and older do not support above Ultra 33 */
default:
return 0;
}
}

return ((u8) (
#ifndef CONFIG_IDEDMA_IVB
(drive->id->hw_config & 0x4000) &&
#endif /* CONFIG_IDEDMA_IVB */
(drive->id->hw_config & 0x6000)) ? 1 : 0);

#else

return ((u8) ((HWIF(drive)->udma_four) &&
#ifndef CONFIG_IDEDMA_IVB
(drive->id->hw_config & 0x4000) &&
if(!(drive->id->hw_config & 0x4000))
return 0;
#endif /* CONFIG_IDEDMA_IVB */
(drive->id->hw_config & 0x6000)) ? 1 : 0);
#endif
return 1;
}

EXPORT_SYMBOL(eighty_ninty_three);
Expand Down

0 comments on commit a80c940

Please sign in to comment.