Linux Kernel
3.7.1
|
#include <linux/interrupt.h>
Go to the source code of this file.
Data Structures | |
struct | XD_INFO |
struct | XD_SIGNATURE |
Macros | |
#define | XD_DATA (xd_iobase + 0x00) /* data RW register */ |
#define | XD_RESET (xd_iobase + 0x01) /* reset WO register */ |
#define | XD_STATUS (xd_iobase + 0x01) /* status RO register */ |
#define | XD_SELECT (xd_iobase + 0x02) /* select WO register */ |
#define | XD_JUMPER (xd_iobase + 0x02) /* jumper RO register */ |
#define | XD_CONTROL (xd_iobase + 0x03) /* DMAE/INTE WO register */ |
#define | XD_RESERVED (xd_iobase + 0x03) /* reserved */ |
#define | CMD_TESTREADY 0x00 /* test drive ready */ |
#define | CMD_RECALIBRATE 0x01 /* recalibrate drive */ |
#define | CMD_SENSE 0x03 /* request sense */ |
#define | CMD_FORMATDRV 0x04 /* format drive */ |
#define | CMD_VERIFY 0x05 /* read verify */ |
#define | CMD_FORMATTRK 0x06 /* format track */ |
#define | CMD_FORMATBAD 0x07 /* format bad track */ |
#define | CMD_READ 0x08 /* read */ |
#define | CMD_WRITE 0x0A /* write */ |
#define | CMD_SEEK 0x0B /* seek */ |
#define | CMD_DTCSETPARAM 0x0C /* set drive parameters (DTC 5150X & CX only?) */ |
#define | CMD_DTCGETECC 0x0D /* get ecc error length (DTC 5150X only?) */ |
#define | CMD_DTCREADBUF 0x0E /* read sector buffer (DTC 5150X only?) */ |
#define | CMD_DTCWRITEBUF 0x0F /* write sector buffer (DTC 5150X only?) */ |
#define | CMD_DTCREMAPTRK 0x11 /* assign alternate track (DTC 5150X only?) */ |
#define | CMD_DTCGETPARAM 0xFB /* get drive parameters (DTC 5150X only?) */ |
#define | CMD_DTCSETSTEP 0xFC /* set step rate (DTC 5150X only?) */ |
#define | CMD_DTCSETGEOM 0xFE /* set geometry data (DTC 5150X only?) */ |
#define | CMD_DTCGETGEOM 0xFF /* get geometry data (DTC 5150X only?) */ |
#define | CMD_ST11GETGEOM 0xF8 /* get geometry data (Seagate ST11R/M only?) */ |
#define | CMD_WDSETPARAM 0x0C /* set drive parameters (WD 1004A27X only?) */ |
#define | CMD_XBSETPARAM 0x0C /* set drive parameters (XEBEC only?) */ |
#define | CSB_ERROR 0x02 /* error */ |
#define | CSB_LUN 0x20 /* logical Unit Number */ |
#define | STAT_READY 0x01 /* controller is ready */ |
#define | STAT_INPUT 0x02 /* data flowing from controller to host */ |
#define | STAT_COMMAND 0x04 /* controller in command phase */ |
#define | STAT_SELECT 0x08 /* controller is selected */ |
#define | STAT_REQUEST 0x10 /* controller requesting data */ |
#define | STAT_INTERRUPT 0x20 /* controller requesting interrupt */ |
#define | PIO_MODE 0x00 /* control bits to set for PIO */ |
#define | DMA_MODE 0x03 /* control bits to set for DMA & interrupt */ |
#define | XD_MAXDRIVES 2 /* maximum 2 drives */ |
#define | XD_TIMEOUT HZ /* 1 second timeout */ |
#define | XD_RETRIES 4 /* maximum 4 retries */ |
#define CMD_DTCGETECC 0x0D /* get ecc error length (DTC 5150X only?) */ |
#define CMD_DTCGETGEOM 0xFF /* get geometry data (DTC 5150X only?) */ |
#define CMD_DTCGETPARAM 0xFB /* get drive parameters (DTC 5150X only?) */ |
#define CMD_DTCREADBUF 0x0E /* read sector buffer (DTC 5150X only?) */ |
#define CMD_DTCREMAPTRK 0x11 /* assign alternate track (DTC 5150X only?) */ |
#define CMD_DTCSETGEOM 0xFE /* set geometry data (DTC 5150X only?) */ |
#define CMD_DTCSETPARAM 0x0C /* set drive parameters (DTC 5150X & CX only?) */ |
#define CMD_DTCSETSTEP 0xFC /* set step rate (DTC 5150X only?) */ |
#define CMD_DTCWRITEBUF 0x0F /* write sector buffer (DTC 5150X only?) */ |
#define CMD_ST11GETGEOM 0xF8 /* get geometry data (Seagate ST11R/M only?) */ |
#define CMD_WDSETPARAM 0x0C /* set drive parameters (WD 1004A27X only?) */ |
#define CMD_XBSETPARAM 0x0C /* set drive parameters (XEBEC only?) */ |
#define DMA_MODE 0x03 /* control bits to set for DMA & interrupt */ |
#define STAT_INPUT 0x02 /* data flowing from controller to host */ |
#define STAT_INTERRUPT 0x20 /* controller requesting interrupt */ |
#define XD_CONTROL (xd_iobase + 0x03) /* DMAE/INTE WO register */ |