1 1.1 ttoth /*- 2 1.1 ttoth * Copyright (c) 2012 Department of Software Engineering, 3 1.1 ttoth * University of Szeged, Hungary 4 1.1 ttoth * Copyright (c) 2012 Tamas Toth <ttoth (at) inf.u-szeged.hu> 5 1.1 ttoth * All rights reserved. 6 1.1 ttoth * 7 1.1 ttoth * This code is derived from software contributed to The NetBSD Foundation 8 1.1 ttoth * by the Department of Software Engineering, University of Szeged, Hungary 9 1.1 ttoth * 10 1.1 ttoth * Redistribution and use in source and binary forms, with or without 11 1.1 ttoth * modification, are permitted provided that the following conditions 12 1.1 ttoth * are met: 13 1.1 ttoth * 1. Redistributions of source code must retain the above copyright 14 1.1 ttoth * notice, this list of conditions and the following disclaimer. 15 1.1 ttoth * 2. Redistributions in binary form must reproduce the above copyright 16 1.1 ttoth * notice, this list of conditions and the following disclaimer in the 17 1.1 ttoth * documentation and/or other materials provided with the distribution. 18 1.1 ttoth * 19 1.1 ttoth * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 20 1.1 ttoth * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 21 1.1 ttoth * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 22 1.1 ttoth * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 23 1.1 ttoth * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 24 1.1 ttoth * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 25 1.1 ttoth * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED 26 1.1 ttoth * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, 27 1.1 ttoth * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 28 1.1 ttoth * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 29 1.1 ttoth * SUCH DAMAGE. 30 1.1 ttoth */ 31 1.1 ttoth 32 1.1 ttoth #ifndef _CHFS_MAKEFS_H 33 1.1 ttoth #define _CHFS_MAKEFS_H 34 1.1 ttoth 35 1.1 ttoth #define TYPE_NOR 0 36 1.1 ttoth #define TYPE_NAND 1 37 1.1 ttoth 38 1.1 ttoth #define DEFAULT_PAGESIZE 2048 39 1.1 ttoth #define DEFAULT_ERASEBLOCK 131072 40 1.1 ttoth #define DEFAULT_MEDIATYPE TYPE_NAND 41 1.1 ttoth 42 1.1 ttoth typedef struct { 43 1.1 ttoth int pagesize; /* page size */ 44 1.1 ttoth int eraseblock; /* eraseblock size */ 45 1.1 ttoth int mediatype; /* type of the media, 0 (nor) or 1 (nand) */ 46 1.1 ttoth } chfs_opt_t; 47 1.1 ttoth 48 1.1 ttoth #endif 49