Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
ide-atapi.c File Reference
#include <linux/kernel.h>
#include <linux/cdrom.h>
#include <linux/delay.h>
#include <linux/export.h>
#include <linux/ide.h>
#include <linux/scatterlist.h>
#include <linux/gfp.h>
#include <scsi/scsi.h>

Go to the source code of this file.

Macros

#define DRV_NAME   "ide-atapi"
 
#define PFX   DRV_NAME ": "
 
#define debug_log(fmt, args...)   do {} while (0)
 
#define ATAPI_MIN_CDB_BYTES   12
 

Functions

int ide_check_atapi_device (ide_drive_t *drive, const char *s)
 
 EXPORT_SYMBOL_GPL (ide_check_atapi_device)
 
void ide_init_pc (struct ide_atapi_pc *pc)
 
 EXPORT_SYMBOL_GPL (ide_init_pc)
 
int ide_queue_pc_tail (ide_drive_t *drive, struct gendisk *disk, struct ide_atapi_pc *pc, void *buf, unsigned int bufflen)
 
 EXPORT_SYMBOL_GPL (ide_queue_pc_tail)
 
int ide_do_test_unit_ready (ide_drive_t *drive, struct gendisk *disk)
 
 EXPORT_SYMBOL_GPL (ide_do_test_unit_ready)
 
int ide_do_start_stop (ide_drive_t *drive, struct gendisk *disk, int start)
 
 EXPORT_SYMBOL_GPL (ide_do_start_stop)
 
int ide_set_media_lock (ide_drive_t *drive, struct gendisk *disk, int on)
 
 EXPORT_SYMBOL_GPL (ide_set_media_lock)
 
void ide_create_request_sense_cmd (ide_drive_t *drive, struct ide_atapi_pc *pc)
 
 EXPORT_SYMBOL_GPL (ide_create_request_sense_cmd)
 
void ide_prep_sense (ide_drive_t *drive, struct request *rq)
 
 EXPORT_SYMBOL_GPL (ide_prep_sense)
 
int ide_queue_sense_rq (ide_drive_t *drive, void *special)
 
 EXPORT_SYMBOL_GPL (ide_queue_sense_rq)
 
void ide_retry_pc (ide_drive_t *drive)
 
 EXPORT_SYMBOL_GPL (ide_retry_pc)
 
int ide_cd_expiry (ide_drive_t *drive)
 
 EXPORT_SYMBOL_GPL (ide_cd_expiry)
 
int ide_cd_get_xferlen (struct request *rq)
 
 EXPORT_SYMBOL_GPL (ide_cd_get_xferlen)
 
void ide_read_bcount_and_ireason (ide_drive_t *drive, u16 *bcount, u8 *ireason)
 
 EXPORT_SYMBOL_GPL (ide_read_bcount_and_ireason)
 
int ide_check_ireason (ide_drive_t *drive, struct request *rq, int len, int ireason, int rw)
 
 EXPORT_SYMBOL_GPL (ide_check_ireason)
 
ide_startstop_t ide_issue_pc (ide_drive_t *drive, struct ide_cmd *cmd)
 
 EXPORT_SYMBOL_GPL (ide_issue_pc)
 

Macro Definition Documentation

#define ATAPI_MIN_CDB_BYTES   12

Definition at line 25 of file ide-atapi.c.

#define debug_log (   fmt,
  args... 
)    do {} while (0)

Definition at line 22 of file ide-atapi.c.

#define DRV_NAME   "ide-atapi"

Definition at line 15 of file ide-atapi.c.

#define PFX   DRV_NAME ": "

Definition at line 16 of file ide-atapi.c.

Function Documentation

EXPORT_SYMBOL_GPL ( ide_check_atapi_device  )
EXPORT_SYMBOL_GPL ( ide_init_pc  )
EXPORT_SYMBOL_GPL ( ide_queue_pc_tail  )
EXPORT_SYMBOL_GPL ( ide_do_test_unit_ready  )
EXPORT_SYMBOL_GPL ( ide_do_start_stop  )
EXPORT_SYMBOL_GPL ( ide_set_media_lock  )
EXPORT_SYMBOL_GPL ( ide_create_request_sense_cmd  )
EXPORT_SYMBOL_GPL ( ide_prep_sense  )
EXPORT_SYMBOL_GPL ( ide_queue_sense_rq  )
EXPORT_SYMBOL_GPL ( ide_retry_pc  )
EXPORT_SYMBOL_GPL ( ide_cd_expiry  )
EXPORT_SYMBOL_GPL ( ide_cd_get_xferlen  )
EXPORT_SYMBOL_GPL ( ide_read_bcount_and_ireason  )
EXPORT_SYMBOL_GPL ( ide_check_ireason  )
EXPORT_SYMBOL_GPL ( ide_issue_pc  )
int ide_cd_expiry ( ide_drive_t drive)

Definition at line 276 of file ide-atapi.c.

int ide_cd_get_xferlen ( struct request rq)

Definition at line 308 of file ide-atapi.c.

int ide_check_atapi_device ( ide_drive_t drive,
const char s 
)

Definition at line 36 of file ide-atapi.c.

int ide_check_ireason ( ide_drive_t drive,
struct request rq,
int  len,
int  ireason,
int  rw 
)

Definition at line 343 of file ide-atapi.c.

void ide_create_request_sense_cmd ( ide_drive_t drive,
struct ide_atapi_pc pc 
)

Definition at line 157 of file ide-atapi.c.

int ide_do_start_stop ( ide_drive_t drive,
struct gendisk *  disk,
int  start 
)

Definition at line 127 of file ide-atapi.c.

int ide_do_test_unit_ready ( ide_drive_t drive,
struct gendisk *  disk 
)

Definition at line 116 of file ide-atapi.c.

void ide_init_pc ( struct ide_atapi_pc pc)

Definition at line 79 of file ide-atapi.c.

ide_startstop_t ide_issue_pc ( ide_drive_t drive,
struct ide_cmd cmd 
)

Definition at line 669 of file ide-atapi.c.

void ide_prep_sense ( ide_drive_t drive,
struct request rq 
)

Definition at line 171 of file ide-atapi.c.

int ide_queue_pc_tail ( ide_drive_t drive,
struct gendisk *  disk,
struct ide_atapi_pc pc,
void buf,
unsigned int  bufflen 
)

Definition at line 89 of file ide-atapi.c.

int ide_queue_sense_rq ( ide_drive_t drive,
void special 
)

Definition at line 223 of file ide-atapi.c.

void ide_read_bcount_and_ireason ( ide_drive_t drive,
u16 bcount,
u8 ireason 
)

Definition at line 323 of file ide-atapi.c.

void ide_retry_pc ( ide_drive_t drive)

Definition at line 247 of file ide-atapi.c.

int ide_set_media_lock ( ide_drive_t drive,
struct gendisk *  disk,
int  on 
)

Definition at line 142 of file ide-atapi.c.