Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
ide-timings.c File Reference
#include <linux/kernel.h>
#include <linux/ide.h>
#include <linux/module.h>

Go to the source code of this file.

Macros

#define ENOUGH(v, unit)   (((v) - 1) / (unit) + 1)
 
#define EZ(v, unit)   ((v) ? ENOUGH(v, unit) : 0)
 

Functions

struct ide_timingide_timing_find_mode (u8 speed)
 
 EXPORT_SYMBOL_GPL (ide_timing_find_mode)
 
u16 ide_pio_cycle_time (ide_drive_t *drive, u8 pio)
 
 EXPORT_SYMBOL_GPL (ide_pio_cycle_time)
 
void ide_timing_merge (struct ide_timing *a, struct ide_timing *b, struct ide_timing *m, unsigned int what)
 
 EXPORT_SYMBOL_GPL (ide_timing_merge)
 
int ide_timing_compute (ide_drive_t *drive, u8 speed, struct ide_timing *t, int T, int UT)
 
 EXPORT_SYMBOL_GPL (ide_timing_compute)
 

Macro Definition Documentation

#define ENOUGH (   v,
  unit 
)    (((v) - 1) / (unit) + 1)

Definition at line 106 of file ide-timings.c.

#define EZ (   v,
  unit 
)    ((v) ? ENOUGH(v, unit) : 0)

Definition at line 107 of file ide-timings.c.

Function Documentation

EXPORT_SYMBOL_GPL ( ide_timing_find_mode  )
EXPORT_SYMBOL_GPL ( ide_pio_cycle_time  )
EXPORT_SYMBOL_GPL ( ide_timing_merge  )
EXPORT_SYMBOL_GPL ( ide_timing_compute  )
u16 ide_pio_cycle_time ( ide_drive_t drive,
u8  pio 
)

Definition at line 81 of file ide-timings.c.

int ide_timing_compute ( ide_drive_t drive,
u8  speed,
struct ide_timing t,
int  T,
int  UT 
)

Definition at line 144 of file ide-timings.c.

struct ide_timing* ide_timing_find_mode ( u8  speed)
read

Definition at line 70 of file ide-timings.c.

void ide_timing_merge ( struct ide_timing a,
struct ide_timing b,
struct ide_timing m,
unsigned int  what 
)

Definition at line 122 of file ide-timings.c.