Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros
floppy.h File Reference
#include <linux/vmalloc.h>

Go to the source code of this file.

Data Structures

struct  fd_routine_l
 

Macros

#define _CROSS_64KB(a, s, vdma)   (!vdma && ((unsigned long)(a)/K_64 != ((unsigned long)(a) + (s) - 1) / K_64))
 
#define CROSS_64KB(a, s)   _CROSS_64KB(a,s,use_virtual_dma & 1)
 
#define SW   fd_routine[use_virtual_dma&1]
 
#define CSW   fd_routine[can_use_virtual_dma & 1]
 
#define fd_inb(port)   readb(port)
 
#define fd_outb(value, port)   writeb(value, port)
 
#define fd_request_dma()   CSW._request_dma(FLOPPY_DMA,"floppy")
 
#define fd_free_dma()   CSW._free_dma(FLOPPY_DMA)
 
#define fd_enable_irq()   enable_irq(FLOPPY_IRQ)
 
#define fd_disable_irq()   disable_irq(FLOPPY_IRQ)
 
#define fd_free_irq()   free_irq(FLOPPY_IRQ, NULL)
 
#define fd_get_dma_residue()   SW._get_dma_residue(FLOPPY_DMA)
 
#define fd_dma_mem_alloc(size)   SW._dma_mem_alloc(size)
 
#define fd_dma_setup(addr, size, mode, io)   SW._dma_setup(addr, size, mode, io)
 
#define FLOPPY_CAN_FALLBACK_ON_NODMA
 
#define nodma_mem_alloc(size)   vdma_mem_alloc(size)
 
#define fd_dma_mem_free(addr, size)   _fd_dma_mem_free(addr, size)
 
#define fd_chose_dma_mode(addr, size)   _fd_chose_dma_mode(addr, size)
 
#define FLOPPY0_TYPE   0
 
#define FLOPPY1_TYPE   0
 
#define N_FDC   1
 
#define N_DRIVE   8
 
#define EXTRA_FLOPPY_PARAMS
 

Macro Definition Documentation

#define _CROSS_64KB (   a,
  s,
  vdma 
)    (!vdma && ((unsigned long)(a)/K_64 != ((unsigned long)(a) + (s) - 1) / K_64))

Definition at line 35 of file floppy.h.

#define CROSS_64KB (   a,
  s 
)    _CROSS_64KB(a,s,use_virtual_dma & 1)

Definition at line 38 of file floppy.h.

#define CSW   fd_routine[can_use_virtual_dma & 1]

Definition at line 42 of file floppy.h.

#define EXTRA_FLOPPY_PARAMS

Definition at line 269 of file floppy.h.

#define fd_chose_dma_mode (   addr,
  size 
)    _fd_chose_dma_mode(addr, size)

Definition at line 204 of file floppy.h.

#define fd_disable_irq (   void)    disable_irq(FLOPPY_IRQ)

Definition at line 51 of file floppy.h.

#define fd_dma_mem_alloc (   size)    SW._dma_mem_alloc(size)

Definition at line 54 of file floppy.h.

#define fd_dma_mem_free (   addr,
  size 
)    _fd_dma_mem_free(addr, size)

Definition at line 188 of file floppy.h.

#define fd_dma_setup (   addr,
  size,
  mode,
  io 
)    SW._dma_setup(addr, size, mode, io)

Definition at line 55 of file floppy.h.

#define fd_enable_irq (   void)    enable_irq(FLOPPY_IRQ)

Definition at line 50 of file floppy.h.

#define fd_free_dma (   void)    CSW._free_dma(FLOPPY_DMA)

Definition at line 49 of file floppy.h.

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

Definition at line 52 of file floppy.h.

#define fd_get_dma_residue (   void)    SW._get_dma_residue(FLOPPY_DMA)

Definition at line 53 of file floppy.h.

#define fd_inb (   port)    readb(port)

Definition at line 45 of file floppy.h.

#define fd_outb (   value,
  port 
)    writeb(value, port)

Definition at line 46 of file floppy.h.

#define fd_request_dma (   void)    CSW._request_dma(FLOPPY_DMA,"floppy")

Definition at line 48 of file floppy.h.

#define FLOPPY0_TYPE   0

Definition at line 263 of file floppy.h.

#define FLOPPY1_TYPE   0

Definition at line 264 of file floppy.h.

#define FLOPPY_CAN_FALLBACK_ON_NODMA

Definition at line 57 of file floppy.h.

#define N_DRIVE   8

Definition at line 267 of file floppy.h.

#define N_FDC   1

Definition at line 266 of file floppy.h.

#define nodma_mem_alloc (   size)    vdma_mem_alloc(size)

Definition at line 178 of file floppy.h.

#define SW   fd_routine[use_virtual_dma&1]

Definition at line 41 of file floppy.h.