Subversion Repositories freemyipod

Rev

Rev 427 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 427 Rev 429
Line 86... Line 86...
86
static int nand_type[4];
86
static int nand_type[4];
87
static int nand_powered = 0;
87
static int nand_powered = 0;
88
static int nand_interleaved = 0;
88
static int nand_interleaved = 0;
89
static int nand_cached = 0;
89
static int nand_cached = 0;
90
static long nand_last_activity_value = -1;
90
static long nand_last_activity_value = -1;
-
 
91
static struct scheduler_thread nand_thread_handle;
91
static uint32_t nand_stack[0x80];
92
static uint32_t nand_stack[0x80] STACK_ATTR;
92
 
93
 
93
static struct mutex nand_mtx;
94
static struct mutex nand_mtx;
94
static struct wakeup nand_wakeup;
95
static struct wakeup nand_wakeup;
95
static struct mutex ecc_mtx;
96
static struct mutex ecc_mtx;
96
static struct wakeup ecc_wakeup;
97
static struct wakeup ecc_wakeup;
Line 793... Line 794...
793
    if (nand_type[0] < 0) return nand_type[0];
794
    if (nand_type[0] < 0) return nand_type[0];
794
    nand_interleaved = ((nand_type[0] >> 22) & 1);
795
    nand_interleaved = ((nand_type[0] >> 22) & 1);
795
    nand_cached = ((nand_type[0] >> 23) & 1);
796
    nand_cached = ((nand_type[0] >> 23) & 1);
796
 
797
 
797
    nand_last_activity_value = USEC_TIMER;
798
    nand_last_activity_value = USEC_TIMER;
798
    thread_create("NAND idle monitor", nand_thread, nand_stack,
799
    thread_create(&nand_thread_handle, "NAND idle monitor", nand_thread, nand_stack,
799
                  sizeof(nand_stack), USER_THREAD, 1, true);
800
                  sizeof(nand_stack), USER_THREAD, 1, true);
800
 
801
 
801
    return 0;
802
    return 0;
802
}
803
}