亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來(lái)到蟲(chóng)蟲(chóng)下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲(chóng)蟲(chóng)下載站

?? linit.c

?? 該文件是rt_linux
?? C
?? 第 1 頁(yè) / 共 2 頁(yè)
字號(hào):
/* *	Adaptec AAC series RAID controller driver *	(c) Copyright 2001 Red Hat Inc.	<alan@redhat.com> * * based on the old aacraid driver that is.. * Adaptec aacraid device driver for Linux. * * Copyright (c) 2000 Adaptec, Inc. (aacraid@adaptec.com) * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2, or (at your option) * any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; see the file COPYING.  If not, write to * the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. * * Module Name: *   linit.c * * Abstract: Linux Driver entry module for Adaptec RAID Array Controller *				 *	Provides the following driver entry points: *		aac_detect() *		aac_release() *		aac_queuecommand() *		aac_resetcommand() *		aac_biosparm() *	 */#define AAC_DRIVER_VERSION		"0.9.9ac6-TEST"#define AAC_DRIVER_BUILD_DATE		__DATE__#include <linux/module.h>#include <linux/config.h>#include <linux/kernel.h>#include <linux/init.h>#include <linux/types.h>#include <linux/sched.h>#include <linux/pci.h>#include <linux/spinlock.h>#include <linux/slab.h>#include <linux/completion.h>#include <asm/semaphore.h>#include <linux/blk.h>#include "scsi.h"#include "hosts.h"#include "aacraid.h"#include "sd.h"#define AAC_DRIVERNAME	"aacraid"MODULE_AUTHOR("Red Hat Inc and Adaptec");MODULE_DESCRIPTION("Supports Dell PERC2, 2/Si, 3/Si, 3/Di, Adaptec 2120S, 2200S, 5400S, and HP NetRAID-4M devices. http://domsch.com/linux/ or http://linux.adaptec.com");MODULE_LICENSE("GPL");MODULE_PARM(nondasd, "i");MODULE_PARM_DESC(nondasd, "Control scanning of hba for nondasd devices. 0=off, 1=on");static int nondasd=-1;struct aac_dev *aac_devices[MAXIMUM_NUM_ADAPTERS];static unsigned aac_count = 0;static int aac_cfg_major = -1;/* * Because of the way Linux names scsi devices, the order in this table has * become important.  Check for on-board Raid first, add-in cards second. * * dmb - For now we add the number of channels to this structure.   * In the future we should add a fib that reports the number of channels * for the card.  At that time we can remove the channels from here */ static struct aac_driver_ident aac_drivers[] = {	{ 0x1028, 0x0001, 0x1028, 0x0001, aac_rx_init, "percraid", "DELL    ", "PERCRAID        ", 2 }, /* PERC 2/Si */	{ 0x1028, 0x0002, 0x1028, 0x0002, aac_rx_init, "percraid", "DELL    ", "PERCRAID        ", 2 }, /* PERC 3/Di */	{ 0x1028, 0x0003, 0x1028, 0x0003, aac_rx_init, "percraid", "DELL    ", "PERCRAID        ", 2 }, /* PERC 3/Si */	{ 0x1028, 0x0004, 0x1028, 0x00d0, aac_rx_init, "percraid", "DELL    ", "PERCRAID        ", 2 }, /* PERC 3/Si */	{ 0x1028, 0x0002, 0x1028, 0x00d1, aac_rx_init, "percraid", "DELL    ", "PERCRAID        ", 2 }, /* PERC 3/Di */	{ 0x1028, 0x0002, 0x1028, 0x00d9, aac_rx_init, "percraid", "DELL    ", "PERCRAID        ", 2 }, /* PERC 3/Di */	{ 0x1028, 0x000a, 0x1028, 0x0106, aac_rx_init, "percraid", "DELL    ", "PERCRAID        ", 2 }, /* PERC 3/Di */	{ 0x1028, 0x000a, 0x1028, 0x011b, aac_rx_init, "percraid", "DELL    ", "PERCRAID        ", 2 }, /* PERC 3/Di */	{ 0x1028, 0x000a, 0x1028, 0x0121, aac_rx_init, "percraid", "DELL    ", "PERCRAID        ", 2 }, /* PERC 3/Di */	{ 0x9005, 0x0283, 0x9005, 0x0283, aac_rx_init, "aacraid",  "ADAPTEC ", "catapult        ", 2 }, /* catapult*/	{ 0x9005, 0x0284, 0x9005, 0x0284, aac_rx_init, "aacraid",  "ADAPTEC ", "tomcat          ", 2 }, /* tomcat*/	{ 0x9005, 0x0285, 0x9005, 0x0286, aac_rx_init, "aacraid",  "ADAPTEC ", "Adaptec 2120S   ", 1 }, /* Adaptec 2120S (Crusader)*/	{ 0x9005, 0x0285, 0x9005, 0x0285, aac_rx_init, "aacraid",  "ADAPTEC ", "Adaptec 2200S   ", 2 }, /* Adaptec 2200S (Vulcan)*/	{ 0x9005, 0x0285, 0x9005, 0x0287, aac_rx_init, "aacraid",  "ADAPTEC ", "Adaptec 2200S   ", 2 }, /* Adaptec 2200S (Vulcan-2m)*/	{ 0x1011, 0x0046, 0x9005, 0x0365, aac_sa_init, "aacraid",  "ADAPTEC ", "Adaptec 5400S   ", 4 }, /* Adaptec 5400S (Mustang)*/	{ 0x1011, 0x0046, 0x9005, 0x0364, aac_sa_init, "aacraid",  "ADAPTEC ", "AAC-364         ", 4 }, /* Adaptec 5400S (Mustang)*/	{ 0x1011, 0x0046, 0x9005, 0x1364, aac_sa_init, "percraid", "DELL    ", "PERCRAID        ", 4 }, /* Dell PERC2 "Quad Channel" */	{ 0x1011, 0x0046, 0x103c, 0x10c2, aac_sa_init, "hpnraid",  "HP      ", "NetRAID-4M      ", 4 }  /* HP NetRAID-4M */};#define NUM_AACTYPES	(sizeof(aac_drivers) / sizeof(struct aac_driver_ident))static int num_aacdrivers = NUM_AACTYPES;static int aac_cfg_ioctl(struct inode * inode, struct file * file, unsigned int cmd, unsigned long arg);static int aac_cfg_open(struct inode * inode, struct file * file);static int aac_cfg_release(struct inode * inode,struct file * file);static struct file_operations aac_cfg_fops = {	owner: THIS_MODULE,	ioctl: aac_cfg_ioctl,	open: aac_cfg_open,	release: aac_cfg_release};static int aac_detect(Scsi_Host_Template *);static int aac_release(struct Scsi_Host *);static int aac_queuecommand(Scsi_Cmnd *, void (*CompletionRoutine)(Scsi_Cmnd *));static int aac_biosparm(Scsi_Disk *, kdev_t, int *);static int aac_procinfo(char *, char **, off_t, int, int, int);static int aac_ioctl(Scsi_Device *, int, void *);static int aac_eh_abort(Scsi_Cmnd * cmd);static int aac_eh_device_reset(Scsi_Cmnd* cmd);static int aac_eh_bus_reset(Scsi_Cmnd* cmd);static int aac_eh_reset(Scsi_Cmnd* cmd);static void aac_queuedepth(struct Scsi_Host *, Scsi_Device *);/** *	aac_detect	-	Probe for aacraid cards *	@template: SCSI driver template * *	Probe for AAC Host Adapters initialize, register, and report the  *	configuration of each AAC Host Adapter found. *	Returns the number of adapters successfully initialized and  *	registered. *	Initializes all data necessary for this particular SCSI driver. *	Notes: *	The detect routine must not call any of the mid level functions  *	to queue commands because things are not guaranteed to be set  *	up yet. The detect routine can send commands to the host adapter  *	as long as the program control will not be passed to scsi.c in  *	the processing of the command. Note especially that  *	scsi_malloc/scsi_free must not be called. * */ static int aac_detect(Scsi_Host_Template *template){	int index;	int container;	u16 vendor_id, device_id;	struct Scsi_Host *host_ptr;	struct pci_dev *dev = NULL;	struct aac_dev *aac;	struct fsa_scsi_hba *fsa_dev_ptr;	char *name = NULL;		printk(KERN_INFO "Red Hat/Adaptec aacraid driver, %s\n", AAC_DRIVER_BUILD_DATE);	/* setting up the proc directory structure */	template->proc_name = "aacraid";	for( index = 0; index != num_aacdrivers; index++ )	{		device_id = aac_drivers[index].device;		vendor_id = aac_drivers[index].vendor;		name = aac_drivers[index].name;		dprintk((KERN_DEBUG "Checking %s %x/%x/%x/%x.\n", 			name, vendor_id, device_id,			aac_drivers[index].subsystem_vendor,			aac_drivers[index].subsystem_device));		dev = NULL;		while((dev = pci_find_device(vendor_id, device_id, dev))) {			if (pci_enable_device(dev))				continue;			pci_set_master(dev);			pci_set_dma_mask(dev, 0xFFFFFFFFULL);			if((dev->subsystem_vendor != aac_drivers[index].subsystem_vendor) || 			   (dev->subsystem_device != aac_drivers[index].subsystem_device))					continue;			dprintk((KERN_DEBUG "%s device detected.\n", name));			dprintk((KERN_DEBUG "%x/%x/%x/%x.\n", vendor_id, device_id, 				aac_drivers[index].subsystem_vendor, aac_drivers[index].subsystem_device));			/* Increment the host adapter count */			aac_count++;			/*			 * scsi_register() allocates memory for a Scsi_Hosts structure and			 * links it into the linked list of host adapters. This linked list			 * contains the data for all possible <supported> scsi hosts.			 * This is similar to the Scsi_Host_Template, except that we have			 * one entry for each actual physical host adapter on the system,			 * stored as a linked list. If there are two AAC boards, then we			 * will need to make two Scsi_Host entries, but there will be only			 * one Scsi_Host_Template entry. The second argument to scsi_register()			 * specifies the size of the extra memory we want to hold any device 			 * specific information.			 */			host_ptr = scsi_register( template, sizeof(struct aac_dev) );			/* 			 * These three parameters can be used to allow for wide SCSI 			 * and for host adapters that support multiple buses.			 */			host_ptr->max_id = 17;			host_ptr->max_lun = 8;			host_ptr->max_channel = 1;			host_ptr->irq = dev->irq;		/* Adapter IRQ number */			/* host_ptr->base = ( char * )(dev->resource[0].start & ~0xff); */			host_ptr->base = dev->resource[0].start;			scsi_set_pci_device(host_ptr, dev);			dprintk((KERN_DEBUG "Device base address = 0x%lx [0x%lx].\n", host_ptr->base, dev->resource[0].start));			dprintk((KERN_DEBUG "Device irq = 0x%x.\n", dev->irq));			/*			 * The unique_id field is a unique identifier that must			 * be assigned so that we have some way of identifying			 * each host adapter properly and uniquely. For hosts 			 * that do not support more than one card in the			 * system, this does not need to be set. It is			 * initialized to zero in scsi_register(). This is the 			 * value returned as aac->id.			 */			host_ptr->unique_id = aac_count - 1;			/*			 *	This function is called after the device list has			 *	been built to find the tagged queueing depth 			 *	supported for each device.			 */			host_ptr->select_queue_depths = aac_queuedepth;			aac = (struct aac_dev *)host_ptr->hostdata;			/* attach a pointer back to Scsi_Host */			aac->scsi_host_ptr = host_ptr;				aac->pdev = dev;			aac->cardtype =  index;			aac->name = aac->scsi_host_ptr->hostt->name;			aac->id = aac->scsi_host_ptr->unique_id;			/* Initialize the ordinal number of the device to -1 */			fsa_dev_ptr = &(aac->fsa_dev);			for( container = 0; container < MAXIMUM_NUM_CONTAINERS; container++ )				fsa_dev_ptr->devno[container] = -1;			dprintk((KERN_DEBUG "Initializing Hardware...\n"));			if((*aac_drivers[index].init)(aac , host_ptr->unique_id) != 0)			{				/* device initialization failed */				printk(KERN_WARNING "aacraid: device initialization failed.\n");				scsi_unregister(host_ptr);				aac_count--;				continue;			} 			dprintk((KERN_DEBUG "%s:%d device initialization successful.\n", name, host_ptr->unique_id));			aac_get_adapter_info(aac);			if(nondasd != -1) 			{				/* someone told us how to set this on the cmdline */				aac->nondasd_support = (nondasd!=0);			}			if(aac->nondasd_support != 0){				printk(KERN_INFO "%s%d: Non-DASD support enabled\n", aac->name, aac->id);			}			dprintk((KERN_DEBUG "%s:%d options flag %04x.\n",name, host_ptr->unique_id,aac->adapter_info.options));			if(aac->nondasd_support == 1)			{				/*				 * max channel will be the physical channels plus 1 virtual channel 				 * all containers are on the virtual channel 0				 * physical channels are address by their actual physical number+1				 */				host_ptr->max_channel = aac_drivers[index].channels+1;			} else {				host_ptr->max_channel = 1; 			}			dprintk((KERN_DEBUG "Device has %d logical channels\n", host_ptr->max_channel));			aac_get_containers(aac);			aac_devices[aac_count-1] = aac;			/*			 * dmb - we may need to move these 3 parms somewhere else once			 * we get a fib that can report the actual numbers			 */			host_ptr->max_id = AAC_MAX_TARGET;			host_ptr->max_lun = AAC_MAX_LUN;						/*			 *  If we are PAE capable then our future DMA mappings			 *  (for read/write commands) are 64bit clean and don't 			 *  need bouncing. This assumes we do no other 32bit only			 *  allocations (eg fib table expands) after this point.			 */			 			if(aac->pae_support)				pci_set_dma_mask(dev, 0xFFFFFFFFFFFFFFFFUL);		}	}	if( aac_count ){		if((aac_cfg_major = register_chrdev( 0, "aac", &aac_cfg_fops))<0)			printk(KERN_WARNING "aacraid: unable to register \"aac\" device.\n");	}	template->present = aac_count; /* # of cards of this type found */	return aac_count;}/** *	aac_release	-	release SCSI host resources *	@host_ptr: SCSI host to clean up * *	Release all resources previously acquired to support a specific Host  *	Adapter and unregister the AAC Host Adapter. * *	BUGS: Does not wait for the thread it kills to die. */static int aac_release(struct Scsi_Host *host_ptr){	struct aac_dev *dev;	dprintk((KERN_DEBUG "aac_release.\n"));	dev = (struct aac_dev *)host_ptr->hostdata;	/*	 *	kill any threads we started	 */	kill_proc(dev->thread_pid, SIGKILL, 0);	wait_for_completion(&dev->aif_completion);	/*	 *	Call the comm layer to detach from this adapter	 */	aac_detach(dev);	/* Check free orderings... */	/* remove interrupt binding */	free_irq(host_ptr->irq, dev);	iounmap((void * )dev->regs.sa);	/* unregister adapter */	scsi_unregister(host_ptr);	/*	 *	FIXME: This assumes no hot plugging is going on...	 */	if( aac_cfg_major >= 0 )	{		unregister_chrdev(aac_cfg_major, "aac");		aac_cfg_major = -1;	}	return 0;}/** *	aac_queuecommand	-	queue a SCSI command *	@scsi_cmnd_ptr:	SCSI command to queue *	@CompletionRoutine: Function to call on command completion * *	Queues a command for execution by the associated Host Adapter. */ static int aac_queuecommand(Scsi_Cmnd *scsi_cmnd_ptr, void (*complete)(Scsi_Cmnd *)){	int ret;	scsi_cmnd_ptr->scsi_done = complete;	/*	 *	aac_scsi_cmd() handles command processing, setting the 	 *	result code and calling completion routine. 	 */	if((ret = aac_scsi_cmd(scsi_cmnd_ptr)) != 0)		dprintk((KERN_DEBUG "aac_scsi_cmd failed.\n"));	return ret;} /**

?? 快捷鍵說(shuō)明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
精品一区二区三区免费视频| 欧美日韩国产小视频| 国产精品一区不卡| 国产酒店精品激情| 国产一区二区在线观看视频| 久久99国产乱子伦精品免费| 美女免费视频一区二区| 久久精品99久久久| 精品一区二区三区在线视频| 紧缚奴在线一区二区三区| 久久精品99国产精品| 毛片不卡一区二区| 国产精品91一区二区| 懂色av一区二区三区蜜臀 | 7777女厕盗摄久久久| 91精品中文字幕一区二区三区| 6080yy午夜一二三区久久| 日韩欧美成人激情| 国产亚洲女人久久久久毛片| 国产精品看片你懂得| 亚洲视频一区二区免费在线观看| 成人免费在线播放视频| 一区二区三区免费看视频| 亚洲第一主播视频| 免费观看91视频大全| 国产九色sp调教91| 一本大道久久a久久精二百| 欧美日韩电影在线| 欧美成人三级在线| 中文字幕成人av| 一区二区三区鲁丝不卡| 日本成人中文字幕在线视频| 精品写真视频在线观看| 成人av网站大全| 欧美精品久久一区二区三区| 亚洲精品一区二区三区四区高清 | 一区二区三区久久| 免费在线看成人av| 成人av资源在线| 欧美二区三区的天堂| 久久综合99re88久久爱| 一区二区三区自拍| 精彩视频一区二区| 在线看日本不卡| 久久人人97超碰com| 亚洲天堂久久久久久久| 日本网站在线观看一区二区三区| 国产成人精品亚洲午夜麻豆| 欧美性色aⅴ视频一区日韩精品| 日韩女优视频免费观看| 亚洲欧美另类综合偷拍| 美国欧美日韩国产在线播放| fc2成人免费人成在线观看播放| 欧美日高清视频| 国产精品亲子伦对白| 三级在线观看一区二区| 成人免费电影视频| 欧美一区二区视频在线观看 | 国产suv一区二区三区88区| 91国内精品野花午夜精品| 欧美www视频| 亚洲成人av电影| 成人精品视频一区二区三区| 日韩欧美一区在线观看| 亚洲天堂久久久久久久| 国产麻豆视频一区二区| 91精品国产色综合久久| 亚洲男人电影天堂| 国产.欧美.日韩| 91精品国产色综合久久ai换脸 | 国产91精品久久久久久久网曝门| 精品视频一区 二区 三区| 国产精品全国免费观看高清| 免费日韩伦理电影| 在线观看亚洲专区| 国产精品美女久久久久aⅴ国产馆| 麻豆91精品视频| 欧美精品九九99久久| 亚洲精品写真福利| 高清不卡一区二区在线| 欧美va日韩va| 美女国产一区二区| 欧美高清视频www夜色资源网| 亚洲视频一二区| av在线免费不卡| 久久精品人人做人人爽人人| 久久精品国产99久久6| 4438成人网| 亚洲国产视频网站| 色乱码一区二区三区88 | 国产一区在线视频| 日韩亚洲欧美在线| 热久久一区二区| 9191精品国产综合久久久久久| 一区二区三区中文字幕在线观看| 99综合影院在线| 中文字幕一区二区三区四区不卡| 激情综合色综合久久| 精品三级av在线| 捆绑紧缚一区二区三区视频 | 一区二区三区四区五区视频在线观看 | 麻豆91免费观看| 精品国产一区二区三区不卡| 久久狠狠亚洲综合| 日韩视频一区二区| 麻豆国产欧美日韩综合精品二区 | 婷婷中文字幕综合| 欧美精品乱码久久久久久| 午夜精品在线视频一区| 欧美精品乱人伦久久久久久| 日日嗨av一区二区三区四区| 欧美日韩极品在线观看一区| 天天av天天翘天天综合网色鬼国产| 欧美日韩在线三级| 天天操天天色综合| 精品国内片67194| 福利一区二区在线观看| 国产精品午夜免费| 91福利视频久久久久| 一区二区三区欧美| 欧美一区二区精品久久911| 久久精品国产在热久久| 国产情人综合久久777777| www.欧美日韩国产在线| 夜夜亚洲天天久久| 欧美一级理论性理论a| 国产一区二区伦理| 国产精品久久99| 欧美日韩国产综合视频在线观看| 首页综合国产亚洲丝袜| 日韩美女视频在线| 国产999精品久久久久久绿帽| 成人欧美一区二区三区白人 | 日韩精品一区二区三区在线观看| 国产在线精品一区二区夜色| 国产精品婷婷午夜在线观看| 91麻豆国产福利精品| 亚洲第一精品在线| 精品国产91久久久久久久妲己| 高清不卡一二三区| 午夜av区久久| 久久久久久亚洲综合影院红桃 | 久久九九久久九九| 97久久精品人人做人人爽 | 99re这里只有精品首页| 亚洲一二三四久久| 精品国产免费人成电影在线观看四季| 成人动漫一区二区| 午夜伊人狠狠久久| 国产午夜亚洲精品不卡| 色久优优欧美色久优优| 美腿丝袜亚洲一区| 国产精品传媒视频| 精品国产污网站| 91成人看片片| 国产成人综合亚洲网站| 亚洲一区二区中文在线| 久久久久青草大香线综合精品| 在线视频观看一区| 国产精品 欧美精品| 首页国产丝袜综合| 日韩一区在线播放| 久久婷婷国产综合精品青草| 在线欧美小视频| 高清shemale亚洲人妖| 免费观看在线色综合| 亚洲美女视频在线观看| 久久久亚洲国产美女国产盗摄| 欧美日韩国产免费| 99久久精品国产观看| 久草中文综合在线| 99久久99久久免费精品蜜臀| 日韩精品欧美精品| 亚洲欧美一区二区三区国产精品| 欧美精品一区二区久久婷婷| 欧美日韩一区视频| 91在线视频网址| 国产盗摄一区二区| 精品一区二区久久| 蜜臀91精品一区二区三区| 亚洲午夜一区二区三区| 中文字幕中文字幕在线一区 | 日韩天堂在线观看| 欧美三级资源在线| 一本一道波多野结衣一区二区| 国产99久久久精品| 国产剧情在线观看一区二区| 免费三级欧美电影| 男男视频亚洲欧美| 亚洲成a人片在线不卡一二三区| 一区在线观看视频| 欧美国产精品v| 国产清纯在线一区二区www| 亚洲精品在线电影| 精品国产污污免费网站入口 | 国产亚洲va综合人人澡精品| 欧美一区二区三区在线观看视频| 欧美色图一区二区三区| 91国偷自产一区二区开放时间| 91小视频免费看|