From owner-p4-projects@FreeBSD.ORG Sun Mar 7 15:47:37 2010 Return-Path: Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 902D7106566C; Sun, 7 Mar 2010 15:47:37 +0000 (UTC) Delivered-To: perforce@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 54B4A106566B for ; Sun, 7 Mar 2010 15:47:37 +0000 (UTC) (envelope-from raj@freebsd.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 283698FC17 for ; Sun, 7 Mar 2010 15:47:37 +0000 (UTC) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.3/8.14.3) with ESMTP id o27FlbKD087651 for ; Sun, 7 Mar 2010 15:47:37 GMT (envelope-from raj@freebsd.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.14.3/8.14.3/Submit) id o27Flatl087649 for perforce@freebsd.org; Sun, 7 Mar 2010 15:47:36 GMT (envelope-from raj@freebsd.org) Date: Sun, 7 Mar 2010 15:47:36 GMT Message-Id: <201003071547.o27Flatl087649@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to raj@freebsd.org using -f From: Rafal Jaworowski To: Perforce Change Reviews Precedence: bulk Cc: Subject: PERFORCE change 175454 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.5 List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 07 Mar 2010 15:47:37 -0000 http://p4web.freebsd.org/chv.cgi?CH=175454 Change 175454 by raj@raj_nand on 2010/03/07 15:47:34 Initial import of the NAND simulator (NANDsim) This consists of the following elements: o kernel side NFC back-end driver, which plugs into the NAND framework APIs as if it were a hardware controller with real NAND chips connected to it o userspace control applicaton (/usr/sbin/nandsim) From user perspective, the NANDsim allows for imitating ONFI-compliant devices as if they were attached to the system via a virtual controller. The NANDsim allows to configure the simulated environment; among major features it lets the user perform the following: * retrieve simulation(s) status * add new controller instance * add new chip instance(s) * delete chip instance(s) * delete controller * start simulation (controller) * stop simulation (controller) * errors management (on/off ECC, error injection, bad block injection etc.) * capture and print activity log * capture and print statistics * dump simulation state to a snapshot file * restore simulation from a dump file Obtained from: Juniper Networks, Semihalf Affected files ... .. //depot/projects/nand2/sys/dev/nand/nandsim.c#1 add .. //depot/projects/nand2/sys/dev/nand/nandsim.h#1 add .. //depot/projects/nand2/sys/dev/nand/nandsim_chip.c#1 add .. //depot/projects/nand2/sys/dev/nand/nandsim_chip.h#1 add .. //depot/projects/nand2/sys/dev/nand/nandsim_ctrl.c#1 add .. //depot/projects/nand2/sys/dev/nand/nandsim_log.c#1 add .. //depot/projects/nand2/sys/dev/nand/nandsim_log.h#1 add .. //depot/projects/nand2/sys/dev/nand/nandsim_swap.c#1 add .. //depot/projects/nand2/sys/dev/nand/nandsim_swap.h#1 add .. //depot/projects/nand2/usr.sbin/nandsim/Makefile#1 add .. //depot/projects/nand2/usr.sbin/nandsim/nandsim.c#1 add .. //depot/projects/nand2/usr.sbin/nandsim/nandsim_cfgparse.c#1 add .. //depot/projects/nand2/usr.sbin/nandsim/nandsim_cfgparse.h#1 add .. //depot/projects/nand2/usr.sbin/nandsim/nandsim_rcfile.c#1 add .. //depot/projects/nand2/usr.sbin/nandsim/nandsim_rcfile.h#1 add .. //depot/projects/nand2/usr.sbin/nandsim/sample.conf#1 add .. //depot/projects/nand2/usr.sbin/nandsim/synopsis.txt#1 add Differences ...