Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
ide-lib.c File Reference
#include <linux/types.h>
#include <linux/string.h>
#include <linux/kernel.h>
#include <linux/export.h>
#include <linux/interrupt.h>
#include <linux/ide.h>
#include <linux/bitops.h>

Go to the source code of this file.


void ide_toggle_bounce (ide_drive_t *drive, int on)
u64 ide_get_lba_addr (struct ide_cmd *cmd, int lba48)
 EXPORT_SYMBOL_GPL (ide_get_lba_addr)
u8 ide_dump_status (ide_drive_t *drive, const char *msg, u8 stat)
 EXPORT_SYMBOL (ide_dump_status)

Function Documentation

EXPORT_SYMBOL ( ide_dump_status  )
EXPORT_SYMBOL_GPL ( ide_get_lba_addr  )
u8 ide_dump_status ( ide_drive_t drive,
const char msg,
u8  stat 

ide_dump_status - translate ATA/ATAPI error : drive that status applies to : text message to print : status byte to decode

Error reporting, in human readable form (luxurious, but a memory hog). Combines the drive name, message and status byte to provide a user understandable explanation of the device error.

Definition at line 133 of file ide-lib.c.

u64 ide_get_lba_addr ( struct ide_cmd cmd,
int  lba48 

Definition at line 35 of file ide-lib.c.

void ide_toggle_bounce ( ide_drive_t drive,
int  on 

ide_toggle_bounce - handle bounce buffering : drive to update : on/off boolean

Enable or disable bounce buffering for the device. Drives move between PIO and DMA and that changes the rules we need.

Definition at line 18 of file ide-lib.c.