Ignore:
Timestamp:
Jul 3, 2017, 5:21:06 PM (5 years ago)
Author:
max@…
Message:

start moving the APIC into the XCU driver

File:
1 edited

Legend:

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

    r119 r135  
    8080}
    8181
     82/* -------------------------------------------------------------------------- */
     83
     84static void init_bootinfo_icu(boot_device_t *dev)
     85{
     86        memset(dev, 0, sizeof(boot_device_t));
     87
     88        dev->base = NULL; /* XXX */
     89        dev->type = (DEV_FUNC_ICU << 16) | IMPL_ICU_XCU;
     90        dev->channels = 1;
     91        dev->param0 = 0;
     92        dev->param1 = 0;
     93        dev->param2 = 0;
     94        dev->param3 = 0;
     95
     96#ifdef NOTYET
     97    uint32_t    irqs;                 /*! number of input IRQs                              */
     98    boot_irq_t  irq[32];              /*! array of input IRQS (PIC and ICU only)            */
     99#endif
     100}
     101
    82102static size_t init_bootinfo_pages_nr()
    83103{
     
    190210        info->rsvd_nr = init_bootinfo_rsvd(&info->rsvd);
    191211
    192         /* dev_ XXX */
     212        init_bootinfo_icu(&info->dev_icu);
     213        /* TODO: dev_mmc */
     214        /* TODO: dev_dma */
     215
    193216        offset = hal_gpt_bootstrap_uniformize();
    194217        info->pages_offset = offset / PAGE_SIZE;
Note: See TracChangeset for help on using the changeset viewer.