⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 floppy-no.c

📁 Linux内核源代码 为压缩文件 是<<Linux内核>>一书中的源代码
💻 C
字号:
/* $Id: floppy-no.c,v 1.1 1998/05/07 18:38:32 ralf Exp $ * * 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. * * Dummy file for machines without standard floppy drives. * * Copyright (C) 1998 by Ralf Baechle */#include <linux/init.h>#include <linux/kernel.h>#include <linux/mm.h>#include <asm/floppy.h>/* * How to access the FDC's registers. */static void no_fd_dummy(void){	panic("no_fd_dummy called - shouldn't happen");}static unsigned long no_fd_getfdaddr1(void){	return (unsigned long)-1;	/* No FDC nowhere ... */}static unsigned long no_fd_drive_type(unsigned long n){	return 0;}struct fd_ops no_fd_ops = {	/*	 * How to access the floppy controller's ports	 */	(void *) no_fd_dummy,	(void *) no_fd_dummy,	/*	 * How to access the floppy DMA functions.	 */	(void *) no_fd_dummy,	(void *) no_fd_dummy,	(void *) no_fd_dummy,	(void *) no_fd_dummy,	(void *) no_fd_dummy,	(void *) no_fd_dummy,	(void *) no_fd_dummy,	(void *) no_fd_dummy,	(void *) no_fd_dummy,	(void *) no_fd_dummy,	(void *) no_fd_dummy,	no_fd_getfdaddr1,	(void *) no_fd_dummy,	(void *) no_fd_dummy,	no_fd_drive_type};

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -