Changeset e7f2ad68 in mainline for kernel/genarch/src


Ignore:
Timestamp:
2009-02-15T13:57:29Z (16 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
ee06f2a
Parents:
826a4e8d
Message:

Get rid of CONFIG_NS16550_INTERRUPT_DRIVEN and CONFIG_I8042_INTERRUPT_DRIVEN.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/genarch/src/kbd/ns16550.c

    r826a4e8d re7f2ad68  
    139139        sysinfo_set_item_val("kbd.port", NULL, port);
    140140       
    141 #ifdef CONFIG_NS16550_INTERRUPT_DRIVEN
    142141        /* Enable interrupts */
    143142        ns16550_ier_write(&ns16550, IER_ERBFI);
    144143        ns16550_mcr_write(&ns16550, MCR_OUT2);
    145 #endif
    146144       
    147145        uint8_t c;
     
    199197void ns16550_poll(void)
    200198{
    201 #ifndef CONFIG_NS16550_INTERRUPT_DRIVEN
    202         ipl_t ipl;
    203 
    204         ipl = interrupts_disable();
    205         spinlock_lock(&ns16550_irq.lock);
    206 
    207         if (ns16550_lsr_read(&ns16550) & LSR_DATA_READY) {
    208                 if (ns16550_irq.notif_cfg.notify && ns16550_irq.notif_cfg.answerbox) {
    209                         /*
    210                          * Send IPC notification.
    211                          */
    212                         ipc_irq_send_notif(&ns16550_irq);
    213                         spinlock_unlock(&ns16550_irq.lock);
    214                         interrupts_restore(ipl);
    215                         return;
    216                 }
    217         }
    218 
    219         spinlock_unlock(&ns16550_irq.lock);
    220         interrupts_restore(ipl);
    221 #endif
    222 
    223199        while (ns16550_lsr_read(&ns16550) & LSR_DATA_READY) {
    224200                uint8_t x;
Note: See TracChangeset for help on using the changeset viewer.