Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions | Variables
floppy_64.h File Reference
#include <linux/of.h>
#include <linux/of_device.h>
#include <linux/dma-mapping.h>
#include <asm/auxio.h>
#include <asm/ebus_dma.h>
#include <asm/ns87303.h>

Go to the source code of this file.

Data Structures

struct  sun_flpy_controller
 
struct  sun_floppy_ops
 
struct  sun_pci_dma_op
 

Macros

#define drs_82077   status_82077 /* Digital Rate Select reg. */
 
#define dcr_82077   dir_82077 /* Config Control reg. */
 
#define fd_inb(port)   sun_fdops.fd_inb(port)
 
#define fd_outb(value, port)   sun_fdops.fd_outb(value,port)
 
#define fd_enable_dma()   sun_fdops.fd_enable_dma()
 
#define fd_disable_dma()   sun_fdops.fd_disable_dma()
 
#define fd_request_dma()   (0) /* nothing... */
 
#define fd_free_dma()   /* nothing... */
 
#define fd_clear_dma_ff()   /* nothing... */
 
#define fd_set_dma_mode(mode)   sun_fdops.fd_set_dma_mode(mode)
 
#define fd_set_dma_addr(addr)   sun_fdops.fd_set_dma_addr(addr)
 
#define fd_set_dma_count(count)   sun_fdops.fd_set_dma_count(count)
 
#define get_dma_residue(x)   sun_fdops.get_dma_residue()
 
#define fd_cacheflush(addr, size)   /* nothing... */
 
#define fd_request_irq()   sun_fdops.fd_request_irq()
 
#define fd_free_irq()   sun_fdops.fd_free_irq()
 
#define fd_eject(drive)   sun_fdops.fd_eject(drive)
 
#define FLOPPY0_TYPE   sun_floppy_init()
 
#define FLOPPY1_TYPE   sun_floppy_types[1]
 
#define FDC1   ((unsigned long)sun_fdc)
 
#define N_FDC   1
 
#define N_DRIVE   8
 
#define CROSS_64KB(a, s)   (0)
 
#define DOR   (port + 2)
 
#define MSR   (port + 4)
 
#define FIFO   (port + 5)
 
#define EXTRA_FLOPPY_PARAMS
 
#define claim_dma_lock()
 
#define release_dma_lock(__flags)   spin_unlock_irqrestore(&dma_spin_lock, __flags);
 

Functions

irqreturn_t sparc_floppy_irq (int irq, void *dev_cookie)
 
irqreturn_t floppy_interrupt (int irq, void *dev_id)
 
void sun_pci_fd_dma_callback (struct ebus_dma_info *p, int event, void *cookie)
 

Variables

unsigned long fdc_status
 
unsigned charpdma_vaddr
 
unsigned long pdma_size
 
volatile int doing_pdma = 0
 
charpdma_base = NULL
 
unsigned long pdma_areasize
 

Macro Definition Documentation

#define claim_dma_lock (   void)
Value:
({ unsigned long flags; \
spin_lock_irqsave(&dma_spin_lock, flags); \
flags; \
})

Definition at line 765 of file floppy_64.h.

#define CROSS_64KB (   a,
  s 
)    (0)

Definition at line 98 of file floppy_64.h.

#define dcr_82077   dir_82077 /* Config Control reg. */

Definition at line 40 of file floppy_64.h.

#define DOR   (port + 2)

Definition at line 442 of file floppy_64.h.

#define drs_82077   status_82077 /* Digital Rate Select reg. */

Definition at line 36 of file floppy_64.h.

#define EXTRA_FLOPPY_PARAMS

Definition at line 761 of file floppy_64.h.

#define fd_cacheflush (   addr,
  size 
)    /* nothing... */

Definition at line 75 of file floppy_64.h.

#define fd_clear_dma_ff (   void)    /* nothing... */

Definition at line 70 of file floppy_64.h.

#define fd_disable_dma (   void)    sun_fdops.fd_disable_dma()

Definition at line 67 of file floppy_64.h.

#define fd_eject (   drive)    sun_fdops.fd_eject(drive)

Definition at line 78 of file floppy_64.h.

#define fd_enable_dma (   void)    sun_fdops.fd_enable_dma()

Definition at line 66 of file floppy_64.h.

#define fd_free_dma (   void)    /* nothing... */

Definition at line 69 of file floppy_64.h.

#define fd_free_irq (   void)    sun_fdops.fd_free_irq()

Definition at line 77 of file floppy_64.h.

#define fd_inb (   port)    sun_fdops.fd_inb(port)

Definition at line 64 of file floppy_64.h.

#define fd_outb (   value,
  port 
)    sun_fdops.fd_outb(value,port)

Definition at line 65 of file floppy_64.h.

#define fd_request_dma (   void)    (0) /* nothing... */

Definition at line 68 of file floppy_64.h.

#define fd_request_irq (   void)    sun_fdops.fd_request_irq()

Definition at line 76 of file floppy_64.h.

#define fd_set_dma_addr (   addr)    sun_fdops.fd_set_dma_addr(addr)

Definition at line 72 of file floppy_64.h.

#define fd_set_dma_count (   count)    sun_fdops.fd_set_dma_count(count)

Definition at line 73 of file floppy_64.h.

#define fd_set_dma_mode (   mode)    sun_fdops.fd_set_dma_mode(mode)

Definition at line 71 of file floppy_64.h.

#define FDC1   ((unsigned long)sun_fdc)

Definition at line 92 of file floppy_64.h.

#define FIFO   (port + 5)

Definition at line 444 of file floppy_64.h.

#define FLOPPY0_TYPE   sun_floppy_init()

Definition at line 89 of file floppy_64.h.

#define FLOPPY1_TYPE   sun_floppy_types[1]

Definition at line 90 of file floppy_64.h.

#define get_dma_residue (   x)    sun_fdops.get_dma_residue()

Definition at line 74 of file floppy_64.h.

#define MSR   (port + 4)

Definition at line 443 of file floppy_64.h.

#define N_DRIVE   8

Definition at line 95 of file floppy_64.h.

#define N_FDC   1

Definition at line 94 of file floppy_64.h.

#define release_dma_lock (   __flags)    spin_unlock_irqrestore(&dma_spin_lock, __flags);

Definition at line 771 of file floppy_64.h.

Function Documentation

irqreturn_t floppy_interrupt ( int  irq,
void dev_id 
)

Definition at line 1658 of file floppy.c.

irqreturn_t sparc_floppy_irq ( int  irq,
void dev_cookie 
)

Definition at line 198 of file floppy_64.h.

void sun_pci_fd_dma_callback ( struct ebus_dma_info p,
int  event,
void cookie 
)

Definition at line 432 of file floppy_64.h.

Variable Documentation

volatile int doing_pdma = 0

Definition at line 154 of file floppy_64.h.

unsigned long fdc_status

Definition at line 45 of file floppy_64.h.

unsigned long pdma_areasize

Definition at line 158 of file floppy_64.h.

char* pdma_base = NULL

Definition at line 157 of file floppy_64.h.

unsigned long pdma_size

Definition at line 153 of file floppy_64.h.

unsigned char* pdma_vaddr

Definition at line 152 of file floppy_64.h.