00001 /***************************************************************************** 00002 *! 00003 *! FILE NAME : mtd-compat.c 00004 *! 00005 *! DESCRIPTION: Compatibility functions etc for linux mtd in 00006 *! nandboot environment. 00007 *! 00008 *! --------------------------------------------------------------------------- 00009 *! (C) Copyright 2006-2007, Axis Communications AB, LUND, SWEDEN 00010 *! 00011 *! This program is free software; you can redistribute it and/or modify 00012 *! it under the terms of the GNU General Public License as published by 00013 *! the Free Software Foundation; either version 2 of the License, or 00014 *! (at your option) any later version. 00015 *! 00016 *! This program is distributed in the hope that it will be useful, 00017 *! but WITHOUT ANY WARRANTY; without even the implied warranty of 00018 *! MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00019 *! GNU General Public License for more details. 00020 *! 00021 *! You should have received a copy of the GNU General Public License 00022 *! along with this program; if not, write to the Free Software 00023 *! Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 00024 *! 00025 *!***************************************************************************/ 00026 00027 #include <linux/types.h> 00028 #include "mtd.h" 00029 00030 int add_mtd_device(struct mtd_info *mtd) { return 0; } 00031 int del_mtd_device (struct mtd_info *mtd) { return 0; } 00032 00033 struct mtd_info *get_mtd_device(struct mtd_info *mtd, int num) { return 0; } 00034 00035 void put_mtd_device(struct mtd_info *mtd) {} 00036 00037 void register_mtd_user (struct mtd_notifier *new) {} 00038 int unregister_mtd_user (struct mtd_notifier *old) { return 0; } 00039 00040 //int nand_update_bbt (struct mtd_info *mtd, loff_t offs) { BUG(); } 00041 //int nand_default_bbt (struct mtd_info *mtd) { BUG(); } 00042 //int nand_isbad_bbt (struct mtd_info *mtd, loff_t offs, int allowbbt) { BUG(); } 00043 00044 void simple_printk(const char *str) { puts(str); putc('\r'); } 00045 00046 /***************************** END OF FILE *****************************/