Ignore:
Timestamp:
2009-02-20T17:19:03Z (16 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
c9b550b
Parents:
5c06c1c
Message:

make hw_area API more generic
this allows mapping of EGA VRAM on ia32/amd64

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/genarch/include/drivers/legacy/ia32/io.h

    r5c06c1c r9979acb  
    3131 */
    3232/** @file
    33  * @brief       This file contains definitions used by architectures with the
    34  *              ia32 legacy I/O space (i.e. ia32, amd64 and ia64).
     33 * @brief This file contains definitions used by architectures with the
     34 *        ia32 legacy I/O space (i.e. ia32, amd64 and ia64).
    3535 */
    3636
     
    4040#include <arch/types.h>
    4141
    42 #define I8042_BASE      ((ioport8_t *)0x60)
     42#define I8042_BASE    ((ioport8_t *) 0x60)
     43#define EGA_BASE      ((ioport8_t *) 0x3d4)
     44#define NS16550_BASE  ((ioport8_t *) 0x3f8)
    4345
    44 #define EGA_VIDEORAM    0xb8000
    45 #define EGA_BASE        ((ioport8_t *)0x3d4)
    46 
    47 #define NS16550_BASE    ((ioport8_t *)0x3f8)
     46#define EGA_VIDEORAM  0xb8000
    4847
    4948#endif
Note: See TracChangeset for help on using the changeset viewer.