Changeset 5cb223f in mainline for kernel/arch/ia32


Ignore:
Timestamp:
2009-02-19T22:00:44Z (17 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
4544884
Parents:
7d60cf5
Message:

Adapt most of the kernel to ioport8_t, ioport16_t and ioport32_t types.

Location:
kernel/arch/ia32
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • kernel/arch/ia32/include/drivers/ega.h

    r7d60cf5 r5cb223f  
    3737
    3838#define EGA_VIDEORAM    0xb8000
    39 #define EGA_BASE        0x3d4
     39#define EGA_BASE        ((ioport8_t *)0x3d4)
    4040
    4141#endif
  • kernel/arch/ia32/include/drivers/i8259.h

    r7d60cf5 r5cb223f  
    3939#include <arch/interrupt.h>
    4040
    41 #define PIC_PIC0PORT1   0x20
    42 #define PIC_PIC0PORT2   0x21
    43 #define PIC_PIC1PORT1   0xa0
    44 #define PIC_PIC1PORT2   0xa1
     41#define PIC_PIC0PORT1   ((ioport8_t *) 0x20)
     42#define PIC_PIC0PORT2   ((ioport8_t *) 0x21)
     43#define PIC_PIC1PORT1   ((ioport8_t *) 0xa0)
     44#define PIC_PIC1PORT2   ((ioport8_t *) 0xa1)
    4545
    4646#define PIC_NEEDICW4    (1<<0)
  • kernel/arch/ia32/src/drivers/i8254.c

    r7d60cf5 r5cb223f  
    5454#include <ddi/device.h>
    5555
    56 #define CLK_PORT1       0x40
    57 #define CLK_PORT4       0x43
     56#define CLK_PORT1       ((ioport8_t *)0x40)
     57#define CLK_PORT4       ((ioport8_t *)0x43)
    5858
    5959#define CLK_CONST       1193180
  • kernel/arch/ia32/src/drivers/i8259.c

    r7d60cf5 r5cb223f  
    120120void pic_eoi(void)
    121121{
    122         pio_write_8(0x20, 0x20);
    123         pio_write_8(0xa0, 0x20);
     122        pio_write_8((ioport8_t *)0x20, 0x20);
     123        pio_write_8((ioport8_t *)0xa0, 0x20);
    124124}
    125125
  • kernel/arch/ia32/src/smp/smp.c

    r7d60cf5 r5cb223f  
    123123         * BIOS will not do the POST after the INIT signal.
    124124         */
    125         pio_write_8(0x70, 0xf);
    126         pio_write_8(0x71, 0xa);
     125        pio_write_8((ioport8_t *)0x70, 0xf);
     126        pio_write_8((ioport8_t *)0x71, 0xa);
    127127
    128128        pic_disable_irqs(0xffff);
Note: See TracChangeset for help on using the changeset viewer.