Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros
xd.h File Reference
#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 */
 

Macro Definition Documentation

#define CMD_DTCGETECC   0x0D /* get ecc error length (DTC 5150X only?) */

Definition at line 41 of file xd.h.

#define CMD_DTCGETGEOM   0xFF /* get geometry data (DTC 5150X only?) */

Definition at line 48 of file xd.h.

#define CMD_DTCGETPARAM   0xFB /* get drive parameters (DTC 5150X only?) */

Definition at line 45 of file xd.h.

#define CMD_DTCREADBUF   0x0E /* read sector buffer (DTC 5150X only?) */

Definition at line 42 of file xd.h.

#define CMD_DTCREMAPTRK   0x11 /* assign alternate track (DTC 5150X only?) */

Definition at line 44 of file xd.h.

#define CMD_DTCSETGEOM   0xFE /* set geometry data (DTC 5150X only?) */

Definition at line 47 of file xd.h.

#define CMD_DTCSETPARAM   0x0C /* set drive parameters (DTC 5150X & CX only?) */

Definition at line 40 of file xd.h.

#define CMD_DTCSETSTEP   0xFC /* set step rate (DTC 5150X only?) */

Definition at line 46 of file xd.h.

#define CMD_DTCWRITEBUF   0x0F /* write sector buffer (DTC 5150X only?) */

Definition at line 43 of file xd.h.

#define CMD_FORMATBAD   0x07 /* format bad track */

Definition at line 34 of file xd.h.

#define CMD_FORMATDRV   0x04 /* format drive */

Definition at line 31 of file xd.h.

#define CMD_FORMATTRK   0x06 /* format track */

Definition at line 33 of file xd.h.

#define CMD_READ   0x08 /* read */

Definition at line 35 of file xd.h.

#define CMD_RECALIBRATE   0x01 /* recalibrate drive */

Definition at line 29 of file xd.h.

#define CMD_SEEK   0x0B /* seek */

Definition at line 37 of file xd.h.

#define CMD_SENSE   0x03 /* request sense */

Definition at line 30 of file xd.h.

#define CMD_ST11GETGEOM   0xF8 /* get geometry data (Seagate ST11R/M only?) */

Definition at line 49 of file xd.h.

#define CMD_TESTREADY   0x00 /* test drive ready */

Definition at line 28 of file xd.h.

#define CMD_VERIFY   0x05 /* read verify */

Definition at line 32 of file xd.h.

#define CMD_WDSETPARAM   0x0C /* set drive parameters (WD 1004A27X only?) */

Definition at line 50 of file xd.h.

#define CMD_WRITE   0x0A /* write */

Definition at line 36 of file xd.h.

#define CMD_XBSETPARAM   0x0C /* set drive parameters (XEBEC only?) */

Definition at line 51 of file xd.h.

#define CSB_ERROR   0x02 /* error */

Definition at line 54 of file xd.h.

#define CSB_LUN   0x20 /* logical Unit Number */

Definition at line 55 of file xd.h.

#define DMA_MODE   0x03 /* control bits to set for DMA & interrupt */

Definition at line 67 of file xd.h.

#define PIO_MODE   0x00 /* control bits to set for PIO */

Definition at line 66 of file xd.h.

#define STAT_COMMAND   0x04 /* controller in command phase */

Definition at line 60 of file xd.h.

#define STAT_INPUT   0x02 /* data flowing from controller to host */

Definition at line 59 of file xd.h.

#define STAT_INTERRUPT   0x20 /* controller requesting interrupt */

Definition at line 63 of file xd.h.

#define STAT_READY   0x01 /* controller is ready */

Definition at line 58 of file xd.h.

#define STAT_REQUEST   0x10 /* controller requesting data */

Definition at line 62 of file xd.h.

#define STAT_SELECT   0x08 /* controller is selected */

Definition at line 61 of file xd.h.

#define XD_CONTROL   (xd_iobase + 0x03) /* DMAE/INTE WO register */

Definition at line 24 of file xd.h.

#define XD_DATA   (xd_iobase + 0x00) /* data RW register */

Definition at line 19 of file xd.h.

#define XD_JUMPER   (xd_iobase + 0x02) /* jumper RO register */

Definition at line 23 of file xd.h.

#define XD_MAXDRIVES   2 /* maximum 2 drives */

Definition at line 69 of file xd.h.

#define XD_RESERVED   (xd_iobase + 0x03) /* reserved */

Definition at line 25 of file xd.h.

#define XD_RESET   (xd_iobase + 0x01) /* reset WO register */

Definition at line 20 of file xd.h.

#define XD_RETRIES   4 /* maximum 4 retries */

Definition at line 71 of file xd.h.

#define XD_SELECT   (xd_iobase + 0x02) /* select WO register */

Definition at line 22 of file xd.h.

#define XD_STATUS   (xd_iobase + 0x01) /* status RO register */

Definition at line 21 of file xd.h.

#define XD_TIMEOUT   HZ /* 1 second timeout */

Definition at line 70 of file xd.h.