Subversion Repositories HelenOS

Rev

Rev 3672 | Rev 3844 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 3672 Rev 3790
Line 197... Line 197...
197
    ofw_tree_property_t *iosram_toc;
197
    ofw_tree_property_t *iosram_toc;
198
    uintptr_t sram_begin_physical;
198
    uintptr_t sram_begin_physical;
199
 
199
 
200
    chosen = ofw_tree_lookup("/chosen");
200
    chosen = ofw_tree_lookup("/chosen");
201
    if (!chosen)
201
    if (!chosen)
202
        panic("Can't find /chosen.\n");
202
        panic("Cannot find '/chosen'.");
203
 
203
 
204
    iosram_toc = ofw_tree_getprop(chosen, "iosram-toc");
204
    iosram_toc = ofw_tree_getprop(chosen, "iosram-toc");
205
    if (!iosram_toc)
205
    if (!iosram_toc)
206
        panic("Can't find property \"iosram-toc\".\n");
206
        panic("Cannot find property 'iosram-toc'.");
207
    if (!iosram_toc->value)
207
    if (!iosram_toc->value)
208
        panic("Can't find SRAM TOC.\n");
208
        panic("Cannot find SRAM TOC.");
209
 
209
 
210
    sram_begin_physical = SBBC_START + SBBC_SRAM_OFFSET
210
    sram_begin_physical = SBBC_START + SBBC_SRAM_OFFSET
211
        + *((uint32_t *) iosram_toc->value);
211
        + *((uint32_t *) iosram_toc->value);
212
    sram_begin = hw_map(sram_begin_physical, MAPPED_AREA_SIZE);
212
    sram_begin = hw_map(sram_begin_physical, MAPPED_AREA_SIZE);
213
   
213
   
Line 326... Line 326...
326
/**
326
/**
327
 * The driver works in polled mode, so no interrupt should be handled by it.
327
 * The driver works in polled mode, so no interrupt should be handled by it.
328
 */
328
 */
329
static void sgcn_irq_handler(irq_t *irq, void *arg, ...)
329
static void sgcn_irq_handler(irq_t *irq, void *arg, ...)
330
{
330
{
331
    panic("Not yet implemented, SGCN works in polled mode.\n");
331
    panic("Not yet implemented, SGCN works in polled mode.");
332
}
332
}
333
 
333
 
334
/**
334
/**
335
 * Grabs the input for kernel.
335
 * Grabs the input for kernel.
336
 */
336
 */