18 #define FWH_XXLOCK_ONEBLOCK_LOCK ((struct fwh_xxlock_thunk){ FWH_DENY_WRITE, FL_LOCKING})
19 #define FWH_XXLOCK_ONEBLOCK_UNLOCK ((struct fwh_xxlock_thunk){ FWH_UNLOCKED, FL_UNLOCKING})
29 unsigned long adr,
int len,
void *thunk)
36 if (chip->
start < 0x400000) {
37 pr_debug(
"MTD %s(): chip->start: %lx wanted >= 0x400000\n",
38 __func__, chip->
start );
52 adr = (adr & ~0xffff
UL) | 0x2;
53 adr += chip->
start - 0x400000;
73 put_chip(map, chip, adr);
90 static int fwh_unlock_varsize(
struct mtd_info *mtd, loff_t ofs,
uint64_t len)
100 static void fixup_use_fwh_lock(
struct mtd_info *mtd)
104 mtd->
_lock = fwh_lock_varsize;
105 mtd->
_unlock = fwh_unlock_varsize;