mtd/drivers/mtd/maps physmap.c,1.21,1.22
Joakim Tjernlund
jocke at infradead.org
Wed Jan 29 18:45:44 EST 2003
- Previous message: mtd/drivers/mtd/chips cfi_cmdset_0001.c,1.110,1.111
- Next message: mtd/drivers/mtd/maps arctic-mtd.c,NONE,1.1 beech-mtd.c,NONE,1.1 ebony.c,NONE,1.1 Config.in,1.43,1.44 Makefile,1.37,1.38
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /home/cvs/mtd/drivers/mtd/maps
In directory phoenix.infradead.org:/tmp/cvs-serv15938
Modified Files:
physmap.c
Log Message:
Added point()/unpoint(). Only cfi_cmdset0001.c supports it ATM.
Index: physmap.c
===================================================================
RCS file: /home/cvs/mtd/drivers/mtd/maps/physmap.c,v
retrieving revision 1.21
retrieving revision 1.22
diff -u -r1.21 -r1.22
--- physmap.c 5 Sep 2002 05:12:54 -0000 1.21
+++ physmap.c 29 Jan 2003 23:45:41 -0000 1.22
@@ -65,6 +65,16 @@
memcpy_toio(map->map_priv_1 + to, from, len);
}
+u_char * physmap_point(struct map_info *map, loff_t from, size_t len)
+{
+ return (u_char *)(map->map_priv_1 + (unsigned long)from);
+}
+
+void physmap_unpoint(struct map_info *map, u_char *adr, loff_t from, size_t len)
+{
+ /* do nothing for now */
+}
+
struct map_info physmap_map = {
name: "Physically mapped flash",
size: WINDOW_SIZE,
@@ -72,6 +82,8 @@
read8: physmap_read8,
read16: physmap_read16,
read32: physmap_read32,
+ point: physmap_point,
+ unpoint: physmap_unpoint,
copy_from: physmap_copy_from,
write8: physmap_write8,
write16: physmap_write16,
- Previous message: mtd/drivers/mtd/chips cfi_cmdset_0001.c,1.110,1.111
- Next message: mtd/drivers/mtd/maps arctic-mtd.c,NONE,1.1 beech-mtd.c,NONE,1.1 ebony.c,NONE,1.1 Config.in,1.43,1.44 Makefile,1.37,1.38
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the linux-mtd-cvs
mailing list