linux/drivers/mtd/chips/fwh_lock.h

/* SPDX-License-Identifier: GPL-2.0 */
#ifndef FWH_LOCK_H
#define FWH_LOCK_H


enum fwh_lock_state {};

struct fwh_xxlock_thunk {};


#define FWH_XXLOCK_ONEBLOCK_LOCK
#define FWH_XXLOCK_ONEBLOCK_UNLOCK

/*
 * This locking/unlock is specific to firmware hub parts.  Only one
 * is known that supports the Intel command set.    Firmware
 * hub parts cannot be interleaved as they are on the LPC bus
 * so this code has not been tested with interleaved chips,
 * and will likely fail in that context.
 */
static int fwh_xxlock_oneblock(struct map_info *map, struct flchip *chip,
	unsigned long adr, int len, void *thunk)
{}


static int fwh_lock_varsize(struct mtd_info *mtd, loff_t ofs, uint64_t len)
{}


static int fwh_unlock_varsize(struct mtd_info *mtd, loff_t ofs, uint64_t len)
{}

static void fixup_use_fwh_lock(struct mtd_info *mtd)
{}
#endif /* FWH_LOCK_H */