Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions
ide-probe.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/slab.h>
#include <linux/delay.h>
#include <linux/ide.h>
#include <linux/spinlock.h>
#include <linux/kmod.h>
#include <linux/pci.h>
#include <linux/scatterlist.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

int ide_dev_read_id (ide_drive_t *drive, u8 cmd, u16 *id, int irq_ctx)
 
int ide_busy_sleep (ide_drive_t *drive, unsigned long timeout, int altstatus)
 
void ide_undecoded_slave (ide_drive_t *dev1)
 
 EXPORT_SYMBOL_GPL (ide_undecoded_slave)
 
void ide_register_region (struct gendisk *disk)
 
 EXPORT_SYMBOL_GPL (ide_register_region)
 
void ide_unregister_region (struct gendisk *disk)
 
 EXPORT_SYMBOL_GPL (ide_unregister_region)
 
void ide_init_disk (struct gendisk *disk, ide_drive_t *drive)
 
 EXPORT_SYMBOL_GPL (ide_init_disk)
 
struct ide_hostide_host_alloc (const struct ide_port_info *d, struct ide_hw **hws, unsigned int n_ports)
 
 EXPORT_SYMBOL_GPL (ide_host_alloc)
 
int ide_host_register (struct ide_host *host, const struct ide_port_info *d, struct ide_hw **hws)
 
 EXPORT_SYMBOL_GPL (ide_host_register)
 
int ide_host_add (const struct ide_port_info *d, struct ide_hw **hws, unsigned int n_ports, struct ide_host **hostp)
 
 EXPORT_SYMBOL_GPL (ide_host_add)
 
void ide_port_unregister_devices (ide_hwif_t *hwif)
 
 EXPORT_SYMBOL_GPL (ide_port_unregister_devices)
 
void ide_host_free (struct ide_host *host)
 
 EXPORT_SYMBOL_GPL (ide_host_free)
 
void ide_host_remove (struct ide_host *host)
 
 EXPORT_SYMBOL_GPL (ide_host_remove)
 
void ide_port_scan (ide_hwif_t *hwif)
 
 EXPORT_SYMBOL_GPL (ide_port_scan)
 

Function Documentation

EXPORT_SYMBOL_GPL ( ide_undecoded_slave  )
EXPORT_SYMBOL_GPL ( ide_register_region  )
EXPORT_SYMBOL_GPL ( ide_unregister_region  )
EXPORT_SYMBOL_GPL ( ide_init_disk  )
EXPORT_SYMBOL_GPL ( ide_host_alloc  )
EXPORT_SYMBOL_GPL ( ide_host_register  )
EXPORT_SYMBOL_GPL ( ide_host_add  )
EXPORT_SYMBOL_GPL ( ide_port_unregister_devices  )
EXPORT_SYMBOL_GPL ( ide_host_free  )
EXPORT_SYMBOL_GPL ( ide_host_remove  )
EXPORT_SYMBOL_GPL ( ide_port_scan  )
int ide_busy_sleep ( ide_drive_t drive,
unsigned long  timeout,
int  altstatus 
)

Definition at line 330 of file ide-probe.c.

int ide_dev_read_id ( ide_drive_t drive,
u8  cmd,
u16 id,
int  irq_ctx 
)

ide_dev_read_id - send ATA/ATAPI IDENTIFY command : drive to identify : command to use : buffer for IDENTIFY data : flag set when called from the IRQ context

Sends an ATA(PI) IDENTIFY request to a drive and waits for a response.

Returns: 0 device was identified 1 device timed-out (no response to identify request) 2 device aborted the command (refused to identify itself)

Definition at line 250 of file ide-probe.c.

int ide_host_add ( const struct ide_port_info d,
struct ide_hw **  hws,
unsigned int  n_ports,
struct ide_host **  hostp 
)

Definition at line 1464 of file ide-probe.c.

struct ide_host* ide_host_alloc ( const struct ide_port_info d,
struct ide_hw **  hws,
unsigned int  n_ports 
)
read

Definition at line 1280 of file ide-probe.c.

void ide_host_free ( struct ide_host host)

Definition at line 1554 of file ide-probe.c.

int ide_host_register ( struct ide_host host,
const struct ide_port_info d,
struct ide_hw **  hws 
)

Definition at line 1368 of file ide-probe.c.

void ide_host_remove ( struct ide_host host)

Definition at line 1568 of file ide-probe.c.

void ide_init_disk ( struct gendisk *  disk,
ide_drive_t drive 
)

Definition at line 935 of file ide-probe.c.

void ide_port_scan ( ide_hwif_t hwif)

Definition at line 1582 of file ide-probe.c.

void ide_port_unregister_devices ( ide_hwif_t hwif)

Definition at line 1498 of file ide-probe.c.

void ide_register_region ( struct gendisk *  disk)

Definition at line 919 of file ide-probe.c.

void ide_undecoded_slave ( ide_drive_t dev1)

ide_undecoded_slave - look for bad CF adapters : slave device

Analyse the drives on the interface and attempt to decide if we have the same drive viewed twice. This occurs with crap CF adapters and PCMCIA sometimes.

Definition at line 649 of file ide-probe.c.

void ide_unregister_region ( struct gendisk *  disk)

Definition at line 927 of file ide-probe.c.