linux/drivers/mtd/nand/raw/sm_common.h

/* SPDX-License-Identifier: GPL-2.0-only */
/*
 * Copyright © 2009 - Maxim Levitsky
 * Common routines & support for SmartMedia/xD format
 */
#include <linux/bitops.h>
#include <linux/mtd/mtd.h>

/* Full oob structure as written on the flash */
struct sm_oob {} __packed;


/* one sector is always 512 bytes, but it can consist of two nand pages */
#define SM_SECTOR_SIZE

/* oob area is also 16 bytes, but might be from two pages */
#define SM_OOB_SIZE

/* This is maximum zone size, and all devices that have more that one zone
   have this size */
#define SM_MAX_ZONE_SIZE

/* support for small page nand */
#define SM_SMALL_PAGE
#define SM_SMALL_OOB_SIZE


int sm_register_device(struct mtd_info *mtd, int smartmedia);


static inline int sm_sector_valid(struct sm_oob *oob)
{}

static inline int sm_block_valid(struct sm_oob *oob)
{}

static inline int sm_block_erased(struct sm_oob *oob)
{}