The Design and Implementation of the FreeBSD Operating System, Second Edition
Now available: The Design and Implementation of the FreeBSD Operating System (Second Edition)


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]

FreeBSD/Linux Kernel Cross Reference
sys/dev/nand/nand_bbt.h

Version: -  FREEBSD  -  FREEBSD-13-STABLE  -  FREEBSD-13-0  -  FREEBSD-12-STABLE  -  FREEBSD-12-0  -  FREEBSD-11-STABLE  -  FREEBSD-11-0  -  FREEBSD-10-STABLE  -  FREEBSD-10-0  -  FREEBSD-9-STABLE  -  FREEBSD-9-0  -  FREEBSD-8-STABLE  -  FREEBSD-8-0  -  FREEBSD-7-STABLE  -  FREEBSD-7-0  -  FREEBSD-6-STABLE  -  FREEBSD-6-0  -  FREEBSD-5-STABLE  -  FREEBSD-5-0  -  FREEBSD-4-STABLE  -  FREEBSD-3-STABLE  -  FREEBSD22  -  l41  -  OPENBSD  -  linux-2.6  -  MK84  -  PLAN9  -  xnu-8792 
SearchContext: -  none  -  3  -  10 

    1 /*      $NetBSD: nand_bbt.h,v 1.2 2011/04/04 14:25:10 ahoka Exp $       */
    2 
    3 /*-
    4  * Copyright (c) 2010 Department of Software Engineering,
    5  *                    University of Szeged, Hungary
    6  * Copyright (c) 2010 Adam Hoka <ahoka@NetBSD.org>
    7  * All rights reserved.
    8  *
    9  * This code is derived from software contributed to The NetBSD Foundation
   10  * by the Department of Software Engineering, University of Szeged, Hungary
   11  *
   12  * Redistribution and use in source and binary forms, with or without
   13  * modification, are permitted provided that the following conditions
   14  * are met:
   15  * 1. Redistributions of source code must retain the above copyright
   16  *    notice, this list of conditions and the following disclaimer.
   17  * 2. Redistributions in binary form must reproduce the above copyright
   18  *    notice, this list of conditions and the following disclaimer in the
   19  *    documentation and/or other materials provided with the distribution.
   20  *
   21  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
   22  * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   23  * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
   24  * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
   25  * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
   26  * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
   27  * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
   28  * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   29  * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
   30  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   31  * SUCH DAMAGE.
   32  */
   33 
   34 #ifndef _NAND_BBT_H_
   35 #define _NAND_BBT_H_
   36 
   37 enum {
   38         NAND_BBT_MARKER_FACTORY_BAD = 0x00,     /* 00 */
   39         NAND_BBT_MARKER_WORNOUT_BAD = 0x01,     /* 01 */
   40         NAND_BBT_MARKER_RESERVED = 0x02,        /* 10 */
   41         NAND_BBT_MARKER_GOOD = 0x03             /* 11 */
   42 };
   43 
   44 enum {
   45         NAND_BBT_OFFSET = 0x0e
   46 };
   47 
   48 void nand_bbt_init(device_t);
   49 void nand_bbt_detach(device_t);
   50 void nand_bbt_scan(device_t);
   51 bool nand_bbt_update(device_t);
   52 bool nand_bbt_load(device_t);
   53 void nand_bbt_block_mark(device_t, flash_off_t, uint8_t);
   54 void nand_bbt_block_markbad(device_t, flash_off_t);
   55 void nand_bbt_block_markfactorybad(device_t, flash_off_t);
   56 bool nand_bbt_block_isbad(device_t, flash_off_t);
   57 
   58 #endif

Cache object: 9df743e80bcc36cbaf42162bc485ac1e


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]


This page is part of the FreeBSD/Linux Linux Kernel Cross-Reference, and was automatically generated using a modified version of the LXR engine.