Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions | Variables
ide-floppy.c File Reference
#include <linux/types.h>
#include <linux/string.h>
#include <linux/kernel.h>
#include <linux/delay.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/cdrom.h>
#include <linux/ide.h>
#include <linux/hdreg.h>
#include <linux/bitops.h>
#include <linux/mutex.h>
#include <linux/scatterlist.h>
#include <scsi/scsi_ioctl.h>
#include <asm/byteorder.h>
#include <linux/uaccess.h>
#include <linux/io.h>
#include <asm/unaligned.h>
#include "ide-floppy.h"

Go to the source code of this file.

Macros

#define IDEFLOPPY_MAX_PC_RETRIES   3
 
#define CAPACITY_INVALID   0x00
 
#define CAPACITY_UNFORMATTED   0x01
 
#define CAPACITY_CURRENT   0x02
 
#define CAPACITY_NO_CARTRIDGE   0x03
 
#define IDEFLOPPY_PC_DELAY   (HZ/20) /* default delay for ZIP 100 (50ms) */
 

Functions

void ide_floppy_create_read_capacity_cmd (struct ide_atapi_pc *pc)
 
void ide_floppy_create_mode_sense_cmd (struct ide_atapi_pc *pc, u8 page_code)
 

Variables

struct ide_disk_ops ide_atapi_disk_ops
 

Macro Definition Documentation

#define CAPACITY_CURRENT   0x02

Definition at line 53 of file ide-floppy.c.

#define CAPACITY_INVALID   0x00

Definition at line 51 of file ide-floppy.c.

#define CAPACITY_NO_CARTRIDGE   0x03

Definition at line 54 of file ide-floppy.c.

#define CAPACITY_UNFORMATTED   0x01

Definition at line 52 of file ide-floppy.c.

#define IDEFLOPPY_MAX_PC_RETRIES   3

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

#define IDEFLOPPY_PC_DELAY   (HZ/20) /* default delay for ZIP 100 (50ms) */

Definition at line 60 of file ide-floppy.c.

Function Documentation

void ide_floppy_create_mode_sense_cmd ( struct ide_atapi_pc pc,
u8  page_code 
)

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

void ide_floppy_create_read_capacity_cmd ( struct ide_atapi_pc pc)

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

Variable Documentation

struct ide_disk_ops ide_atapi_disk_ops
Initial value:
= {
.get_capacity = ide_floppy_get_capacity,
.setup = ide_floppy_setup,
.flush = ide_floppy_flush,
.init_media = ide_floppy_init_media,
.set_doorlock = ide_set_media_lock,
.do_request = ide_floppy_do_request,
.ioctl = ide_floppy_ioctl,
}

Definition at line 533 of file ide-floppy.c.