Ignore:
Timestamp:
Jul 13, 2017, 2:09:32 PM (7 years ago)
Author:
max@…
Message:

register the ATA IRQs

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/hal/x86_64/core/hal_init.c

    r199 r202  
    172172        dev->param3 = 0;
    173173
    174         dev->irqs = 5;
     174        dev->irqs = 16;
    175175
    176176        /* COM1 */
    177         dev->irq[4].dev_type = (DEV_FUNC_TXT << 16) | IMPL_TXT_TTY;
    178         dev->irq[4].channel = 0;
    179         dev->irq[4].is_rx = 0;
    180         dev->irq[4].valid = 1;
     177        dev->irq[IRQ_COM1].dev_type = (DEV_FUNC_TXT << 16) | IMPL_TXT_TTY;
     178        dev->irq[IRQ_COM1].channel = 0;
     179        dev->irq[IRQ_COM1].is_rx = 0;
     180        dev->irq[IRQ_COM1].valid = 1;
     181
     182        /* ATA */
     183        dev->irq[IRQ_ATA0].dev_type = (DEV_FUNC_IOC << 16) | IMPL_IOC_BDV;
     184        dev->irq[IRQ_ATA0].channel = 0;
     185        dev->irq[IRQ_ATA0].is_rx = 0;
     186        dev->irq[IRQ_ATA0].valid = 1;
    181187}
    182188
Note: See TracChangeset for help on using the changeset viewer.