Subversion Repositories HelenOS

Rev

Rev 4341 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 4341 Rev 4343
Line 110... Line 110...
110
        ch = '\n';
110
        ch = '\n';
111
    chardev_push_character(&console, ch);
111
    chardev_push_character(&console, ch);
112
}
112
}
113
 
113
 
114
/** Process keyboard interrupt. Does not work in simics? */
114
/** Process keyboard interrupt. Does not work in simics? */
115
static void serial_irq_handler(irq_t *irq, void *arg, ...)
115
static void serial_irq_handler(irq_t *irq)
116
{
116
{
117
    if ((irq->notif_cfg.notify) && (irq->notif_cfg.answerbox))
117
    if ((irq->notif_cfg.notify) && (irq->notif_cfg.answerbox))
118
        ipc_irq_send_notif(irq);
118
        ipc_irq_send_notif(irq);
119
    else
119
    else
120
        serial_handler();
120
        serial_handler();
121
}
121
}
122
 
122
 
123
static irq_ownership_t serial_claim(void)
123
static irq_ownership_t serial_claim(void *instance)
124
{
124
{
125
    return IRQ_ACCEPT;
125
    return IRQ_ACCEPT;
126
}
126
}
127
 
127
 
128
static chardev_operations_t serial_ops = {
128
static chardev_operations_t serial_ops = {