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

Go to the source code of this file.

Macros

#define fd_outb(val, port)
 
#define fd_inb(port)   inb((port))
 
#define fd_request_irq()
 
#define fd_free_irq()   free_irq(IRQ_FLOPPYDISK,NULL)
 
#define fd_disable_irq()   disable_irq(IRQ_FLOPPYDISK)
 
#define fd_enable_irq()   enable_irq(IRQ_FLOPPYDISK)
 
#define fd_dma_setup   fd_dma_setup
 
#define fd_request_dma()   request_dma(DMA_FLOPPY,"floppy")
 
#define fd_free_dma()   free_dma(DMA_FLOPPY)
 
#define fd_disable_dma()   disable_dma(DMA_FLOPPY)
 
#define DMA_FLOPPYDISK   DMA_FLOPPY
 
#define fd_setdor(dor)
 
#define FDC1   (0x3f0)
 
#define FLOPPY0_TYPE   4
 
#define FLOPPY1_TYPE   4
 
#define N_FDC   1
 
#define N_DRIVE   4
 
#define CROSS_64KB(a, s)   (0)
 
#define EXTRA_FLOPPY_PARAMS   ,{ "driveswap", &driveswap, NULL, 0, 0 }
 

Macro Definition Documentation

#define CROSS_64KB (   a,
  s 
)    (0)

Definition at line 131 of file floppy.h.

#define DMA_FLOPPYDISK   DMA_FLOPPY

Definition at line 50 of file floppy.h.

#define EXTRA_FLOPPY_PARAMS   ,{ "driveswap", &driveswap, NULL, 0, 0 }

Definition at line 146 of file floppy.h.

#define fd_disable_dma (   void)    disable_dma(DMA_FLOPPY)

Definition at line 47 of file floppy.h.

#define fd_disable_irq (   void)    disable_irq(IRQ_FLOPPYDISK)

Definition at line 30 of file floppy.h.

#define fd_dma_setup   fd_dma_setup

Definition at line 43 of file floppy.h.

#define fd_enable_irq (   void)    enable_irq(IRQ_FLOPPYDISK)

Definition at line 31 of file floppy.h.

#define fd_free_dma (   void)    free_dma(DMA_FLOPPY)

Definition at line 46 of file floppy.h.

#define fd_free_irq (   void)    free_irq(IRQ_FLOPPYDISK,NULL)

Definition at line 29 of file floppy.h.

#define fd_inb (   port)    inb((port))

Definition at line 26 of file floppy.h.

#define fd_outb (   val,
  port 
)
Value:
do { \
if ((port) == FD_DOR) \
fd_setdor((val)); \
outb((val),(port)); \
} while(0)

Definition at line 18 of file floppy.h.

#define fd_request_dma (   void)    request_dma(DMA_FLOPPY,"floppy")

Definition at line 45 of file floppy.h.

#define fd_request_irq (   void)
Value:

Definition at line 27 of file floppy.h.

#define fd_setdor (   dor)
Value:
do { \
int new_dor = (dor); \
if (new_dor & 0xf0) \
new_dor = (new_dor & 0x0c) | floppy_selects[fdc][new_dor & 3]; \
else \
new_dor &= 0x0c; \
outb(new_dor, FD_DOR); \
} while (0)

Definition at line 65 of file floppy.h.

#define FDC1   (0x3f0)

Definition at line 123 of file floppy.h.

#define FLOPPY0_TYPE   4

Definition at line 125 of file floppy.h.

#define FLOPPY1_TYPE   4

Definition at line 126 of file floppy.h.

#define N_DRIVE   4

Definition at line 129 of file floppy.h.

#define N_FDC   1

Definition at line 128 of file floppy.h.