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)
 
#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)   inb_p(port)
 
#define fd_outb(value, port)   outb_p(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
 
#define FLOPPY1_TYPE
 
#define N_FDC   2
 
#define N_DRIVE   8
 
#define EXTRA_FLOPPY_PARAMS
 

Macro Definition Documentation

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

Definition at line 23 of file floppy.h.

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

Definition at line 27 of file floppy.h.

#define CSW   fd_routine[can_use_virtual_dma & 1]

Definition at line 31 of file floppy.h.

#define EXTRA_FLOPPY_PARAMS

Definition at line 279 of file floppy.h.

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

Definition at line 192 of file floppy.h.

#define fd_disable_irq (   void)    disable_irq(FLOPPY_IRQ)

Definition at line 40 of file floppy.h.

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

Definition at line 43 of file floppy.h.

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

Definition at line 176 of file floppy.h.

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

Definition at line 44 of file floppy.h.

#define fd_enable_irq (   void)    enable_irq(FLOPPY_IRQ)

Definition at line 39 of file floppy.h.

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

Definition at line 38 of file floppy.h.

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

Definition at line 41 of file floppy.h.

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

Definition at line 42 of file floppy.h.

#define fd_inb (   port)    inb_p(port)

Definition at line 34 of file floppy.h.

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

Definition at line 35 of file floppy.h.

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

Definition at line 37 of file floppy.h.

#define FLOPPY0_TYPE
Value:
({ \
unsigned long flags; \
unsigned char val; \
spin_lock_irqsave(&rtc_lock, flags); \
val = (CMOS_READ(0x10) >> 4) & 15; \
spin_unlock_irqrestore(&rtc_lock, flags); \
val; \
})

Definition at line 256 of file floppy.h.

#define FLOPPY1_TYPE
Value:
({ \
unsigned long flags; \
unsigned char val; \
spin_lock_irqsave(&rtc_lock, flags); \
val = CMOS_READ(0x10) & 15; \
spin_unlock_irqrestore(&rtc_lock, flags); \
val; \
})

Definition at line 266 of file floppy.h.

#define FLOPPY_CAN_FALLBACK_ON_NODMA

Definition at line 46 of file floppy.h.

#define N_DRIVE   8

Definition at line 277 of file floppy.h.

#define N_FDC   2

Definition at line 276 of file floppy.h.

#define nodma_mem_alloc (   size)    vdma_mem_alloc(size)

Definition at line 166 of file floppy.h.

#define SW   fd_routine[use_virtual_dma & 1]

Definition at line 30 of file floppy.h.