os/linux-2.6-tag--devboard-R2_10-4/drivers/ide/ide-dma.c File Reference

#include <linux/module.h>
#include <linux/types.h>
#include <linux/kernel.h>
#include <linux/timer.h>
#include <linux/mm.h>
#include <linux/interrupt.h>
#include <linux/pci.h>
#include <linux/init.h>
#include <linux/ide.h>
#include <linux/delay.h>
#include <linux/scatterlist.h>
#include <asm/io.h>
#include <asm/irq.h>

Include dependency graph for ide-dma.c:

Go to the source code of this file.

Functions

int ide_in_drive_list (struct hd_driveid *id, const struct drive_list_entry *drive_table)
ide_startstop_t ide_dma_intr (ide_drive_t *drive)
 EXPORT_SYMBOL_GPL (ide_dma_intr)
int __ide_dma_off (ide_drive_t *drive)
 EXPORT_SYMBOL (__ide_dma_off)
int __ide_dma_bad_drive (ide_drive_t *drive)
 EXPORT_SYMBOL (__ide_dma_bad_drive)
int __ide_dma_good_drive (ide_drive_t *drive)
 EXPORT_SYMBOL (__ide_dma_good_drive)
int ide_use_dma (ide_drive_t *drive)
 EXPORT_SYMBOL_GPL (ide_use_dma)
void ide_dma_verbose (ide_drive_t *drive)
 EXPORT_SYMBOL (ide_dma_verbose)

Variables

static struct drive_list_entry drive_whitelist []
static struct drive_list_entry drive_blacklist []


Function Documentation

int __ide_dma_bad_drive ( ide_drive_t *  drive  ) 

Definition at line 660 of file ide-dma.c.

References drive_blacklist, ide_in_drive_list(), KERN_WARNING, and printk.

Referenced by ide_use_dma().

int __ide_dma_good_drive ( ide_drive_t *  drive  ) 

Definition at line 675 of file ide-dma.c.

References drive_whitelist, and ide_in_drive_list().

Referenced by ide_use_dma().

int __ide_dma_off ( ide_drive_t *  drive  ) 

__ide_dma_off - disable DMA on a device : drive to disable DMA on

Disable IDE DMA for a device on this IDE controller. Inform the user that DMA has been disabled.

Definition at line 471 of file ide-dma.c.

References KERN_INFO, and printk.

EXPORT_SYMBOL ( ide_dma_verbose   ) 

EXPORT_SYMBOL ( __ide_dma_good_drive   ) 

EXPORT_SYMBOL ( __ide_dma_bad_drive   ) 

EXPORT_SYMBOL ( __ide_dma_off   ) 

EXPORT_SYMBOL_GPL ( ide_use_dma   ) 

EXPORT_SYMBOL_GPL ( ide_dma_intr   ) 

ide_startstop_t ide_dma_intr ( ide_drive_t *  drive  ) 

ide_dma_intr - IDE DMA interrupt handler : the drive the interrupt is for

Handle an interrupt completing a read/write DMA transfer on an IDE device

Definition at line 167 of file ide-dma.c.

References KERN_ERR, and printk.

Referenced by cris_dma_intr().

void ide_dma_verbose ( ide_drive_t *  drive  ) 

Definition at line 715 of file ide-dma.c.

References printk.

int ide_in_drive_list ( struct hd_driveid *  id,
const struct drive_list_entry *  drive_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 149 of file ide-dma.c.

Referenced by __ide_dma_bad_drive(), and __ide_dma_good_drive().

int ide_use_dma ( ide_drive_t *  drive  ) 

Definition at line 683 of file ide-dma.c.

References __ide_dma_bad_drive(), and __ide_dma_good_drive().

Referenced by cris_dma_check().


Variable Documentation

struct drive_list_entry drive_blacklist[] [static]

Definition at line 101 of file ide-dma.c.

Referenced by __ide_dma_bad_drive().

struct drive_list_entry drive_whitelist[] [static]

Initial value:

 {

        { "Micropolis 2112A"    ,       "ALL"           },
        { "CONNER CTMA 4000"    ,       "ALL"           },
        { "CONNER CTT8000-A"    ,       "ALL"           },
        { "ST34342A"            ,       "ALL"           },
        { NULL                  ,       NULL            }
}

Definition at line 92 of file ide-dma.c.

Referenced by __ide_dma_good_drive().


Generated on Fri Nov 28 00:08:21 2008 for elphel by  doxygen 1.5.1