Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros
amifdreg.h File Reference

Go to the source code of this file.

Macros

#define DSKRDY   (0x1<<5) /* disk ready when low */
 
#define DSKTRACK0   (0x1<<4) /* head at track zero when low */
 
#define DSKPROT   (0x1<<3) /* disk protected when low */
 
#define DSKCHANGE   (0x1<<2) /* low when disk removed */
 
#define DSKMOTOR   (0x1<<7) /* motor on when low */
 
#define DSKSEL3   (0x1<<6) /* select drive 3 when low */
 
#define DSKSEL2   (0x1<<5) /* select drive 2 when low */
 
#define DSKSEL1   (0x1<<4) /* select drive 1 when low */
 
#define DSKSEL0   (0x1<<3) /* select drive 0 when low */
 
#define DSKSIDE   (0x1<<2) /* side selection: 0 = upper, 1 = lower */
 
#define DSKDIREC   (0x1<<1) /* step direction: 0=in, 1=out (to trk 0) */
 
#define DSKSTEP   (0x1) /* pulse low to step head 1 track */
 
#define DSKBYT   (1<<15) /* register contains valid byte when set */
 
#define DMAON   (1<<14) /* disk DMA enabled */
 
#define DISKWRITE   (1<<13) /* disk write bit in DSKLEN enabled */
 
#define WORDEQUAL   (1<<12) /* DSKSYNC register match when true */
 
#define ADK_SETCLR   (1<<15) /* control bit */
 
#define ADK_PRECOMP1   (1<<14) /* precompensation selection */
 
#define ADK_PRECOMP0   (1<<13) /* 00=none, 01=140ns, 10=280ns, 11=500ns */
 
#define ADK_MFMPREC   (1<<12) /* 0=GCR precomp., 1=MFM precomp. */
 
#define ADK_WORDSYNC   (1<<10) /* enable DSKSYNC auto DMA */
 
#define ADK_MSBSYNC   (1<<9) /* when 1, enable sync on MSbit (for GCR) */
 
#define ADK_FAST   (1<<8) /* bit cell: 0=2us (GCR), 1=1us (MFM) */
 
#define DSKLEN_DMAEN   (1<<15)
 
#define DSKLEN_WRITE   (1<<14)
 
#define DSKINDEX   (0x1<<4) /* DSKINDEX bit */
 
#define MFM_SYNC   0x4489 /* standard MFM sync value */
 
#define FD_RECALIBRATE   0x07 /* move to track 0 */
 
#define FD_SEEK   0x0F /* seek track */
 
#define FD_READ   0xE6 /* read with MT, MFM, SKip deleted */
 
#define FD_WRITE   0xC5 /* write with MT, MFM */
 
#define FD_SENSEI   0x08 /* Sense Interrupt Status */
 
#define FD_SPECIFY   0x03 /* specify HUT etc */
 
#define FD_FORMAT   0x4D /* format one track */
 
#define FD_VERSION   0x10 /* get version code */
 
#define FD_CONFIGURE   0x13 /* configure FIFO operation */
 
#define FD_PERPENDICULAR   0x12 /* perpendicular r/w mode */
 

Macro Definition Documentation

#define ADK_FAST   (1<<8) /* bit cell: 0=2us (GCR), 1=1us (MFM) */

Definition at line 48 of file amifdreg.h.

#define ADK_MFMPREC   (1<<12) /* 0=GCR precomp., 1=MFM precomp. */

Definition at line 45 of file amifdreg.h.

#define ADK_MSBSYNC   (1<<9) /* when 1, enable sync on MSbit (for GCR) */

Definition at line 47 of file amifdreg.h.

#define ADK_PRECOMP0   (1<<13) /* 00=none, 01=140ns, 10=280ns, 11=500ns */

Definition at line 44 of file amifdreg.h.

#define ADK_PRECOMP1   (1<<14) /* precompensation selection */

Definition at line 43 of file amifdreg.h.

#define ADK_SETCLR   (1<<15) /* control bit */

Definition at line 41 of file amifdreg.h.

#define ADK_WORDSYNC   (1<<10) /* enable DSKSYNC auto DMA */

Definition at line 46 of file amifdreg.h.

#define DISKWRITE   (1<<13) /* disk write bit in DSKLEN enabled */

Definition at line 32 of file amifdreg.h.

#define DMAON   (1<<14) /* disk DMA enabled */

Definition at line 31 of file amifdreg.h.

#define DSKBYT   (1<<15) /* register contains valid byte when set */

Definition at line 30 of file amifdreg.h.

#define DSKCHANGE   (0x1<<2) /* low when disk removed */

Definition at line 11 of file amifdreg.h.

#define DSKDIREC   (0x1<<1) /* step direction: 0=in, 1=out (to trk 0) */

Definition at line 23 of file amifdreg.h.

#define DSKINDEX   (0x1<<4) /* DSKINDEX bit */

Definition at line 61 of file amifdreg.h.

#define DSKLEN_DMAEN   (1<<15)

Definition at line 54 of file amifdreg.h.

#define DSKLEN_WRITE   (1<<14)

Definition at line 55 of file amifdreg.h.

#define DSKMOTOR   (0x1<<7) /* motor on when low */

Definition at line 17 of file amifdreg.h.

#define DSKPROT   (0x1<<3) /* disk protected when low */

Definition at line 10 of file amifdreg.h.

#define DSKRDY   (0x1<<5) /* disk ready when low */

Definition at line 8 of file amifdreg.h.

#define DSKSEL0   (0x1<<3) /* select drive 0 when low */

Definition at line 21 of file amifdreg.h.

#define DSKSEL1   (0x1<<4) /* select drive 1 when low */

Definition at line 20 of file amifdreg.h.

#define DSKSEL2   (0x1<<5) /* select drive 2 when low */

Definition at line 19 of file amifdreg.h.

#define DSKSEL3   (0x1<<6) /* select drive 3 when low */

Definition at line 18 of file amifdreg.h.

#define DSKSIDE   (0x1<<2) /* side selection: 0 = upper, 1 = lower */

Definition at line 22 of file amifdreg.h.

#define DSKSTEP   (0x1) /* pulse low to step head 1 track */

Definition at line 24 of file amifdreg.h.

#define DSKTRACK0   (0x1<<4) /* head at track zero when low */

Definition at line 9 of file amifdreg.h.

#define FD_CONFIGURE   0x13 /* configure FIFO operation */

Definition at line 78 of file amifdreg.h.

#define FD_FORMAT   0x4D /* format one track */

Definition at line 76 of file amifdreg.h.

#define FD_PERPENDICULAR   0x12 /* perpendicular r/w mode */

Definition at line 79 of file amifdreg.h.

#define FD_READ   0xE6 /* read with MT, MFM, SKip deleted */

Definition at line 72 of file amifdreg.h.

#define FD_RECALIBRATE   0x07 /* move to track 0 */

Definition at line 70 of file amifdreg.h.

#define FD_SEEK   0x0F /* seek track */

Definition at line 71 of file amifdreg.h.

#define FD_SENSEI   0x08 /* Sense Interrupt Status */

Definition at line 74 of file amifdreg.h.

#define FD_SPECIFY   0x03 /* specify HUT etc */

Definition at line 75 of file amifdreg.h.

#define FD_VERSION   0x10 /* get version code */

Definition at line 77 of file amifdreg.h.

#define FD_WRITE   0xC5 /* write with MT, MFM */

Definition at line 73 of file amifdreg.h.

#define MFM_SYNC   0x4489 /* standard MFM sync value */

Definition at line 67 of file amifdreg.h.

#define WORDEQUAL   (1<<12) /* DSKSYNC register match when true */

Definition at line 33 of file amifdreg.h.