region_info_user and otp_info

Anand Patil anandpatil at ti.com
Mon Nov 6 22:50:10 EST 2006


Hi,
       I am new bee to MTD user land,

      1)  Iam not getting what region information refers to in MTD?
            ---------------------------
            struct region_info_user {
            uint32_t offset;                /* At which this region starts,
                                         * from the beginning of the MTD */
            uint32_t erasesize;             /* For this region */
            uint32_t numblocks;             /* Number of blocks in this 
region */
            uint32_t regionindex;
            };
           ---------------------------

    2) I did'nt get the purpose of the below strucuture defined and its 
usage ?
        ---------------------------
        struct otp_info {
                uint32_t start;
                uint32_t length;
                uint32_t locked;
        };

        ---------------------------

Warm Regards,
Anand Patil 





More information about the linux-mtd mailing list