Ignore:
Timestamp:
2008-07-27T03:50:53Z (17 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
4541ae4
Parents:
5e8ddf5
Message:

physical memory detection in MSIM (discontinous regions supported)
remove Sgi Indy (ARC) support — it was unmaintaned, untested for years and without uspace support

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/arch/mips32/include/drivers/serial.h

    r5e8ddf5 redebc15c  
    3838#include <console/chardev.h>
    3939
     40#define SERIAL_ADDRESS    0xB8000000
     41
    4042#define SERIAL_MAX        4
    4143#define SERIAL_COM1       0x3f8
     
    4446#define SERIAL_COM2_IRQ   3
    4547
    46 #define P_WRITEB(where,what)     (*((volatile char *) (0xB8000000+where))=what)
    47 #define P_READB(where)           (*((volatile char *)(0xB8000000+where)))
     48#define P_WRITEB(where, what)     (*((volatile char *) (SERIAL_ADDRESS + where)) = what)
     49#define P_READB(where)            (*((volatile char *) (SERIAL_ADDRESS + where)))
    4850
    49 #define SERIAL_READ(x)           P_READB(x)
    50 #define SERIAL_WRITE(x,c)        P_WRITEB(x,c)
     51#define SERIAL_READ(x)            P_READB(x)
     52#define SERIAL_WRITE(x, c)        P_WRITEB(x, c)
     53
    5154/* Interrupt enable register */
    5255#define SERIAL_READ_IER(x)              (P_READB((x) + 1))
    53 #define SERIAL_WRITE_IER(x,c)           (P_WRITEB((x)+1,c))
     56#define SERIAL_WRITE_IER(x,c)           (P_WRITEB((x) + 1, c))
     57
    5458/* Interrupt identification register */
    5559#define SERIAL_READ_IIR(x)             (P_READB((x) + 2))
     60
    5661/* Line status register */
    5762#define SERIAL_READ_LSR(x)             (P_READB((x) + 5))
Note: See TracChangeset for help on using the changeset viewer.