phram.c (5def48982b778aaebe201f85af7170b7d0a6619f) phram.c (664addc248d2fed68d013d26ff2fc796d7134259)
1/**
2 * Copyright (c) ???? Jochen Schäuble <psionic@psionic.de>
3 * Copyright (c) 2003-2004 Joern Engel <joern@wh.fh-wedel.de>
4 *
5 * Usage:
6 *
7 * one commend line parameter per device, each in the form:
8 * phram=<name>,<start>,<len>

--- 19 unchanged lines hidden (view full) ---

28
29struct phram_mtd_list {
30 struct mtd_info mtd;
31 struct list_head list;
32};
33
34static LIST_HEAD(phram_list);
35
1/**
2 * Copyright (c) ???? Jochen Schäuble <psionic@psionic.de>
3 * Copyright (c) 2003-2004 Joern Engel <joern@wh.fh-wedel.de>
4 *
5 * Usage:
6 *
7 * one commend line parameter per device, each in the form:
8 * phram=<name>,<start>,<len>

--- 19 unchanged lines hidden (view full) ---

28
29struct phram_mtd_list {
30 struct mtd_info mtd;
31 struct list_head list;
32};
33
34static LIST_HEAD(phram_list);
35
36
37static int phram_erase(struct mtd_info *mtd, struct erase_info *instr)
38{
39 u_char *start = mtd->priv;
40
41 memset(start + instr->addr, 0xff, instr->len);
42
43 /* This'll catch a few races. Free the thing before returning :)
44 * I don't feel at all ashamed. This kind of thing is possible anyway

--- 238 unchanged lines hidden ---
36static int phram_erase(struct mtd_info *mtd, struct erase_info *instr)
37{
38 u_char *start = mtd->priv;
39
40 memset(start + instr->addr, 0xff, instr->len);
41
42 /* This'll catch a few races. Free the thing before returning :)
43 * I don't feel at all ashamed. This kind of thing is possible anyway

--- 238 unchanged lines hidden ---