rfd_ftl.c (da733563be5a9da26fe81d9f007262d00b846e22) | rfd_ftl.c (7e1f0dc0551b99acb5e8fa161a7ac401994d57d8) |
---|---|
1/* 2 * rfd_ftl.c -- resident flash disk (flash translation layer) 3 * 4 * Copyright © 2005 Sean Young <sean@mess.org> 5 * 6 * This type of flash translation layer (FTL) is used by the Embedded BIOS 7 * by General Software. It is known as the Resident Flash Disk (RFD), see: 8 * --- 328 unchanged lines hidden (view full) --- 337 erase->callback = erase_callback; 338 erase->addr = part->blocks[block].offset; 339 erase->len = part->block_size; 340 erase->priv = (u_long)part; 341 342 part->blocks[block].state = BLOCK_ERASING; 343 part->blocks[block].free_sectors = 0; 344 | 1/* 2 * rfd_ftl.c -- resident flash disk (flash translation layer) 3 * 4 * Copyright © 2005 Sean Young <sean@mess.org> 5 * 6 * This type of flash translation layer (FTL) is used by the Embedded BIOS 7 * by General Software. It is known as the Resident Flash Disk (RFD), see: 8 * --- 328 unchanged lines hidden (view full) --- 337 erase->callback = erase_callback; 338 erase->addr = part->blocks[block].offset; 339 erase->len = part->block_size; 340 erase->priv = (u_long)part; 341 342 part->blocks[block].state = BLOCK_ERASING; 343 part->blocks[block].free_sectors = 0; 344 |
345 rc = part->mbd.mtd->erase(part->mbd.mtd, erase); | 345 rc = mtd_erase(part->mbd.mtd, erase); |
346 347 if (rc) { 348 printk(KERN_ERR PREFIX "erase of region %llx,%llx on '%s' " 349 "failed\n", (unsigned long long)erase->addr, 350 (unsigned long long)erase->len, part->mbd.mtd->name); 351 kfree(erase); 352 } 353 --- 501 unchanged lines hidden --- | 346 347 if (rc) { 348 printk(KERN_ERR PREFIX "erase of region %llx,%llx on '%s' " 349 "failed\n", (unsigned long long)erase->addr, 350 (unsigned long long)erase->len, part->mbd.mtd->name); 351 kfree(erase); 352 } 353 --- 501 unchanged lines hidden --- |