Subversion Repositories HelenOS

Rev

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

Rev 3929 Rev 3946
Line 129... Line 129...
129
 * @param port Port to write to
129
 * @param port Port to write to
130
 * @param val Value to write
130
 * @param val Value to write
131
 */
131
 */
132
static inline void pio_write_32(ioport32_t *port, uint32_t val)
132
static inline void pio_write_32(ioport32_t *port, uint32_t val)
133
{
133
{
134
    asm volatile ("outl %l0, %w1\n" : : "a" (val), "d" (port));
134
    asm volatile ("outl %0, %w1\n" : : "a" (val), "d" (port));
135
}
135
}
136
 
136
 
137
/** Byte from port
137
/** Byte from port
138
 *
138
 *
139
 * Get byte from port
139
 * Get byte from port
Line 173... Line 173...
173
 */
173
 */
174
static inline uint32_t pio_read_32(ioport32_t *port)
174
static inline uint32_t pio_read_32(ioport32_t *port)
175
{
175
{
176
    uint32_t val;
176
    uint32_t val;
177
   
177
   
178
    asm volatile ("inl %w1, %l0 \n" : "=a" (val) : "d" (port));
178
    asm volatile ("inl %w1, %0 \n" : "=a" (val) : "d" (port));
179
    return val;
179
    return val;
180
}
180
}
181
 
181
 
182
/** Enable interrupts.
182
/** Enable interrupts.
183
 *
183
 *