linux/arch/x86/include/asm/floppy.h

/*
 * Architecture specific parts of the Floppy driver
 *
 * This file is subject to the terms and conditions of the GNU General Public
 * License.  See the file "COPYING" in the main directory of this archive
 * for more details.
 *
 * Copyright (C) 1995
 */
#ifndef _ASM_X86_FLOPPY_H
#define _ASM_X86_FLOPPY_H

#include <linux/vmalloc.h>

/*
 * The DMA channel used by the floppy controller cannot access data at
 * addresses >= 16MB
 *
 * Went back to the 1MB limit, as some people had problems with the floppy
 * driver otherwise. It doesn't matter much for performance anyway, as most
 * floppy accesses go through the track buffer.
 */
#define _CROSS_64KB(a, s, vdma)

#define CROSS_64KB(a, s)


#define SW
#define CSW


#define fd_inb(base, reg)
#define fd_outb(value, base, reg)

#define fd_request_dma()
#define fd_free_dma()
#define fd_enable_irq()
#define fd_disable_irq()
#define fd_free_irq()
#define fd_get_dma_residue()
#define fd_dma_mem_alloc(size)
#define fd_dma_setup(addr, size, mode, io)

#define FLOPPY_CAN_FALLBACK_ON_NODMA

static int virtual_dma_count;
static int virtual_dma_residue;
static char *virtual_dma_addr;
static int virtual_dma_mode;
static int doing_pdma;

static irqreturn_t floppy_hardint(int irq, void *dev_id)
{}

static void fd_disable_dma(void)
{}

static int vdma_request_dma(unsigned int dmanr, const char *device_id)
{}

static void vdma_nop(unsigned int dummy)
{}


static int vdma_get_dma_residue(unsigned int dummy)
{}


static int fd_request_irq(void)
{}

static unsigned long dma_mem_alloc(unsigned long size)
{}


static unsigned long vdma_mem_alloc(unsigned long size)
{}

#define nodma_mem_alloc(size)

static void _fd_dma_mem_free(unsigned long addr, unsigned long size)
{}

#define fd_dma_mem_free(addr, size)

static void _fd_chose_dma_mode(char *addr, unsigned long size)
{}

#define fd_chose_dma_mode(addr, size)


static int vdma_dma_setup(char *addr, unsigned long size, int mode, int io)
{}

static int hard_dma_setup(char *addr, unsigned long size, int mode, int io)
{}

static struct fd_routine_l {} fd_routine[] =;


static int FDC1 =;
static int FDC2 =;

/*
 * Floppy types are stored in the rtc's CMOS RAM and so rtc_lock
 * is needed to prevent corrupted CMOS RAM in case "insmod floppy"
 * coincides with another rtc CMOS user.		Paul G.
 */
#define FLOPPY0_TYPE

#define FLOPPY1_TYPE

#define N_FDC
#define N_DRIVE

#define EXTRA_FLOPPY_PARAMS

#endif /* _ASM_X86_FLOPPY_H */