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

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

?? ftl.patch

?? linux交叉編譯環(huán)境個軟件和內(nèi)核的補丁。
?? PATCH
?? 第 1 頁 / 共 4 頁
字號:
+ diff -u linux-2.2.13/include/linux/blk.h.ORIG linux-2.2.13/include/linux/blk.h--- linux-2.2.13/include/linux/blk.h.ORIG	Mon Jan 10 13:54:15 2000+++ linux-2.2.13/include/linux/blk.h	Mon Jan 10 20:22:48 2000@@ -63,6 +63,7 @@ extern int ez_init(void); extern int bpcd_init(void); extern int ps2esdi_init(void);+extern int ftl_init(void);  extern void set_device_ro(kdev_t dev,int flag); void add_blkdev_randomness(int major);+ diff -u linux-2.2.13/include/linux/major.h.ORIG linux-2.2.13/include/linux/major.h--- linux-2.2.13/include/linux/major.h.ORIG	Mon Jan 10 01:30:12 2000+++ linux-2.2.13/include/linux/major.h	Mon Jan 10 20:21:13 2000@@ -74,6 +74,7 @@ #define APBLOCK_MAJOR   38   /* AP1000 Block device */ #define DDV_MAJOR       39   /* AP1000 DDV block device */ #define NBD_MAJOR	43   /* Network block device	*/+#define FTL_MAJOR	44   /* FLASH Translation Layer */ #define RISCOM8_NORMAL_MAJOR 48 #define DAC960_MAJOR	48	/* 48..55 */ #define RISCOM8_CALLOUT_MAJOR 49+ diff -u linux-2.2.13/include/linux/ftl.h.ORIG linux-2.2.13/include/linux/ftl.h--- linux-2.2.13/include/linux/ftl.h.ORIG	Mon Jan 10 20:34:40 2000+++ linux-2.2.13/include/linux/ftl.h	Mon Jan 10 20:34:43 2000@@ -0,0 +1,73 @@+/*+ * ftl.h 1.6 1999/08/28 04:12:33+ *+ * The contents of this file are subject to the Mozilla Public License+ * Version 1.1 (the "License"); you may not use this file except in+ * compliance with the License. You may obtain a copy of the License+ * at http://www.mozilla.org/MPL/+ *+ * Software distributed under the License is distributed on an "AS IS"+ * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See+ * the License for the specific language governing rights and+ * limitations under the License. + *+ * The initial developer of the original code is David A. Hinds+ * <dhinds@hyper.stanford.edu>.  Portions created by David A. Hinds+ * are Copyright (C) 1999 David A. Hinds.  All Rights Reserved.+ *+ * Alternatively, the contents of this file may be used under the+ * terms of the GNU Public License version 2 (the "GPL"), in which+ * case the provisions of the GPL are applicable instead of the+ * above.  If you wish to allow the use of your version of this file+ * only under the terms of the GPL and not to allow others to use+ * your version of this file under the MPL, indicate your decision by+ * deleting the provisions above and replace them with the notice and+ * other provisions required by the GPL.  If you do not delete the+ * provisions above, a recipient may use your version of this file+ * under either the MPL or the GPL.+ */++#ifndef _LINUX_FTL_H+#define _LINUX_FTL_H++typedef struct erase_unit_header_t {+    u_char	LinkTargetTuple[5];+    u_char	DataOrgTuple[10];+    u_char	NumTransferUnits;+    u_int	EraseCount;+    u_short	LogicalEUN;+    u_char	BlockSize;+    u_char	EraseUnitSize;+    u_short	FirstPhysicalEUN;+    u_short	NumEraseUnits;+    u_int	FormattedSize;+    u_int	FirstVMAddress;+    u_short	NumVMPages;+    u_char	Flags;+    u_char	Code;+    u_int	SerialNumber;+    u_int	AltEUHOffset;+    u_int	BAMOffset;+    u_char	Reserved[12];+    u_char	EndTuple[2];+} erase_unit_header_t;++/* Flags in erase_unit_header_t */+#define HIDDEN_AREA		0x01+#define REVERSE_POLARITY	0x02+#define DOUBLE_BAI		0x04++/* Definitions for block allocation information */++#define BLOCK_FREE(b)		((b) == 0xffffffff)+#define BLOCK_DELETED(b)	(((b) == 0) || ((b) == 0xfffffffe))++#define BLOCK_TYPE(b)		((b) & 0x7f)+#define BLOCK_ADDRESS(b)	((b) & ~0x7f)+#define BLOCK_NUMBER(b)		((b) >> 9)+#define BLOCK_CONTROL		0x30+#define BLOCK_DATA		0x40+#define BLOCK_REPLACEMENT	0x60+#define BLOCK_BAD		0x70++#endif /* _LINUX_FTL_H */+ diff -u linux-2.2.13/drivers/block/Config.in.ORIG linux-2.2.13/drivers/block/Config.in--- linux-2.2.13/drivers/block/Config.in.ORIG	Tue Oct 19 22:29:30 1999+++ linux-2.2.13/drivers/block/Config.in	Mon Jan 10 20:18:12 2000@@ -116,6 +116,11 @@ if [ "$CONFIG_BLK_DEV_RAM" = "y" ]; then   bool '   Initial RAM disk (initrd) support' CONFIG_BLK_DEV_INITRD fi++if [ "$CONFIG_FLASH" = "y" ]; then+  bool 'Flash translation layer support' CONFIG_BLK_DEV_FTL+fi+ tristate 'XT hard disk support' CONFIG_BLK_DEV_XD if [ "$CONFIG_PCI" = "y" ]; then   tristate 'Mylex DAC960/DAC1100 PCI RAID Controller support' CONFIG_BLK_DEV_DAC960+ diff -u linux-2.2.13/drivers/block/Makefile.ORIG linux-2.2.13/drivers/block/Makefile--- linux-2.2.13/drivers/block/Makefile.ORIG	Tue Oct 19 22:29:41 1999+++ linux-2.2.13/drivers/block/Makefile	Mon Jan 10 20:18:18 2000@@ -86,6 +86,10 @@   endif endif +ifeq ($(CONFIG_BLK_DEV_FTL),y)+L_OBJS += ftl.o+endif+ ifeq ($(CONFIG_BLK_DEV_LOOP),y) LX_OBJS += loop.o else+ diff -u linux-2.2.13/drivers/block/ftl.c.ORIG linux-2.2.13/drivers/block/ftl.c--- linux-2.2.13/drivers/block/ftl.c.ORIG	Mon Jan 10 20:33:48 2000+++ linux-2.2.13/drivers/block/ftl.c	Mon Jan 10 23:49:45 2000@@ -0,0 +1,1511 @@+/*+ * 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 of the License, 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; if not, write to the Free Software+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA+ *+ * ----------------------------+ *+ * This was originally part of the pcmcia 3.x.x distributions.+ * It has been modified to work with the flash device /dev/flash0+ * and redistrubited as GPL according to the copyright notice.+ *+ * Changes are (c) Alexander Larsson (alla@lysator.liu.se or alex@signum.se)+ * and (c) Wolfgang Denk <wd@denx.de>.+ *+ * Original notice follows:+ *======================================================================+ *+ *  A Flash Translation Layer memory card driver+ *+ *  This driver implements a disk-like block device driver with an+ *  apparent block size of 512 bytes for flash memory cards.+ *+ *  ftl_cs.c 1.55 1999/09/21 15:21:55+ *+ *  The contents of this file are subject to the Mozilla Public+ *  License Version 1.1 (the "License"); you may not use this file+ *  except in compliance with the License. You may obtain a copy of+ *  the License at http://www.mozilla.org/MPL/+ *+ *  Software distributed under the License is distributed on an "AS+ *  IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or+ *  implied. See the License for the specific language governing+ *  rights and limitations under the License.+ *+ *  The initial developer of the original code is David A. Hinds+ *  <dhinds@hyper.stanford.edu>.  Portions created by David A. Hinds+ *  are Copyright (C) 1999 David A. Hinds.  All Rights Reserved.+ *+ *  Alternatively, the contents of this file may be used under the+ *  terms of the GNU Public License version 2 (the "GPL"), in which+ *  case the provisions of the GPL are applicable instead of the+ *  above.  If you wish to allow the use of your version of this file+ *  only under the terms of the GPL and not to allow others to use+ *  your version of this file under the MPL, indicate your decision+ *  by deleting the provisions above and replace them with the notice+ *  and other provisions required by the GPL.  If you do not delete+ *  the provisions above, a recipient may use your version of this+ *  file under either the MPL or the GPL.+ *+ *  LEGAL NOTE: The FTL format is patented by M-Systems.  They have+ *  granted a license for its use with PCMCIA devices:+ *+ *   "M-Systems grants a royalty-free, non-exclusive license under+ *    any presently existing M-Systems intellectual property rights+ *    necessary for the design and development of FTL-compatible+ *    drivers, file systems and utilities using the data formats with+ *    PCMCIA PC Cards as described in the PCMCIA Flash Translation+ *    Layer (FTL) Specification."+ *+ *  Use of the FTL format for non-PCMCIA applications may be an+ *  infringement of these patents.  For additional information,+ *  contact M-Systems (http://www.m-sys.com) directly.+ *+ *======================================================================+ */++/**+   TODO:+   * Sometimes an erase is done and the newly erased sector is not+     immediately needed. Then the code currently unnessecary blocks.+     To fix this i would need to add a schedule_erase_sector to the+     flash interface.+ */++//#define PSYCHO_DEBUG++#include <linux/kernel.h>+#include <linux/init.h>+#include <linux/sched.h>+#include <linux/ptrace.h>+#include <linux/malloc.h>+#include <linux/string.h>+#include <linux/timer.h>+#include <linux/major.h>+#include <linux/fs.h>+#include <linux/ioctl.h>+#include <linux/hdreg.h>+#include <linux/vmalloc.h>+#include <linux/flash.h>+#include <linux/major.h>+#include <linux/ftl.h>+#include <linux/init.h>+#include <linux/version.h>+#include <asm/io.h>+#include <asm/system.h>+#include <asm/segment.h>+#include <asm/uaccess.h>+#include <stdarg.h>++#undef FLASH_DEBUG++#ifdef FLASH_DEBUG+#define DEBUG(args...) printk(args)+#else+#define DEBUG(args...)+#endif++/*====================================================================*/++/* Boot parameters: */++struct boot_ftl {+  int minor;+  off_t start;+  size_t size;+};++static struct boot_ftl boot_table[] __initdata = {+  /*+   * Definitions for FLASH Device 0:+   */+  { 0,          0,  128 << 10 },  /*   0    - 128 kB = 0.125 MB -> Monitor	*/+  { 0,  128 << 10,  896 << 10 },  /* 128 kB -   1 MB = 0.875 MB -> Linux-1	*/+  { 0,    1 << 20,    1 << 20 },  /*   1 MB -   2 MB = 1.000 MB -> Linux-2	*/+  { 0,    2 << 20,    2 << 20 },  /*   2 MB -   4 MB = 2.000 MB -> User Data	*/+  /*+   * Definitions for FLASH Device 1:+   */+  { 1,          0,    1 << 20 },  /*  0 - 1 MB = 1 MB	*/+  { 1,    1 << 20,    1 << 20 },  /*  1 - 2 MB = 1 MB	*/+  { 1,    2 << 20,    2 << 20 },  /*  2 - 4 MB = 2 MB	*/+};+++++/*====================================================================*/++/* Parameters that can be set with 'insmod' */++static int shuffle_freq = 50;++/*+MODULE_PARM(shuffle_freq, "i");+*/++/*====================================================================*/++/* Funky stuff for setting up a block device */+#define MAJOR_NR		FTL_MAJOR+#define DEVICE_NAME		"ftl"+#define DEVICE_REQUEST		do_ftl_request+#define DEVICE_ON(device)+#define DEVICE_OFF(device)+#define DEVICE_NR(minor)	(MINOR(minor)>>4)+#define DEVICE_NO_RANDOM++#define PART_NR(minor)		((minor) & 0x0F)+#define MINOR_NR(dev,part)	(((dev)<<4) + (part))++#include <linux/blk.h>++/* Linux version stuff */+#if LINUX_VERSION_CODE < KERNEL_VERSION(2,3,1)+typedef struct wait_queue *wait_queue_head_t;+#endif++/*====================================================================*/++/* Maximum number of separate ftl devices we'll allow */+#define MAX_DEV		8 /* /devftl[a-h] */++/* Maximum number of partitions in an flash memory */+#define PART_BITS	4+#define MAX_PART	16 /* /dev/ftla + /dev/ftla[1-15] */++/* Maximum number of outstanding erase requests per socket */+#define MAX_ERASE	8++/* Sector size -- shouldn't need to change */+#define SECTOR_SIZE	512++/* Block IO request handler stuff */+static void do_ftl_request(void);++typedef struct mem_region_info_t {+    u_int		RegionSize;+    u_int		BlockSize;+}  mem_region_info_t;+++/* Partition state flags */+#define FTL_FORMATTED	0x01++/* Transfer unit states */+#define XFER_UNKNOWN	0x00+#define XFER_ERASING	0x01+#define XFER_ERASED	0x02+#define XFER_PREPARED	0x03+#define XFER_FAILED	0x04++/* Each memory region corresponds to a minor device */+typedef struct ftl_dev_t {+    flash_device_info_t *flash;+    off_t base_offset;+    kdev_t		dev; /* The whole device (eg. /dev/ftla) */+    u_int		state;+    u_int		*VirtualBlockMap;+    u_int		*VirtualPageMap;+    u_int		FreeTotal;+    struct eun_info_t {+	u_int			Offset;+	u_int			EraseCount;+	u_int			Free;+	u_int			Deleted;+    } *EUNInfo;+    struct xfer_info_t {+	u_int			Offset;+	u_int			EraseCount;+	u_short			state;+    } *XferInfo;+    u_short		bam_index;+    u_int		*bam_cache;+    u_short		DataUnits;+    u_int		BlocksPerUnit;+    erase_unit_header_t	header;+    mem_region_info_t	region;+    int			open;+    int			locked;++    /*+    eraseq_handle_t	eraseq_handle;+    eraseq_entry_t	eraseq[MAX_ERASE];+    wait_queue_head_t	erase_pending;+  */+} ftl_dev_t;++static ftl_dev_t *dev_table[MAX_DEV] = { NULL, /* ... */ };++static struct hd_struct ftl_hd[MINOR_NR(MAX_DEV, 0)];+static int ftl_sizes[MINOR_NR(MAX_DEV, 0)];+static int ftl_blocksizes[MINOR_NR(MAX_DEV, 0)];++static wait_queue_head_t ftl_wait_open = NULL;++static void ftl_geninit(struct gendisk *gendisk);++static struct gendisk ftl_gendisk = {+    0,			/* Major device number */+    "ftl",+    PART_BITS,		/* Bits in partition # */+    MAX_PART,		/* Partitions per device */+    MAX_DEV,        	/* maximum number of devices */+    ftl_geninit,        /* init function */+    ftl_hd,		/* hd_struct */+    ftl_sizes,		/* block sizes */+    MAX_DEV,	        /* number of "real" devices */+    NULL,+    NULL+};++/*====================================================================*/++static int ftl_ioctl(struct inode *inode, struct file *file,+		     u_int cmd, u_long arg);+static int ftl_open(struct inode *inode, struct file *file);+static int ftl_close(struct inode *inode, struct file *file);+static int ftl_reread_partitions(int minor);++static struct file_operations ftl_blk_fops = {+    NULL,		/* lseek */+    block_read,		/* read */+    block_write,	/* write */

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
麻豆国产精品官网| 精品久久久久久最新网址| 国产精品美女一区二区三区| 国产乱国产乱300精品| 欧美精品一区二区精品网| 狠狠色丁香婷婷综合| 久久久不卡影院| 99久久免费国产| 一区二区三区视频在线观看| 欧美日韩精品一区二区三区四区| 午夜成人在线视频| 久久人人97超碰com| 成人免费视频国产在线观看| 亚洲激情五月婷婷| 在线播放欧美女士性生活| 免费人成黄页网站在线一区二区| 精品国产污网站| 99精品欧美一区二区三区小说 | 欧美日韩一区二区在线视频| 日本aⅴ亚洲精品中文乱码| 久久久国产一区二区三区四区小说 | 久久一区二区三区国产精品| 成人aa视频在线观看| 一区二区三区欧美| 日韩视频免费观看高清在线视频| 国产成人免费视频网站| 一区二区久久久久久| 精品少妇一区二区三区| eeuss鲁片一区二区三区在线看| 一区二区三区免费在线观看| 欧美r级电影在线观看| 成人国产免费视频| 日韩高清在线电影| 中文字幕在线观看不卡视频| 777久久久精品| 不卡av在线免费观看| 日韩成人伦理电影在线观看| 国产精品视频线看| 欧美一区二区三区视频在线| 波多野结衣亚洲| 蜜桃免费网站一区二区三区| 亚洲欧美一区二区三区国产精品| 日韩美一区二区三区| 色综合天天天天做夜夜夜夜做| 久久99精品视频| 亚洲一区二区影院| 国产亚洲成aⅴ人片在线观看| 欧美老肥妇做.爰bbww视频| 成人午夜激情片| 久久精品免费看| 亚洲成av人片在www色猫咪| 欧美极品aⅴ影院| 日韩久久久精品| 欧美日韩在线三级| caoporn国产一区二区| 狠狠色狠狠色综合| 日本在线不卡视频| 亚洲一区二区欧美日韩| 中文字幕在线观看不卡| 久久精品人人爽人人爽| 日韩欧美资源站| 欧美丰满高潮xxxx喷水动漫| 91在线观看免费视频| 国产成人在线观看免费网站| 日本vs亚洲vs韩国一区三区| 亚洲风情在线资源站| 一区二区三区在线观看国产| 国产精品少妇自拍| 国产香蕉久久精品综合网| 欧美一级片免费看| 91精品一区二区三区久久久久久| 91电影在线观看| 色域天天综合网| 99国产精品久久久久久久久久久 | 国产亚洲短视频| 久久午夜羞羞影院免费观看| 精品国产一区二区三区不卡 | 中文字幕一区av| 国产精品色在线观看| 欧美国产激情一区二区三区蜜月| 久久久久久99久久久精品网站| 2022国产精品视频| 久久久久久一二三区| 国产午夜精品美女毛片视频| 久久色中文字幕| 国产亚洲成年网址在线观看| 国产女人18毛片水真多成人如厕 | 在线观看三级视频欧美| 91精品国产综合久久精品性色| 欧美日韩国产成人在线免费| 欧美日韩高清在线| 日韩视频在线永久播放| 2017欧美狠狠色| 中文字幕精品三区| 亚洲欧洲日韩一区二区三区| 亚洲人成网站影音先锋播放| 亚洲激情图片小说视频| 日韩国产欧美在线观看| 精品一区二区在线播放| 国产精品一区二区不卡| 99国产一区二区三精品乱码| 欧美中文字幕一区二区三区亚洲| 欧美日韩亚洲综合一区二区三区| 欧美日韩一区高清| 午夜国产精品一区| 日本欧美在线观看| 国产麻豆精品在线观看| 丰满白嫩尤物一区二区| 色又黄又爽网站www久久| 精品视频在线免费| 26uuu欧美| 中文字幕中文字幕中文字幕亚洲无线| 一区二区三区自拍| 久久精品久久综合| 99久久久久久99| 777色狠狠一区二区三区| 国产日产欧美精品一区二区三区| 亚洲精品亚洲人成人网| 美脚の诱脚舐め脚责91| 99久久伊人网影院| 欧美一区二区二区| 亚洲欧洲性图库| 老汉av免费一区二区三区| 99麻豆久久久国产精品免费| 在线成人午夜影院| 亚洲欧洲精品一区二区三区| 日日欢夜夜爽一区| caoporm超碰国产精品| 日韩免费在线观看| 色爱区综合激月婷婷| 日韩精品中午字幕| 国产精品天干天干在观线| 亚洲午夜电影在线| 韩国精品免费视频| 欧美卡1卡2卡| 亚洲色图制服丝袜| 国产福利精品导航| 69堂成人精品免费视频| 亚洲日本丝袜连裤袜办公室| 精品在线你懂的| 欧美精品少妇一区二区三区| 成人免费视频在线观看| 精品一区二区三区在线播放| 99久久99精品久久久久久| 久久综合色8888| 日本午夜精品一区二区三区电影| 91丨国产丨九色丨pron| 国产欧美日本一区二区三区| 日韩av一区二区三区四区| 在线观看日韩精品| 国产精品久久久久久久久免费丝袜| 色综合久久久久久久久| 久久久91精品国产一区二区三区| 日本怡春院一区二区| 欧美性videosxxxxx| 中文字幕人成不卡一区| 国产91丝袜在线观看| 精品国产一区二区在线观看| 欧美a一区二区| 欧美精品日韩一区| 日韩精品一级二级| 欧美精品123区| 日韩黄色在线观看| 欧美日韩精品一区二区三区蜜桃| 亚洲激情av在线| 91色九色蝌蚪| 一区2区3区在线看| 欧洲精品在线观看| 亚洲一区二区欧美激情| 日本韩国精品在线| 亚洲日本护士毛茸茸| av午夜精品一区二区三区| 亚洲天堂成人在线观看| 成人短视频下载| 亚洲欧美另类在线| 日本高清不卡视频| 亚洲成人动漫在线免费观看| 欧美性一二三区| 奇米四色…亚洲| www日韩大片| 国产成人福利片| 最新热久久免费视频| 在线免费观看成人短视频| 亚洲夂夂婷婷色拍ww47| 欧美日韩一区在线观看| 日本欧洲一区二区| 久久久五月婷婷| a亚洲天堂av| 亚洲线精品一区二区三区八戒| 欧美日韩国产精品成人| 日本成人在线电影网| 精品久久久久一区二区国产| 国产精品一品视频| 亚洲欧洲制服丝袜| 91精品国产色综合久久| 国产精品91一区二区| 亚洲精品第1页| 欧美一级精品在线| 成人黄色av电影| 午夜伊人狠狠久久|