[PATCH][MTD] mtdpart.c: allow other drivers to get physical address of partition

Jared Hulbert jaredeh at gmail.com
Thu Aug 2 21:56:46 EDT 2007


> --- point_phys/include/linux/mtd/mtd.h~point_phys       2007-05-16 02:01:55.000000000 +0200
> +++ point_phys/include/linux/mtd/mtd.h  2007-08-01 13:49:30.000000000 +0200
> @@ -136,10 +136,14 @@ struct mtd_info {
>         int (*erase) (struct mtd_info *mtd, struct erase_info *instr);
>
>         /* This stuff for eXecute-In-Place */
> -       int (*point) (struct mtd_info *mtd, loff_t from, size_t len, size_t *retlen, u_char **mtdbuf);
> +       /* phys is optional and may be set to NULL */
> +       int (*point) (struct mtd_info *mtd, loff_t from, size_t len,
> +                       size_t *retlen, void __iomem **virt,
> +                       resource_size_t *phys);

Okay so I think __iomem is correct but I'm not sure I understand all
the ramifications downstream from here.

Why resource_size_t?



More information about the linux-mtd mailing list