Changeset 013c4d6 in mainline for kernel/arch/ia64


Ignore:
Timestamp:
2009-02-19T23:55:23Z (16 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
f32d90b
Parents:
d1eece6
Message:

Improve the ns16550 driver.

  • The driver support multiple instances.
  • It still remembers the last registered IRQ in a global structure (cannot be easily fixed now)
  • Was converted to use PIO directly
Location:
kernel/arch/ia64/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • kernel/arch/ia64/src/ia64.c

    rd1eece6 r013c4d6  
    6666/* NS16550 as a COM 1 */
    6767#define NS16550_IRQ     (4 + LEGACY_INTERRUPT_BASE)
    68 #define NS16550_PORT    0x3f8
    6968
    7069bootinfo_t *bootinfo;
     
    165164
    166165#ifdef CONFIG_NS16550
    167         ns16550_init(kbd, NS16550_PORT, NS16550_IRQ, NULL, NULL);
     166        (void) ns16550_init((ns16550_t *)NS16550_BASE, kbd, NS16550_IRQ, NULL,
     167             NULL);
    168168#else
    169169        devno_t mouse = device_assign_devno();
     
    250250void arch_reboot(void)
    251251{
    252         pio_write_8(0x64, 0xfe);
     252        pio_write_8((ioport8_t *)0x64, 0xfe);
    253253        while (1)
    254254                ;
  • kernel/arch/ia64/src/smp/smp.c

    rd1eece6 r013c4d6  
    5252#include <ddi/irq.h>
    5353#include <ddi/device.h>
    54 #include <arch/drivers/ega.h>
    5554#include <arch/bootinfo.h>
    5655#include <genarch/kbd/i8042.h>
Note: See TracChangeset for help on using the changeset viewer.