3 * struct flchip definition
5 * Contains information about the location and state of a given flash device
7 * (C) 2000 Red Hat. GPLd.
9 * $Id: flashchip.h,v 1.9 2003/04/30 11:15:22 dwmw2 Exp $
13 #ifndef __MTD_FLASHCHIP_H__
14 #define __MTD_FLASHCHIP_H__
16 /* For spinlocks. sched.h includes spinlock.h from whichever directory it
17 * happens to be in - so we don't have to care whether we're on 2.2, which
18 * has asm/spinlock.h, or 2.4, which has linux/spinlock.h
20 #include <linux/sched.h>
45 /* NOTE: confusingly, this can be used to refer to more than one chip at a time,
46 if they're interleaved. */
49 unsigned long start; /* Offset within the map */
51 /* We omit len for now, because when we group them together
52 we insist that they're all of the same size, and the chip size
53 is held in the next level up. If we get more versatile later,
54 it'll make it a damn sight harder to find which chip we want from
55 a given offset, and we'll want to add the per-chip length field
58 int ref_point_counter;
62 int write_suspended:1;
63 int erase_suspended:1;
66 spinlock_t _spinlock; /* We do it like this because sometimes they'll be shared. */
67 wait_queue_head_t wq; /* Wait on here when we're waiting for the chip
70 int buffer_write_time;
76 #endif /* __MTD_FLASHCHIP_H__ */