Subversion Repositories freemyipod

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
176 farthen 1
#!/usr/bin/env python
2
#
3
#
4
#    Copyright 2010 TheSeven, benedikt93, Farthen
5
#
6
#
427 farthen 7
#    This file is part of emCORE.
176 farthen 8
#
427 farthen 9
#    emCORE is free software: you can redistribute it and/or
176 farthen 10
#    modify it under the terms of the GNU General Public License as
11
#    published by the Free Software Foundation, either version 2 of the
12
#    License, or (at your option) any later version.
13
#
427 farthen 14
#    emCORE is distributed in the hope that it will be useful,
176 farthen 15
#    but WITHOUT ANY WARRANTY; without even the implied warranty of
16
#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
17
#    See the GNU General Public License for more details.
18
#
19
#    You should have received a copy of the GNU General Public License
427 farthen 20
#    along with emCORE.  If not, see <http://www.gnu.org/licenses/>.
176 farthen 21
#
22
#
23
 
173 farthen 24
thread_state = (
25
    "THREAD_FREE",
26
    "THREAD_SUSPENDED",
27
    "THREAD_READY",
28
    "THREAD_RUNNING",
29
    "THREAD_BLOCKED",
30
    "THREAD_DEFUNCT",
31
    "THREAD_DEFUNCT_ACK"
32
)
33
 
34
thread_block = (
35
    "THREAD_NOT_BLOCKED",
36
    "THREAD_BLOCK_SLEEP",
37
    "THREAD_BLOCK_MUTEX",
38
    "THREAD_BLOCK_WAKEUP",
39
    "THREAD_DEFUNCT_STKOV",
40
    "THREAD_DEFUNCT_PANIC"
41
)
42
 
43
thread_type = (
44
    "USER_THREAD",
45
    "OS_THREAD",
176 farthen 46
    "CORE_THREAD"
173 farthen 47
)
48
 
171 farthen 49
hwtypes = {
50
    0: "invalid",
51
    0x47324e49: "iPod nano 2g",
52
    0x47334e49: "iPod nano 3g",
53
    0x47344e49: "iPod nano 4g",
54
    0x4c435049: "iPod classic"
55
}
56
 
57
swtypes = {
58
    0: "invalid",
59
    1: "emBIOS Debugger"
427 farthen 60
    2: "emCORE Debugger"
171 farthen 61
}
62
 
63
responsecodes = {
64
    0: "invalid",
65
    1: "ok",
66
    2: "unsupported",
67
    3: "busy"
427 farthen 68
}