Subversion Repositories HelenOS

Rev

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

Rev 3929 Rev 3956
Line 149... Line 149...
149
 
149
 
150
extern void userspace_asm(uintptr_t uspace_uarg, uintptr_t stack, uintptr_t entry);
150
extern void userspace_asm(uintptr_t uspace_uarg, uintptr_t stack, uintptr_t entry);
151
 
151
 
152
static inline void pio_write_8(ioport8_t *port, uint8_t v)
152
static inline void pio_write_8(ioport8_t *port, uint8_t v)
153
{
153
{
-
 
154
    *port = v; 
-
 
155
}
-
 
156
 
-
 
157
static inline void pio_write_16(ioport16_t *port, uint16_t v)
-
 
158
{
154
    /* XXX */
159
    *port = v; 
-
 
160
}
-
 
161
 
-
 
162
static inline void pio_write_32(ioport32_t *port, uint32_t v)
-
 
163
{
-
 
164
    *port = v; 
155
}
165
}
156
 
166
 
157
static inline uint8_t pio_read_8(ioport8_t *port)
167
static inline uint8_t pio_read_8(ioport8_t *port)
158
{
168
{
-
 
169
    return *port;
-
 
170
}
-
 
171
 
-
 
172
static inline uint16_t pio_read_16(ioport16_t *port)
-
 
173
{
159
    return 0;   /* XXX */
174
    return *port;
-
 
175
}
-
 
176
 
-
 
177
static inline uint32_t pio_read_32(ioport32_t *port)
-
 
178
{
-
 
179
    return *port;
160
}
180
}
161
 
181
 
162
#endif
182
#endif
163
 
183
 
164
/** @}
184
/** @}