Subversion Repositories HelenOS

Rev

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

Rev 4024 Rev 4028
Line 94... Line 94...
94
    uintptr_t prt = (uintptr_t) port;
94
    uintptr_t prt = (uintptr_t) port;
95
 
95
 
96
    asm volatile ("mf\n" ::: "memory");
96
    asm volatile ("mf\n" ::: "memory");
97
 
97
 
98
    return *((uint16_t *)(IA64_IOSPACE_ADDRESS +
98
    return *((uint16_t *)(IA64_IOSPACE_ADDRESS +
99
        ((prt & 0xffE) | ((prt >> 2) << 12))));
99
        ((prt & 0xfff) | ((prt >> 2) << 12))));
100
}
100
}
101
 
101
 
102
static inline uint32_t pio_read_32(ioport32_t *port)
102
static inline uint32_t pio_read_32(ioport32_t *port)
103
{
103
{
104
    uintptr_t prt = (uintptr_t) port;
104
    uintptr_t prt = (uintptr_t) port;