Subversion Repositories HelenOS

Rev

Rev 4021 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 4021 Rev 4028
Line 87... Line 87...
87
    uintptr_t prt = (uintptr_t) port;
87
    uintptr_t prt = (uintptr_t) port;
88
 
88
 
89
    asm volatile ("mf\n" ::: "memory");
89
    asm volatile ("mf\n" ::: "memory");
90
 
90
 
91
    return *((uint16_t *)(IA64_IOSPACE_ADDRESS +
91
    return *((uint16_t *)(IA64_IOSPACE_ADDRESS +
92
        ((prt & 0xffE) | ((prt >> 2) << 12))));
92
        ((prt & 0xfff) | ((prt >> 2) << 12))));
93
}
93
}
94
 
94
 
95
static inline uint32_t pio_read_32(ioport32_t *port)
95
static inline uint32_t pio_read_32(ioport32_t *port)
96
{
96
{
97
    uintptr_t prt = (uintptr_t) port;
97
    uintptr_t prt = (uintptr_t) port;