Subversion Repositories freemyipod

Rev

Rev 531 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
54 theseven 1
/***************************************************************************
2
 *             __________               __   ___.
3
 *   Open      \______   \ ____   ____ |  | _\_ |__   _______  ___
4
 *   Source     |       _//  _ \_/ ___\|  |/ /| __ \ /  _ \  \/  /
5
 *   Jukebox    |    |   (  <_> )  \___|    < | \_\ (  <_> > <  <
6
 *   Firmware   |____|_  /\____/ \___  >__|_ \|___  /\____/__/\_ \
7
 *                     \/            \/     \/    \/            \/
8
 * $Id$
9
 *
10
 * Copyright (C) 2002 by Daniel Stenberg
11
 *
12
 * This program is free software; you can redistribute it and/or
13
 * modify it under the terms of the GNU General Public License
14
 * as published by the Free Software Foundation; either version 2
15
 * of the License, or (at your option) any later version.
16
 *
17
 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
18
 * KIND, either express or implied.
19
 *
20
 ****************************************************************************/
21
 
22
#ifndef __CONFIGMAGIC_H__
23
#define __CONFIGMAGIC_H__
24
 
25
 
26
/* symbolic names for multiple choice configurations: */
27
 
28
/* CONFIG_STORAGE (note these are combineable bit-flags) */
29
#define STORAGE_ATA     0x01
30
#define STORAGE_MMC     0x02
31
#define STORAGE_SD      0x04
32
#define STORAGE_NAND    0x08
33
#define STORAGE_RAMDISK 0x10
34
 
35
 
111 theseven 36
#include CONFIG_H
37
#include TARGET_H
54 theseven 38
 
39
 
40
#ifndef SCHEDULER_TICK
41
#define SCHEDULER_TICK 1048576
42
#endif
43
 
44
#ifndef SYSTEM_TICK
45
#define SYSTEM_TICK 10000
46
#endif
47
 
48
#ifndef MAX_THREADS
49
#define MAX_THREADS 32
50
#endif
51
 
52
 
53
/* Storage related config handling */
54
 
55
#if (CONFIG_STORAGE & (CONFIG_STORAGE - 1)) != 0
56
/* Multiple storage drivers */
57
#define CONFIG_STORAGE_MULTI
58
#endif
59
 
60
/* Explicit HAVE_MULTIVOLUME in the config file. Allow the maximum number */
61
#ifdef HAVE_MULTIVOLUME
62
#define NUM_VOLUMES_PER_DRIVE 4
63
#else
64
#define NUM_VOLUMES_PER_DRIVE 1
65
#endif
66
#if defined(CONFIG_STORAGE_MULTI) && !defined(HAVE_MULTIDRIVE)
67
#define HAVE_MULTIDRIVE
68
#endif
69
 
70
#if defined(HAVE_MULTIDRIVE) && !defined(HAVE_MULTIVOLUME)
71
#define HAVE_MULTIVOLUME
72
#endif
73
 
74
#if defined(HAVE_MULTIDRIVE) && !defined(NUM_DRIVES)
75
#error HAVE_MULTIDRIVE needs to have an explicit NUM_DRIVES
76
#endif
77
 
78
#ifndef NUM_DRIVES
79
#define NUM_DRIVES 1
80
#endif
81
 
82
#define NUM_VOLUMES (NUM_DRIVES * NUM_VOLUMES_PER_DRIVE)
83
 
84
 
531 theseven 85
#endif