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

📄 hosts.c

📁 基于组件方式开发操作系统的OSKIT源代码
💻 C
📖 第 1 页 / 共 2 页
字号:
/* *  hosts.c Copyright (C) 1992 Drew Eckhardt *          Copyright (C) 1993, 1994, 1995 Eric Youngdale * *  mid to lowlevel SCSI driver interface *      Initial versions: Drew Eckhardt *      Subsequent revisions: Eric Youngdale * *  <drew@colorado.edu> * *  Jiffies wrap fixes (host->resetting), 3 Dec 1998 Andrea Arcangeli *//* *  This file contains the medium level SCSI *  host interface initialization, as well as the scsi_hosts array of SCSI *  hosts currently present in the system. */#define __NO_VERSION__#include <linux/module.h>#include <linux/config.h>#include <linux/blk.h>#include <linux/kernel.h>#include <linux/string.h>#include <linux/mm.h>#include <linux/proc_fs.h>#include <linux/init.h>#define __KERNEL_SYSCALLS__#include <linux/unistd.h>#include "scsi.h"#ifndef NULL#define NULL 0L#endif#define HOSTS_C#include "hosts.h"#if defined(CONFIG_A4000T_SCSI) || \    defined(CONFIG_WARPENGINE_SCSI) || \    defined(CONFIG_A4091_SCSI) || \    defined (CONFIG_GVP_TURBO_SCSI) || \    defined (CONFIG_BLZ603E)#define AMIGA7XXCONFIG#endif#ifdef AMIGA7XXCONFIG#include "amiga7xx.h"#endif#ifdef CONFIG_MVME16x_SCSI#include "mvme16x.h"#endif#ifdef CONFIG_BVME6000_SCSI#include "bvme6000.h"#endif#ifdef CONFIG_A3000_SCSI#include "a3000.h"#endif#ifdef CONFIG_A2091_SCSI#include "a2091.h"#endif#ifdef CONFIG_GVP11_SCSI#include "gvp11.h"#endif#ifdef CONFIG_CYBERSTORM_SCSI#include "cyberstorm.h"#endif#ifdef CONFIG_CYBERSTORMII_SCSI#include "cyberstormII.h"#endif#ifdef CONFIG_BLZ2060_SCSI#include "blz2060.h"#endif#ifdef CONFIG_BLZ1230_SCSI#include "blz1230.h"#endif#ifdef CONFIG_FASTLANE_SCSI#include "fastlane.h"#endif#ifdef CONFIG_ATARI_SCSI#include "atari_scsi.h"#endif#ifdef CONFIG_MAC_SCSI_OLD#include "mac_scsi.h"#endif#ifdef CONFIG_MAC_SCSI#include "mac_scsinew.h"#endif#ifdef CONFIG_SCSI_MAC_ESP#include "mac_esp.h"#endif#ifdef CONFIG_SCSI_ADVANSYS#include "advansys.h"#endif#ifdef CONFIG_SCSI_AHA152X#include "aha152x.h"#endif#ifdef CONFIG_SCSI_AHA1542#include "aha1542.h"#endif#ifdef CONFIG_SCSI_AHA1740#include "aha1740.h"#endif#ifdef CONFIG_SCSI_AIC7XXX#include "aic7xxx.h"#endif#ifdef CONFIG_SCSI_BUSLOGIC#include "BusLogic.h"#endif#ifdef CONFIG_SCSI_EATA_DMA#include "eata_dma.h"#endif#ifdef CONFIG_SCSI_EATA_PIO#include "eata_pio.h"#endif#ifdef CONFIG_SCSI_U14_34F#include "u14-34f.h"#endif#ifdef CONFIG_SCSI_FD_MCS#include "fd_mcs.h"#endif#ifdef CONFIG_SCSI_FUTURE_DOMAIN#include "fdomain.h"#endif#ifdef CONFIG_SCSI_GENERIC_NCR5380#include "g_NCR5380.h"#endif#ifdef CONFIG_SCSI_IN2000#include "in2000.h"#endif#ifdef CONFIG_SCSI_PAS16#include "pas16.h"#endif#ifdef CONFIG_SCSI_QLOGIC_FAS#include "qlogicfas.h"#endif#ifdef CONFIG_SCSI_QLOGIC_ISP#include "qlogicisp.h"#endif#ifdef CONFIG_SCSI_QLOGIC_FC#include "qlogicfc.h"#endif#ifdef CONFIG_SCSI_SEAGATE#include "seagate.h"#endif#ifdef CONFIG_SCSI_T128#include "t128.h"#endif#ifdef CONFIG_SCSI_DTC3280#include "dtc.h"#endif#ifdef CONFIG_SCSI_NCR53C7xx#include "53c7,8xx.h"#endif#ifdef CONFIG_SCSI_SYM53C8XX#include "sym53c8xx.h"#endif#ifdef CONFIG_SCSI_NCR53C8XX#include "ncr53c8xx.h"#endif#ifdef CONFIG_SCSI_ULTRASTOR#include "ultrastor.h"#endif#ifdef CONFIG_SCSI_7000FASST#include "wd7000.h"#endif#ifdef CONFIG_SCSI_MCA_53C9X#include "mca_53c9x.h"#endif#ifdef CONFIG_SCSI_IBMMCA#include "ibmmca.h"#endif#ifdef CONFIG_SCSI_EATA#include "eata.h"#endif#ifdef CONFIG_SCSI_NCR53C406A#include "NCR53c406a.h"#endif#ifdef CONFIG_SCSI_SYM53C416 #include "sym53c416.h" #endif#ifdef CONFIG_SCSI_DC390T#include "dc390.h"#endif#ifdef CONFIG_SCSI_AM53C974#include "AM53C974.h"#endif#ifdef CONFIG_SCSI_MEGARAID#include "megaraid.h"#endif#ifdef CONFIG_SCSI_ACARD#include "atp870u.h"#endif#ifdef CONFIG_SCSI_SUNESP#include "esp.h"#endif#ifdef CONFIG_SCSI_QLOGICPTI#include "qlogicpti.h"#endif#ifdef CONFIG_BLK_DEV_IDESCSI#include "ide-scsi.h"#endif#ifdef CONFIG_SCSI_MESH#include "mesh.h"#endif#ifdef CONFIG_SCSI_MAC53C94#include "mac53c94.h"#endif#ifdef CONFIG_SCSI_GDTH#include "gdth.h"#endif#ifdef CONFIG_SCSI_PCI2000#include "pci2000.h"#endif#ifdef CONFIG_SCSI_PCI2220I#include "pci2220i.h"#endif#ifdef CONFIG_SCSI_PSI240I#include "psi240i.h"#endif#ifdef CONFIG_SCSI_PLUTO#include "pluto.h"#endif#ifdef CONFIG_SCSI_INITIO#include "ini9100u.h"#endif#ifdef CONFIG_SCSI_INIA100#include "inia100.h"#endif#ifdef CONFIG_SCSI_DEBUG#include "scsi_debug.h"#endif#ifdef CONFIG_SCSI_ACORNSCSI_3#include "../acorn/scsi/acornscsi.h"#endif#ifdef CONFIG_SCSI_CUMANA_1#include "../acorn/scsi/cumana_1.h"#endif#ifdef CONFIG_SCSI_CUMANA_2#include "../acorn/scsi/cumana_2.h"#endif#ifdef CONFIG_SCSI_ECOSCSI#include "../acorn/scsi/ecoscsi.h"#endif#ifdef CONFIG_SCSI_OAK1#include "../acorn/scsi/oak.h"#endif#ifdef CONFIG_SCSI_POWERTECSCSI#include "../acorn/scsi/powertec.h"#endif#ifdef CONFIG_JAZZ_ESP#include "jazz_esp.h"#endif#ifdef CONFIG_IPHASE5526#include "../net/fc/iph5526_scsi.h"#endif/* * Moved ppa driver to the end of the probe list * since it is a removable host adapter. * This means the parallel ZIP drive will not bump * the order of the /dev/sd devices - campbell@torque.net */#ifdef CONFIG_SCSI_PPA#include "ppa.h"#endif#ifdef CONFIG_SCSI_IMM#include "imm.h"#endif/*static const char RCSid[] = "$Header: /vger/u4/cvs/linux/drivers/scsi/hosts.c,v 1.20 1996/12/12 19:18:32 davem Exp $";*//* *  The scsi host entries should be in the order you wish the *  cards to be detected.  A driver may appear more than once IFF *  it can deal with being detected (and therefore initialized) *  with more than one simultaneous host number, can handle being *  reentrant, etc. * *  They may appear in any order, as each SCSI host is told which host  *  number it is during detection. *//* This is a placeholder for controllers that are not configured into * the system - we do this to ensure that the controller numbering is * always consistent, no matter how the kernel is configured. */#define NO_CONTROLLER {NULL, NULL, NULL, NULL, NULL, NULL, NULL, \			   NULL, NULL, 0, 0, 0, 0, 0, 0}/* *  When figure is run, we don't want to link to any object code.  Since *  the macro for each host will contain function pointers, we cannot *  use it and instead must use a "blank" that does no such *  idiocy. */Scsi_Host_Template * scsi_hosts = NULL;static Scsi_Host_Template builtin_scsi_hosts[] ={#ifdef CONFIG_AMIGA#ifdef AMIGA7XXCONFIG	AMIGA7XX_SCSI,#endif#ifdef CONFIG_A3000_SCSI	A3000_SCSI,#endif#ifdef CONFIG_A2091_SCSI	A2091_SCSI,#endif#ifdef CONFIG_GVP11_SCSI	GVP11_SCSI,#endif#ifdef CONFIG_CYBERSTORM_SCSI	SCSI_CYBERSTORM,#endif#ifdef CONFIG_CYBERSTORMII_SCSI	SCSI_CYBERSTORMII,#endif#ifdef CONFIG_BLZ2060_SCSI	SCSI_BLZ2060,#endif#ifdef CONFIG_BLZ1230_SCSI	SCSI_BLZ1230,#endif#ifdef CONFIG_FASTLANE_SCSI	SCSI_FASTLANE,#endif#endif#ifdef CONFIG_ATARI#ifdef CONFIG_ATARI_SCSI	ATARI_SCSI,#endif#endif#ifdef CONFIG_MAC#ifdef CONFIG_MAC_SCSI_OLD	MAC_SCSI,#endif#ifdef CONFIG_SCSI_MAC_ESP        SCSI_MAC_ESP,#endif#ifdef CONFIG_MAC_SCSI	MAC_NCR5380,#endif#endif#ifdef CONFIG_MVME16x_SCSI	MVME16x_SCSI,#endif#ifdef CONFIG_BVME6000_SCSI	BVME6000_SCSI,#endif#ifdef CONFIG_SCSI_ADVANSYS	ADVANSYS,#endif#ifdef CONFIG_SCSI_PCI2000        PCI2000,#endif#ifdef CONFIG_SCSI_PCI2220I        PCI2220I,#endif

⌨️ 快捷键说明

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