Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 102072
b: refs/heads/master
c: 71d5161
h: refs/heads/master
v: v3
  • Loading branch information
Bartlomiej Zolnierkiewicz committed Jul 16, 2008
1 parent 81c36d7 commit 7bafcbc
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 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: f0ffc9872e972e9d9fe8f7ae577ff046dbdba51b
refs/heads/master: 71d5161426c26742ba053fe93637559cbe2cea37
11 changes: 6 additions & 5 deletions trunk/drivers/ide/ide-timing.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
#include <linux/hdreg.h>

struct ide_timing {
short mode;
u8 mode;
short setup; /* t1 */
short act8b; /* t2 for 8-bit io */
short rec8b; /* t2i for 8-bit io */
Expand Down Expand Up @@ -76,7 +76,7 @@ static struct ide_timing ide_timing[] = {

{ XFER_PIO_SLOW, 120, 290, 240, 960, 290, 240, 960, 0 },

{ -1 }
{ 0xff }
};

#define IDE_TIMING_SETUP 0x01
Expand Down Expand Up @@ -122,17 +122,18 @@ static void ide_timing_merge(struct ide_timing *a, struct ide_timing *b, struct
if (what & IDE_TIMING_UDMA ) m->udma = max(a->udma, b->udma);
}

static struct ide_timing* ide_timing_find_mode(short speed)
static struct ide_timing *ide_timing_find_mode(u8 speed)
{
struct ide_timing *t;

for (t = ide_timing; t->mode != speed; t++)
if (t->mode < 0)
if (t->mode == 0xff)
return NULL;
return t;
}

static int ide_timing_compute(ide_drive_t *drive, short speed, struct ide_timing *t, int T, int UT)
static int ide_timing_compute(ide_drive_t *drive, u8 speed,
struct ide_timing *t, int T, int UT)
{
struct hd_driveid *id = drive->id;
struct ide_timing *s, p;
Expand Down

0 comments on commit 7bafcbc

Please sign in to comment.