Subversion Repositories HelenOS

Rev

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

Rev 1849 Rev 1875
Line 55... Line 55...
55
 
55
 
56
void fhc_init(void)
56
void fhc_init(void)
57
{
57
{
58
    fhc = (void *) hw_map(FHC_UART_ADDR, PAGE_SIZE);
58
    fhc = (void *) hw_map(FHC_UART_ADDR, PAGE_SIZE);
59
 
59
 
60
    (void) fhc[FHC_UART_ICLR];
-
 
61
    fhc[FHC_UART_ICLR] = 0;
60
    fhc[FHC_UART_ICLR] = 0;
62
    (void) fhc[FHC_UART_IMAP];
-
 
63
    fhc[FHC_UART_IMAP] = Z8530_INTRCV_DATA0;    /* hardcoded for Simics simulation */
-
 
64
    (void) fhc[FHC_UART_IMAP];
61
    fhc[FHC_UART_IMAP] = 0x80000000;
65
    fhc[FHC_UART_IMAP] = 0x80000000;        /* hardcoded for Simics simulation */
-
 
66
}
62
}
67
 
63
 
68
void fhc_uart_reset(void)
64
void fhc_uart_reset(void)
69
{
65
{
70
    (void) fhc[FHC_UART_ICLR];
-
 
71
    fhc[FHC_UART_ICLR] = 0;
66
    fhc[FHC_UART_ICLR] = 0;
72
}
67
}
73
 
68
 
74
/** @}
69
/** @}
75
 */
70
 */