int unlock_w39v080fa(struct flashchip *flash) { if (unlock_w39_fwh(flash)) return -1; if (printlock_w39_common(flash, 0xffff2)) return -1; return 0; }
int printlock_w39v040fc(struct flashchip *flash) { int ret = 0; /* W39V040C and W39V040FC use different WP/TBL offsets. */ ret = printlock_w39_common(flash, 0x7fff2); ret |= printlock_w39_fwh(flash); return ret; }
int printlock_w39v040fc(struct flashctx *flash) { int ret = 0; /* W39V040C and W39V040FC use different WP/TBL offsets. */ ret = printlock_w39_common(flash, 0x7fff2); ret |= printlock_regspace2_uniform_64k(flash); return ret; }
int printlock_w39v080a(struct flashchip *flash) { return printlock_w39_common(flash, 0xffff2); }
int printlock_w39v040c(struct flashchip *flash) { /* Typo in the datasheet? The other chips use 0x7fff2. */ return printlock_w39_common(flash, 0xfff2); }
int printlock_w39v040b(struct flashctx *flash) { return printlock_w39_common(flash, 0x7fff2); }