1/* 2 * This file is subject to the terms and conditions of the GNU General Public 3 * License. See the file "COPYING" in the main directory of this archive 4 * for more details. 5 * 6 * Dummy file for machines without standard floppy drives. 7 * 8 * Copyright (C) 1998 by Ralf Baechle 9 */ 10#include <linux/init.h> 11#include <linux/kernel.h> 12#include <linux/mm.h> 13#include <asm/floppy.h> 14 15/* 16 * How to access the FDC's registers. 17 */ 18static void no_fd_dummy(void) 19{ 20 panic("no_fd_dummy called - shouldn't happen"); 21} 22 23static unsigned long no_fd_getfdaddr1(void) 24{ 25 return (unsigned long)-1; /* No FDC nowhere ... */ 26} 27 28static unsigned long no_fd_drive_type(unsigned long n) 29{ 30 return 0; 31} 32 33struct fd_ops no_fd_ops = { 34 /* 35 * How to access the floppy controller's ports 36 */ 37 (void *) no_fd_dummy, 38 (void *) no_fd_dummy, 39 /* 40 * How to access the floppy DMA functions. 41 */ 42 (void *) no_fd_dummy, 43 (void *) no_fd_dummy, 44 (void *) no_fd_dummy, 45 (void *) no_fd_dummy, 46 (void *) no_fd_dummy, 47 (void *) no_fd_dummy, 48 (void *) no_fd_dummy, 49 (void *) no_fd_dummy, 50 (void *) no_fd_dummy, 51 (void *) no_fd_dummy, 52 (void *) no_fd_dummy, 53 no_fd_getfdaddr1, 54 (void *) no_fd_dummy, 55 (void *) no_fd_dummy, 56 no_fd_drive_type 57}; 58