Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions
ide-iops.c File Reference
#include <linux/module.h>
#include <linux/types.h>
#include <linux/string.h>
#include <linux/kernel.h>
#include <linux/timer.h>
#include <linux/mm.h>
#include <linux/interrupt.h>
#include <linux/major.h>
#include <linux/errno.h>
#include <linux/genhd.h>
#include <linux/blkpg.h>
#include <linux/slab.h>
#include <linux/pci.h>
#include <linux/delay.h>
#include <linux/ide.h>
#include <linux/bitops.h>
#include <linux/nmi.h>
#include <asm/byteorder.h>
#include <asm/irq.h>
#include <asm/uaccess.h>
#include <asm/io.h>

Go to the source code of this file.

Functions

void SELECT_MASK (ide_drive_t *drive, int mask)
 
u8 ide_read_error (ide_drive_t *drive)
 
 EXPORT_SYMBOL_GPL (ide_read_error)
 
void ide_fix_driveid (u16 *id)
 
void ide_fixstring (u8 *s, const int bytecount, const int byteswap)
 
 EXPORT_SYMBOL (ide_fixstring)
 
int __ide_wait_stat (ide_drive_t *drive, u8 good, u8 bad, unsigned long timeout, u8 *rstat)
 
int ide_wait_stat (ide_startstop_t *startstop, ide_drive_t *drive, u8 good, u8 bad, unsigned long timeout)
 
 EXPORT_SYMBOL (ide_wait_stat)
 
int ide_in_drive_list (u16 *id, const struct drive_list_entry *table)
 
 EXPORT_SYMBOL_GPL (ide_in_drive_list)
 
u8 eighty_ninty_three (ide_drive_t *drive)
 
void ide_check_nien_quirk_list (ide_drive_t *drive)
 
int ide_driveid_update (ide_drive_t *drive)
 
int ide_config_drive_speed (ide_drive_t *drive, u8 speed)
 
void __ide_set_handler (ide_drive_t *drive, ide_handler_t *handler, unsigned int timeout)
 
void ide_set_handler (ide_drive_t *drive, ide_handler_t *handler, unsigned int timeout)
 
 EXPORT_SYMBOL (ide_set_handler)
 
void ide_execute_command (ide_drive_t *drive, struct ide_cmd *cmd, ide_handler_t *handler, unsigned timeout)
 
int ide_wait_not_busy (ide_hwif_t *hwif, unsigned long timeout)
 

Function Documentation

void __ide_set_handler ( ide_drive_t *  drive,
ide_handler_t *  handler,
unsigned int  timeout 
)

Definition at line 444 of file ide-iops.c.

int __ide_wait_stat ( ide_drive_t *  drive,
u8  good,
u8  bad,
unsigned long  timeout,
u8 *  rstat 
)

Definition at line 105 of file ide-iops.c.

u8 eighty_ninty_three ( ide_drive_t *  drive)

Definition at line 228 of file ide-iops.c.

EXPORT_SYMBOL ( ide_fixstring  )
EXPORT_SYMBOL ( ide_wait_stat  )
EXPORT_SYMBOL ( ide_set_handler  )
EXPORT_SYMBOL_GPL ( ide_read_error  )
EXPORT_SYMBOL_GPL ( ide_in_drive_list  )
void ide_check_nien_quirk_list ( ide_drive_t *  drive)

Definition at line 299 of file ide-iops.c.

int ide_config_drive_speed ( ide_drive_t *  drive,
u8  speed 
)

Definition at line 342 of file ide-iops.c.

int ide_driveid_update ( ide_drive_t *  drive)

Definition at line 310 of file ide-iops.c.

void ide_execute_command ( ide_drive_t *  drive,
struct ide_cmd *  cmd,
ide_handler_t *  handler,
unsigned  timeout 
)

ide_execute_command - execute an IDE command : IDE drive to issue the command against : command : handler for next phase : timeout for command

Helper function to issue an IDE command. This handles the atomicity requirements, command timing and ensures that the handler and IRQ setup do not race. All IDE command kick off should go via this function or do equivalent locking.

Definition at line 481 of file ide-iops.c.

void ide_fix_driveid ( u16 *  id)

Definition at line 48 of file ide-iops.c.

void ide_fixstring ( u8 *  s,
const int  bytecount,
const int  byteswap 
)

Definition at line 69 of file ide-iops.c.

int ide_in_drive_list ( u16 *  id,
const struct drive_list_entry *  table 
)

ide_in_drive_list - look for drive in black/white list : drive identifier : list to inspect

Look for a drive in the blacklist and the whitelist tables Returns 1 if the drive is found in the table.

Definition at line 196 of file ide-iops.c.

u8 ide_read_error ( ide_drive_t *  drive)

Definition at line 38 of file ide-iops.c.

void ide_set_handler ( ide_drive_t *  drive,
ide_handler_t *  handler,
unsigned int  timeout 
)

Definition at line 456 of file ide-iops.c.

int ide_wait_not_busy ( ide_hwif_t *  hwif,
unsigned long  timeout 
)

Definition at line 507 of file ide-iops.c.

int ide_wait_stat ( ide_startstop_t *  startstop,
ide_drive_t *  drive,
u8  good,
u8  bad,
unsigned long  timeout 
)

Definition at line 164 of file ide-iops.c.

void SELECT_MASK ( ide_drive_t *  drive,
int  mask 
)

Definition at line 30 of file ide-iops.c.