Changeset 2a06e2f in mainline


Ignore:
Timestamp:
2007-09-09T21:09:14Z (17 years ago)
Author:
Jakub Vana <jakub.vana@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
ef042e0
Parents:
0e9463df
Message:

IA64 legacy I/O

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/arch/ia64/include/asm.h

    r0e9463df r2a06e2f  
    4040#include <arch/register.h>
    4141
     42
     43#define IA64_IOSPACE_ADDRESS 0xE0000FFFFC000000ULL
     44
     45static inline void  outb(uint64_t port,uint8_t v)
     46{
     47        *((char *)(IA64_IOSPACE_ADDRESS + ( (port & 0xfff) | ( (port >> 2) << 12 )))) = v;
     48        asm volatile ("mf\n" ::: "memory");
     49}
     50
     51
     52static inline uint8_t inb(uint64_t port)
     53{
     54        asm volatile ("mf\n" ::: "memory");
     55        return *((char *)(IA64_IOSPACE_ADDRESS + ( (port & 0xfff) | ( (port >> 2) << 12 ))));
     56}
     57
     58
     59
    4260/** Return base address of current stack
    4361 *
Note: See TracChangeset for help on using the changeset viewer.