mtd/drivers/mtd/maps physmap.c,1.21,1.22

Joakim Tjernlund jocke at infradead.org
Wed Jan 29 18:45:44 EST 2003


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,





More information about the linux-mtd-cvs mailing list