yaffs: Update year to 2011 in copyrights etc.
[yaffs2.git] / direct / timothy_tests / threading / lib.h
1 /*
2  * YAFFS: Yet another Flash File System . A NAND-flash specific file system. 
3  *
4  * Copyright (C) 2002-2011 Aleph One Ltd.
5  *   for Toby Churchill Ltd and Brightstar Engineering
6  *
7  * Created by Timothy Manning <timothy@yaffs.net>
8  *
9  * This program is free software; you can redistribute it and/or modify
10  * it under the terms of the GNU Lesser General Public License version 2.1 as
11  * published by the Free Software Foundation.
12  *
13  * Note: Only YAFFS headers are LGPL, YAFFS C code is covered by GPL.
14  */
15
16 #ifndef __lib_h__
17 #define __lib_h__
18
19 #define BOVVER_HANDLES 10
20 #include "yaffsfs.h"
21 struct bovver_context {
22         int bovverType;
23         int threadId;
24         char baseDir[200];
25         int h[BOVVER_HANDLES];
26         yaffs_DIR *dirH;
27         int opMax;
28         int op;
29         int cycle;
30 };
31
32 int get_counter(int x);
33 void set_counter(int x, unsigned int value);
34 void init_counter(unsigned int size_of_counter);
35 void number_of_threads(unsigned int num);
36 unsigned int get_num_of_threads(void);
37
38 #endif