~kris/9p

9hist

ref: 51f2d9ca33976fa7f3d06790306bc654b3b6a0df 9hist/bitsy/devflash.c -rw-r--r-- 291 bytes
51f2d9ca — David du Colombier Plan 9 from Bell Labs 2000-10-31 25 years ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#include	"u.h"
#include	"../port/lib.h"
#include	"mem.h"
#include	"dat.h"
#include	"fns.h"
#include	"io.h"
#include	"../port/error.h"

/* flash partitions */
typedef struct FlashPart FlashPart;
struct FlashPart
{
	QLock;
	char	name[NAMELEN];
	ulong	start;		/* byte offsets */
	ulong	end;
};