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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? 3w-xxxx.c

?? Linux Kernel 2.6.9 for OMAP1710
?? C
?? 第 1 頁 / 共 5 頁
字號:
/*    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) {

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲成人av在线电影| a美女胸又www黄视频久久| 国产一区二区在线看| 99精品国产视频| 337p日本欧洲亚洲大胆精品| 亚洲在线视频免费观看| 国产一区二区精品久久91| 欧美日韩另类一区| 亚洲日本中文字幕区| 国产一区不卡视频| 欧美一二三区在线观看| 午夜精品久久久久久久久久久 | 欧美高清一级片在线观看| 日日摸夜夜添夜夜添国产精品| 成人性生交大片免费看中文| 日韩视频永久免费| 免费高清在线一区| 欧美精品成人一区二区三区四区| 亚洲人成精品久久久久久| 国产成人鲁色资源国产91色综 | 欧美日韩视频第一区| 亚洲欧洲日韩av| 成人午夜激情在线| 久久久久国产精品麻豆| 久久91精品国产91久久小草| 欧美一区二区视频在线观看2022| 亚洲一区二区三区美女| 91国偷自产一区二区开放时间| 国产精品久久99| 成人美女视频在线观看| 亚洲国产高清aⅴ视频| 国产成都精品91一区二区三| 国产无一区二区| 处破女av一区二区| 国产欧美日韩视频在线观看| 国产1区2区3区精品美女| 国产三级精品视频| 成人av午夜电影| 国产精品久久三| 色噜噜狠狠色综合中国| 亚洲欧美一区二区三区孕妇| 色屁屁一区二区| 亚洲午夜久久久久久久久久久| 欧美性做爰猛烈叫床潮| 日韩精品亚洲一区二区三区免费| 欧美一区二区播放| 国产a级毛片一区| 国产精品久久三| 日本黄色一区二区| 美女一区二区久久| 久久精品综合网| 色嗨嗨av一区二区三区| 午夜精品久久久久久久99水蜜桃| 欧美一级高清片在线观看| 狠狠v欧美v日韩v亚洲ⅴ| 国产欧美综合在线观看第十页| 成人精品视频.| 亚洲乱码国产乱码精品精的特点| 欧美性色黄大片手机版| 精品亚洲aⅴ乱码一区二区三区| 久久先锋影音av| 在线观看一区日韩| 美女视频第一区二区三区免费观看网站| 精品国产凹凸成av人导航| 丁香亚洲综合激情啪啪综合| 亚洲综合视频网| 久久欧美一区二区| 色999日韩国产欧美一区二区| 青娱乐精品视频在线| 中文字幕av一区二区三区| 欧美性猛交一区二区三区精品 | 国产日韩欧美在线一区| 日本国产一区二区| 经典三级一区二区| 亚洲国产一二三| 久久精品视频一区二区三区| 欧美色爱综合网| 成人精品视频一区二区三区| 午夜一区二区三区在线观看| 中文字幕va一区二区三区| 在线成人免费视频| 99免费精品在线观看| 麻豆成人久久精品二区三区小说| 自拍偷自拍亚洲精品播放| 精品国免费一区二区三区| 色欧美片视频在线观看在线视频| 国产一区二区三区av电影| 亚洲午夜电影在线观看| 中文字幕中文字幕一区| 精品国产麻豆免费人成网站| 欧美日本精品一区二区三区| 99re66热这里只有精品3直播 | 亚洲综合精品久久| 国产精品无圣光一区二区| 91精品国产91综合久久蜜臀| 在线亚洲一区二区| 99久久精品免费精品国产| 国产麻豆精品一区二区| 蜜臀精品久久久久久蜜臀| 亚洲午夜免费视频| 一区二区成人在线| 亚洲三级视频在线观看| 亚洲欧洲在线观看av| 欧美激情在线看| 久久久久国产精品麻豆ai换脸 | 亚洲三级小视频| 日本一二三不卡| 国产视频一区二区在线观看| 精品国产免费视频| 精品国免费一区二区三区| 日韩一级黄色片| 日韩手机在线导航| 精品久久国产老人久久综合| 91精品国产免费| 日韩欧美黄色影院| 亚洲丝袜美腿综合| 亚洲欧美成aⅴ人在线观看| 国产精品毛片久久久久久| 国产日本欧美一区二区| 国产日韩欧美a| 国产精品久久久久久久久快鸭| 欧美国产禁国产网站cc| 国产精品色一区二区三区| 中文字幕佐山爱一区二区免费| 最新久久zyz资源站| 一区二区三区日韩欧美精品| 亚洲精品成人精品456| 亚洲电影视频在线| 日本免费在线视频不卡一不卡二| 免费成人在线视频观看| 国产成人av电影在线播放| 成人丝袜高跟foot| 色哟哟欧美精品| 欧洲一区二区三区在线| 欧美精品视频www在线观看 | 蜜臀av一区二区三区| 韩国v欧美v亚洲v日本v| 成人妖精视频yjsp地址| 91国产免费看| 精品乱码亚洲一区二区不卡| 中文无字幕一区二区三区| 亚洲视频一区在线| 日韩av在线免费观看不卡| 国产老肥熟一区二区三区| www.av精品| 在线成人av影院| 欧美国产综合色视频| 亚洲第一福利一区| 韩国精品免费视频| 在线免费观看日本欧美| 精品免费99久久| 亚洲精品成人少妇| 国产一区二区导航在线播放| 91丨国产丨九色丨pron| 日韩一区国产二区欧美三区| 国产精品青草久久| 美女脱光内衣内裤视频久久网站 | 国产成人午夜99999| 欧美综合欧美视频| 国产欧美精品一区二区三区四区| 一区二区三区日韩欧美精品| 狠狠久久亚洲欧美| 欧美日韩在线播放三区四区| 久久精品欧美日韩精品 | 国内一区二区在线| 在线观看精品一区| 欧美国产成人在线| 久久激情五月婷婷| 欧美色网一区二区| 国产精品久久久久aaaa樱花| 美女脱光内衣内裤视频久久网站 | 偷拍与自拍一区| 91丨九色丨尤物| 中文字幕免费一区| 国产一区二区三区四区五区入口| 欧美三电影在线| 亚洲女子a中天字幕| www.久久精品| 国产精品久久久久一区二区三区共| 奇米色777欧美一区二区| 在线看一区二区| 亚洲精品国久久99热| 成人黄色在线视频| 国产欧美一区二区三区网站| 久久99深爱久久99精品| 宅男在线国产精品| 午夜精品久久久久久久久久| 欧美亚洲精品一区| 亚洲自拍偷拍综合| 欧美专区在线观看一区| 亚洲精品亚洲人成人网在线播放| 国产精品1区2区| 国产日韩精品久久久| 黄一区二区三区| 精品处破学生在线二十三| 黄页视频在线91| 久久久久久久久久久99999| 国精产品一区一区三区mba桃花| 欧美成人乱码一区二区三区| 美女视频黄 久久|