Changeset 254 for trunk/hal/x86_64


Ignore:
Timestamp:
Jul 20, 2017, 2:24:37 PM (7 years ago)
Author:
max@…
Message:

Use IMPL_TXT_RS2.

Location:
trunk/hal/x86_64/core
Files:
2 edited

Legend:

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

    r252 r254  
    3131void hal_drivers_txt_init(chdev_t *txt, uint32_t impl)
    3232{
     33        if (impl != IMPL_TXT_RS2) {
     34                x86_panic("undefined TXT device implementation");
     35        }
     36
    3337        txt_rs232_init(txt);
    3438}
  • trunk/hal/x86_64/core/hal_init.c

    r252 r254  
    199199
    200200        /* COM1 */
    201         dev->irq[IRQ_COM1].dev_type = (DEV_FUNC_TXT << 16) | IMPL_TXT_TTY;
     201        dev->irq[IRQ_COM1].dev_type = (DEV_FUNC_TXT << 16) | IMPL_TXT_RS2;
    202202        dev->irq[IRQ_COM1].channel = 0;
    203203        dev->irq[IRQ_COM1].is_rx = 0;
     
    216216
    217217        dev->base = 0;
    218         dev->type = (DEV_FUNC_TXT << 16) | IMPL_TXT_TTY;
     218        dev->type = (DEV_FUNC_TXT << 16) | IMPL_TXT_RS2;
    219219        dev->channels = 1;
    220220        dev->param0 = 0;
Note: See TracChangeset for help on using the changeset viewer.