patch-2.4.0-test4 linux/drivers/mtd/physmap.c
Next file: linux/drivers/mtd/pnc2000.c
Previous file: linux/drivers/mtd/octagon-5066.c
Back to the patch index
Back to the overall index
- Lines: 21
- Date:
Tue Jul 11 11:23:37 2000
- Orig file:
v2.4.0-test3/linux/drivers/mtd/physmap.c
- Orig date:
Mon Jul 10 16:47:23 2000
diff -u --recursive --new-file v2.4.0-test3/linux/drivers/mtd/physmap.c linux/drivers/mtd/physmap.c
@@ -1,5 +1,5 @@
/*
- * $Id: physmap.c,v 1.1 2000/07/04 08:58:10 dwmw2 Exp $
+ * $Id: physmap.c,v 1.2 2000/07/11 09:42:32 dwmw2 Exp $
*
* Normal mappings of chips in physical memory
*/
@@ -10,10 +10,11 @@
#include <asm/io.h>
#include <linux/mtd/mtd.h>
#include <linux/mtd/map.h>
+#include <linux/config.h>
-#define WINDOW_ADDR 0x8000000
-#define WINDOW_SIZE 0x4000000
+#define WINDOW_ADDR CONFIG_MTD_PHYSMAP_START
+#define WINDOW_SIZE CONFIG_MTD_PHYSMAP_LEN
static struct mtd_info *mymtd;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)