]>
git.ipfire.org Git - thirdparty/systemd.git/blob - src/udev/mtd_probe/mtd_probe.h
4 * Copyright (C) 2010 - Maxim Levitsky
6 * mtd_probe is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
11 * mtd_probe is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
16 * You should have received a copy of the GNU General Public License
17 * along with mtd_probe; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin St, Fifth Floor,
19 * Boston, MA 02110-1301 USA
22 #include <mtd/mtd-user.h>
26 /* Full oob structure as written on the flash */
37 /* one sector is always 512 bytes, but it can consist of two nand pages */
38 #define SM_SECTOR_SIZE 512
40 /* oob area is also 16 bytes, but might be from two pages */
41 #define SM_OOB_SIZE 16
43 /* This is maximum zone size, and all devices that have more that one zone
45 #define SM_MAX_ZONE_SIZE 1024
47 /* support for small page nand */
48 #define SM_SMALL_PAGE 256
49 #define SM_SMALL_OOB_SIZE 8
51 void probe_smart_media(int mtd_fd
, mtd_info_t
*info
);