~ubuntu-branches/ubuntu/precise/linux-ti-omap4/precise

« back to all changes in this revision

Viewing changes to include/linux/mtd/mtd.h

  • Committer: Bazaar Package Importer
  • Author(s): Paolo Pisati
  • Date: 2011-06-29 15:23:51 UTC
  • mfrom: (26.1.1 natty-proposed)
  • Revision ID: james.westby@ubuntu.com-20110629152351-xs96tm303d95rpbk
Tags: 3.0.0-1200.2
* Rebased against 3.0.0-6.7
* BSP from TI based on 3.0.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
322
322
 
323
323
        /* Kernel-side ioctl definitions */
324
324
 
325
 
extern int add_mtd_device(struct mtd_info *mtd);
326
 
extern int del_mtd_device (struct mtd_info *mtd);
 
325
struct mtd_partition;
327
326
 
 
327
extern int mtd_device_register(struct mtd_info *master,
 
328
                               const struct mtd_partition *parts,
 
329
                               int nr_parts);
 
330
extern int mtd_device_unregister(struct mtd_info *master);
328
331
extern struct mtd_info *get_mtd_device(struct mtd_info *mtd, int num);
329
332
extern int __get_mtd_device(struct mtd_info *mtd);
330
333
extern void __put_mtd_device(struct mtd_info *mtd);
348
351
int default_mtd_readv(struct mtd_info *mtd, struct kvec *vecs,
349
352
                      unsigned long count, loff_t from, size_t *retlen);
350
353
 
351
 
#ifdef CONFIG_MTD_PARTITIONS
 
354
void *mtd_kmalloc_up_to(const struct mtd_info *mtd, size_t *size);
 
355
 
352
356
void mtd_erase_callback(struct erase_info *instr);
353
 
#else
354
 
static inline void mtd_erase_callback(struct erase_info *instr)
355
 
{
356
 
        if (instr->callback)
357
 
                instr->callback(instr);
358
 
}
359
 
#endif
360
357
 
361
358
/*
362
359
 * Debugging macro and defines