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

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

?? 3w-xxxx.c

?? Linux Kernel 2.6.9 for OMAP1710
?? C
?? 第 1 頁 / 共 5 頁
字號(hào):
/*    3w-xxxx.c -- 3ware Storage Controller device driver for Linux.   Written By: Adam Radford <linuxraid@amcc.com>   Modifications By: Joel Jacobson <linux@3ware.com>   		     Arnaldo Carvalho de Melo <acme@conectiva.com.br>                     Brad Strand <linux@3ware.com>   Copyright (C) 1999-2004 3ware Inc.   Kernel compatiblity By: 	Andre Hedrick <andre@suse.com>   Non-Copyright (C) 2000	Andre Hedrick <andre@suse.com>      Further tiny build fixes and trivial hoovering    Alan Cox   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; version 2 of the License.   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.                                 NO WARRANTY                                                                  THE PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OR           CONDITIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED INCLUDING, WITHOUT         LIMITATION, ANY WARRANTIES OR CONDITIONS OF TITLE, NON-INFRINGEMENT,         MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Each Recipient is       solely responsible for determining the appropriateness of using and          distributing the Program and assumes all risks associated with its           exercise of rights under this Agreement, including but not limited to        the risks and costs of program errors, damage to or loss of data,            programs or equipment, and unavailability or interruption of operations.     DISCLAIMER OF LIABILITY                                                      NEITHER RECIPIENT NOR ANY CONTRIBUTORS SHALL HAVE ANY LIABILITY FOR ANY      DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL           DAMAGES (INCLUDING WITHOUT LIMITATION LOST PROFITS), HOWEVER CAUSED AND      ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR        TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE       USE OR DISTRIBUTION OF THE PROGRAM OR THE EXERCISE OF ANY RIGHTS GRANTED     HEREUNDER, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGES                You should have received a copy of the GNU General Public License            along with this program; if not, write to the Free Software                  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA    Bugs/Comments/Suggestions should be mailed to:                               linuxraid@amcc.com   For more information, goto:   http://www.amcc.com   History   -------   0.1.000 -     Initial release.   0.4.000 -     Added support for Asynchronous Event Notification through                 ioctls for 3DM.   1.0.000 -     Added DPO & FUA bit support for WRITE_10 & WRITE_6 cdb                 to disable drive write-cache before writes.   1.1.000 -     Fixed performance bug with DPO & FUA not existing for WRITE_6.   1.2.000 -     Added support for clean shutdown notification/feature table.   1.02.00.001 - Added support for full command packet posts through ioctls                 for 3DM.                 Bug fix so hot spare drives don't show up.   1.02.00.002 - Fix bug with tw_setfeature() call that caused oops on some                 systems.   08/21/00    - release previously allocated resources on failure at                 tw_allocate_memory (acme)   1.02.00.003 - Fix tw_interrupt() to report error to scsi layer when                 controller status is non-zero.                 Added handling of request_sense opcode.                 Fix possible null pointer dereference in                  tw_reset_device_extension()   1.02.00.004 - Add support for device id of 3ware 7000 series controllers.                 Make tw_setfeature() call with interrupts disabled.                 Register interrupt handler before enabling interrupts.                 Clear attention interrupt before draining aen queue.   1.02.00.005 - Allocate bounce buffers and custom queue depth for raid5 for                 6000 and 5000 series controllers.                 Reduce polling mdelays causing problems on some systems.                 Fix use_sg = 1 calculation bug.                 Check for scsi_register returning NULL.                 Add aen count to /proc/scsi/3w-xxxx.                 Remove aen code unit masking in tw_aen_complete().   1.02.00.006 - Remove unit from printk in tw_scsi_eh_abort(), causing                 possible oops.                 Fix possible null pointer dereference in tw_scsi_queue()                 if done function pointer was invalid.   1.02.00.007 - Fix possible null pointer dereferences in tw_ioctl().                 Remove check for invalid done function pointer from                 tw_scsi_queue().   1.02.00.008 - Set max sectors per io to TW_MAX_SECTORS in tw_findcards().                 Add tw_decode_error() for printing readable error messages.                 Print some useful information on certain aen codes.                 Add tw_decode_bits() for interpreting status register output.                 Make scsi_set_pci_device() for kernels >= 2.4.4                 Fix bug where aen's could be lost before a reset.                 Re-add spinlocks in tw_scsi_detect().                 Fix possible null pointer dereference in tw_aen_drain_queue()                 during initialization.                 Clear pci parity errors during initialization and during io.   1.02.00.009 - Remove redundant increment in tw_state_request_start().                 Add ioctl support for direct ATA command passthru.                 Add entire aen code string list.   1.02.00.010 - Cleanup queueing code, fix jbod thoughput.                 Fix get_param for specific units.   1.02.00.011 - Fix bug in tw_aen_complete() where aen's could be lost.                 Fix tw_aen_drain_queue() to display useful info at init.                 Set tw_host->max_id for 12 port cards.                 Add ioctl support for raw command packet post from userspace                 with sglist fragments (parameter and io).   1.02.00.012 - Fix read capacity to under report by 1 sector to fix get                 last sector ioctl.   1.02.00.013 - Fix bug where more AEN codes weren't coming out during                 driver initialization.                 Improved handling of PCI aborts.   1.02.00.014 - Fix bug in tw_findcards() where AEN code could be lost.                 Increase timeout in tw_aen_drain_queue() to 30 seconds.   1.02.00.015 - Re-write raw command post with data ioctl method.                 Remove raid5 bounce buffers for raid5 for 6XXX for kernel 2.5                 Add tw_map/unmap_scsi_sg/single_data() for kernel 2.5                 Replace io_request_lock with host_lock for kernel 2.5                 Set max_cmd_len to 16 for 3dm for kernel 2.5   1.02.00.016 - Set host->max_sectors back up to 256.   1.02.00.017 - Modified pci parity error handling/clearing from config space                 during initialization.   1.02.00.018 - Better handling of request sense opcode and sense information                 for failed commands.  Add tw_decode_sense().                 Replace all mdelay()'s with scsi_sleep().   1.02.00.019 - Revert mdelay's and scsi_sleep's, this caused problems on                 some SMP systems.   1.02.00.020 - Add pci_set_dma_mask(), rewrite kmalloc()/virt_to_bus() to                 pci_alloc/free_consistent().                 Better alignment checking in tw_allocate_memory().                 Cleanup tw_initialize_device_extension().   1.02.00.021 - Bump cmd_per_lun in SHT to 255 for better jbod performance.                 Improve handling of errors in tw_interrupt().                 Add handling/clearing of controller queue error.                 Empty stale responses before draining aen queue.                 Fix tw_scsi_eh_abort() to not reset on every io abort.                 Set can_queue in SHT to 255 to prevent hang from AEN.   1.02.00.022 - Fix possible null pointer dereference in tw_scsi_release().   1.02.00.023 - Fix bug in tw_aen_drain_queue() where unit # was always zero.   1.02.00.024 - Add severity levels to AEN strings.   1.02.00.025 - Fix command interrupt spurious error messages.                 Fix bug in raw command post with data ioctl method.                 Fix bug where rollcall sometimes failed with cable errors.                 Print unit # on all command timeouts.   1.02.00.026 - Fix possible infinite retry bug with power glitch induced                 drive timeouts.                 Cleanup some AEN severity levels.   1.02.00.027 - Add drive not supported AEN code for SATA controllers.                 Remove spurious unknown ioctl error message.   1.02.00.028 - Fix bug where multiple controllers with no units were the                 same card number.                 Fix bug where cards were being shut down more than once.   1.02.00.029 - Add missing pci_free_consistent() in tw_allocate_memory().                 Replace pci_map_single() with pci_map_page() for highmem.                 Check for tw_setfeature() failure.   1.02.00.030 - Make driver 64-bit clean.   1.02.00.031 - Cleanup polling timeouts/routines in several places.                 Add support for mode sense opcode.                 Add support for cache mode page.                 Add support for synchronize cache opcode.   1.02.00.032 - Fix small multicard rollcall bug.                 Make driver stay loaded with no units for hot add/swap.                 Add support for "twe" character device for ioctls.                 Clean up request_id queueing code.                 Fix tw_scsi_queue() spinlocks.   1.02.00.033 - Fix tw_aen_complete() to not queue 'queue empty' AEN's.                 Initialize queues correctly when loading with no valid units.   1.02.00.034 - Fix tw_decode_bits() to handle multiple errors.                 Add support for user configurable cmd_per_lun.                 Add support for sht->slave_configure().   1.02.00.035 - Improve tw_allocate_memory() memory allocation.                 Fix tw_chrdev_ioctl() to sleep correctly.   1.02.00.036 - Increase character ioctl timeout to 60 seconds.   1.02.00.037 - Fix tw_ioctl() to handle all non-data ATA passthru cmds                 for 'smartmontools' support.   1.26.00.038 - Roll driver minor version to 26 to denote kernel 2.6.                 Add support for cmds_per_lun module parameter.   1.26.00.039 - Fix bug in tw_chrdev_ioctl() polling code.                 Fix data_buffer_length usage in tw_chrdev_ioctl().                 Update contact information.*/#include <linux/module.h>MODULE_AUTHOR ("3ware Inc.");#ifdef CONFIG_SMPMODULE_DESCRIPTION ("3ware Storage Controller Linux Driver (SMP)");#elseMODULE_DESCRIPTION ("3ware Storage Controller Linux Driver");#endifMODULE_LICENSE("GPL");#include <linux/kernel.h>#include <linux/pci.h>#include <linux/time.h>#include <linux/proc_fs.h>#include <linux/sched.h>#include <linux/ioport.h>#include <linux/blkdev.h>#include <linux/hdreg.h>#include <linux/string.h>#include <linux/delay.h>#include <linux/smp.h>#include <linux/reboot.h>#include <linux/spinlock.h>#include <linux/interrupt.h>#include <linux/moduleparam.h>#include <asm/errno.h>#include <asm/io.h>#include <asm/irq.h>#include <asm/uaccess.h>#define __3W_C			/* let 3w-xxxx.h know it is use */#include "scsi.h"#include <scsi/scsi_host.h>#include "3w-xxxx.h"static int tw_chrdev_ioctl(struct inode *inode, struct file *file, unsigned int cmd, unsigned long arg);static int tw_chrdev_open(struct inode *inode, struct file *file);static int tw_chrdev_release(struct inode *inode, struct file *file);static int tw_copy_info(TW_Info *info, char *fmt, ...);static void tw_copy_mem_info(TW_Info *info, char *data, int len);static int tw_halt(struct notifier_block *nb, ulong event, void *buf);static int tw_map_scsi_sg_data(struct pci_dev *pdev, Scsi_Cmnd *cmd);static u32 tw_map_scsi_single_data(struct pci_dev *pdev, Scsi_Cmnd *cmd);static void tw_unmap_scsi_data(struct pci_dev *pdev, Scsi_Cmnd *cmd);/* Notifier block to get a notify on system shutdown/halt/reboot */static struct notifier_block tw_notifier = {	tw_halt, NULL, 0};/* File operations struct for character device */static struct file_operations tw_fops = {	.owner		= THIS_MODULE,	.ioctl		= tw_chrdev_ioctl,	.open		= tw_chrdev_open,	.release	= tw_chrdev_release};/* Globals */char *tw_driver_version="1.26.00.039";TW_Device_Extension *tw_device_extension_list[TW_MAX_SLOT];int tw_device_extension_count = 0;static int twe_major = -1;static int cmds_per_lun;/* Module parameters */module_param(cmds_per_lun, int, 0);MODULE_PARM_DESC(cmds_per_lun, "Maximum commands per LUN");/* Functions *//* This function will complete an aen request from the isr */int tw_aen_complete(TW_Device_Extension *tw_dev, int request_id) {	TW_Param *param;	unsigned short aen;	int error = 0, table_max = 0;	dprintk(KERN_WARNING "3w-xxxx: tw_aen_complete()\n");	if (tw_dev->alignment_virtual_address[request_id] == NULL) {		printk(KERN_WARNING "3w-xxxx: tw_aen_complete(): Bad alignment virtual address.\n");		return 1;	}	param = (TW_Param *)tw_dev->alignment_virtual_address[request_id];	aen = *(unsigned short *)(param->data);	dprintk(KERN_NOTICE "3w-xxxx: tw_aen_complete(): Queue'd code 0x%x\n", aen);	/* Print some useful info when certain aen codes come out */	if (aen == 0x0ff) {		printk(KERN_WARNING "3w-xxxx: scsi%d: AEN: INFO: AEN queue overflow.\n", tw_dev->host->host_no);	} else {		table_max = sizeof(tw_aen_string)/sizeof(char *);		if ((aen & 0x0ff) < table_max) {			if ((tw_aen_string[aen & 0xff][strlen(tw_aen_string[aen & 0xff])-1]) == '#') {				printk(KERN_WARNING "3w-xxxx: scsi%d: AEN: %s%d.\n", tw_dev->host->host_no, tw_aen_string[aen & 0xff], aen >> 8);			} else {				if (aen != 0x0) 					printk(KERN_WARNING "3w-xxxx: scsi%d: AEN: %s.\n", tw_dev->host->host_no, tw_aen_string[aen & 0xff]);			}		} else {			printk(KERN_WARNING "3w-xxxx: scsi%d: Received AEN %d.\n", tw_dev->host->host_no, aen);		}	}	if (aen != TW_AEN_QUEUE_EMPTY) {		tw_dev->aen_count++;		/* Now queue the code */		tw_dev->aen_queue[tw_dev->aen_tail] = aen;		if (tw_dev->aen_tail == TW_Q_LENGTH - 1) {			tw_dev->aen_tail = TW_Q_START;		} else {			tw_dev->aen_tail = tw_dev->aen_tail + 1;		}		if (tw_dev->aen_head == tw_dev->aen_tail) {			if (tw_dev->aen_head == TW_Q_LENGTH - 1) {				tw_dev->aen_head = TW_Q_START;			} else {				tw_dev->aen_head = tw_dev->aen_head + 1;			}		}		error = tw_aen_read_queue(tw_dev, request_id);		if (error) {			printk(KERN_WARNING "3w-xxxx: scsi%d: Error completing AEN.\n", tw_dev->host->host_no);			tw_dev->state[request_id] = TW_S_COMPLETED;			tw_state_request_finish(tw_dev, request_id);		}	} else {		tw_dev->state[request_id] = TW_S_COMPLETED;		tw_state_request_finish(tw_dev, request_id);	}	return 0;} /* End tw_aen_complete() *//* This function will drain the aen queue after a soft reset */int tw_aen_drain_queue(TW_Device_Extension *tw_dev){	TW_Command *command_packet;	TW_Param *param;	int request_id = 0;	u32 command_que_addr;	unsigned long command_que_value;	unsigned long param_value;	TW_Response_Queue response_queue;	u32 response_que_addr;	unsigned short aen;	unsigned short aen_code;	int finished = 0;	int first_reset = 0;	int queue = 0;	int found = 0, table_max = 0;	dprintk(KERN_NOTICE "3w-xxxx: tw_aen_drain_queue()\n");	command_que_addr = tw_dev->registers.command_que_addr;	response_que_addr = tw_dev->registers.response_que_addr;	if (tw_poll_status(tw_dev, TW_STATUS_ATTENTION_INTERRUPT | TW_STATUS_MICROCONTROLLER_READY, 30)) {		dprintk(KERN_WARNING "3w-xxxx: tw_aen_drain_queue(): No attention interrupt for card %d.\n", tw_device_extension_count);		return 1;	}	tw_clear_attention_interrupt(tw_dev);	/* Empty response queue */	tw_empty_response_que(tw_dev);	/* Initialize command packet */	if (tw_dev->command_packet_virtual_address[request_id] == NULL) {

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
99久久99久久综合| 这里只有精品免费| 久久国产精品色婷婷| 国产精品久久久久久久久搜平片 | 日韩成人午夜精品| 国产精品青草久久| 精品国产麻豆免费人成网站| 欧美丝袜丝nylons| 91欧美一区二区| 国产精品一卡二卡在线观看| 日本在线不卡视频| 亚洲一区二区欧美日韩| 综合久久综合久久| 中文字幕av不卡| 久久久久国产精品人| 日韩欧美一区二区免费| 欧美日产在线观看| 欧美亚洲动漫制服丝袜| 91网上在线视频| 懂色av噜噜一区二区三区av| 久久精品国产一区二区| 日韩精品高清不卡| 亚洲午夜影视影院在线观看| 亚洲日本成人在线观看| 国产精品久久免费看| 国产日产欧美一区| 亚洲精品一区二区在线观看| 欧美一级片在线看| 欧美一区二区三区视频免费| 欧美疯狂做受xxxx富婆| 欧美三区在线视频| 欧美日韩免费观看一区三区| 欧美色大人视频| 欧美日韩免费在线视频| 欧美精品丝袜中出| 日韩一级大片在线| 精品区一区二区| xvideos.蜜桃一区二区| 久久综合狠狠综合久久综合88| 精品国产3级a| 日本一区二区三区视频视频| 国产精品蜜臀av| 亚洲婷婷综合色高清在线| 亚洲精品日韩专区silk| 亚洲综合激情另类小说区| 亚洲国产成人91porn| 免费人成黄页网站在线一区二区 | 久久电影网站中文字幕| 久久99精品国产.久久久久久| 久久激五月天综合精品| 国产精品1024久久| 91女人视频在线观看| 91女厕偷拍女厕偷拍高清| 欧美色大人视频| 日韩欧美一级片| 中文字幕欧美三区| 亚洲综合网站在线观看| 视频一区在线播放| 国产一区二区久久| 99re这里只有精品首页| 欧美在线观看一二区| 91精品国产综合久久精品性色| 日韩欧美国产一区在线观看| 国产情人综合久久777777| 亚洲激情五月婷婷| 免费人成黄页网站在线一区二区| 国产成人在线视频播放| 91精彩视频在线观看| 欧美电影精品一区二区| 中文字幕制服丝袜成人av| 午夜精品影院在线观看| 国产一区二区三区免费播放| 97se狠狠狠综合亚洲狠狠| 欧美精品在线一区二区三区| 国产欧美日韩三级| 亚洲激情五月婷婷| 国模无码大尺度一区二区三区| 99久久精品免费看国产免费软件| 欧美精品视频www在线观看| 欧美激情一区二区三区四区| 午夜精品福利久久久| 国产精品夜夜嗨| 欧美怡红院视频| 久久精品视频一区| 日韩精品五月天| 成人免费毛片嘿嘿连载视频| 欧美日韩另类一区| 国产精品色噜噜| 国产精品综合一区二区| 在线观看视频一区二区欧美日韩| 精品日韩一区二区| 亚洲一区二区三区四区在线| 国产成人免费9x9x人网站视频| 欧美日韩视频在线一区二区| 欧美国产精品一区二区三区| 石原莉奈一区二区三区在线观看| gogo大胆日本视频一区| 精品国精品自拍自在线| 天天亚洲美女在线视频| 99国产精品99久久久久久| 2024国产精品| 午夜欧美电影在线观看| www.欧美.com| 久久婷婷成人综合色| 青青草国产精品亚洲专区无| 一本久久a久久精品亚洲| 欧美激情在线观看视频免费| 久久精品国产秦先生| 欧美精品亚洲二区| 亚洲综合一区二区三区| 99re这里都是精品| 日本一区二区免费在线观看视频 | 亚洲成人一二三| 91色视频在线| 中文字幕在线播放不卡一区| 国产精品一品二品| 久久丝袜美腿综合| 美国毛片一区二区三区| 91精品国产综合久久福利| 亚洲自拍偷拍图区| 91视频免费播放| 国产精品美日韩| www.欧美色图| **性色生活片久久毛片| 北条麻妃一区二区三区| 欧美韩国一区二区| 高清shemale亚洲人妖| 日本一区二区综合亚洲| 国产91精品一区二区| 国产亚洲综合色| 国产成人av电影| 国产女人aaa级久久久级 | 日本韩国一区二区三区| 日本一区二区三区四区在线视频| 欧美美女一区二区| 亚洲福利视频一区二区| 粉嫩嫩av羞羞动漫久久久| 久久久久久综合| 国产又黄又大久久| 久久久久久久久岛国免费| 国产一区二区0| 日韩欧美久久一区| 国产精品嫩草影院av蜜臀| 亚洲精品成人少妇| 欧美激情一二三区| 国产精品色哟哟网站| 亚洲男人的天堂在线aⅴ视频| 天天做天天摸天天爽国产一区| 亚洲特黄一级片| 亚洲一区二区在线观看视频| 亚洲aⅴ怡春院| xfplay精品久久| 亚洲午夜激情网站| 麻豆精品国产传媒mv男同| 夜夜嗨av一区二区三区网页| 亚洲尤物在线视频观看| 亚洲国产欧美在线人成| 婷婷成人激情在线网| 国产乱人伦偷精品视频不卡 | 一区二区不卡在线视频 午夜欧美不卡在| 国产视频不卡一区| 一区二区三区在线免费| 国产精品久久福利| 午夜欧美视频在线观看| 国产91高潮流白浆在线麻豆| 99国内精品久久| 欧美性猛交一区二区三区精品| 亚洲精品一二三| 欧美性极品少妇| 亚洲一区二区三区激情| 91福利精品视频| 国产成人亚洲综合色影视| 日韩中文欧美在线| 亚洲人成人一区二区在线观看| 精品久久久久久久久久久院品网| 91黄色免费网站| 不卡一区二区在线| 国产一区二区0| 六月丁香婷婷久久| 亚洲大片在线观看| 日韩理论片网站| 国产精品视频一二三区| 精品国产免费一区二区三区香蕉| 欧美日韩综合不卡| 91麻豆国产香蕉久久精品| 国产精品一区二区果冻传媒| 另类综合日韩欧美亚洲| 日韩激情视频在线观看| 亚洲国产wwwccc36天堂| 一区二区三区中文字幕电影| 国产精品久久久久影院亚瑟| 久久精品免费在线观看| 久久综合久久综合久久| 日韩欧美专区在线| 91精品久久久久久久99蜜桃| 欧美日韩精品一区二区三区四区 | 精品亚洲欧美一区| 日韩主播视频在线| 午夜天堂影视香蕉久久| 一区二区高清免费观看影视大全|