Subversion Repositories HelenOS

Rev

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

Rev 4343 Rev 4344
Line 147... Line 147...
147
void cpu_halt(void);
147
void cpu_halt(void);
148
void asm_delay_loop(uint32_t t);
148
void asm_delay_loop(uint32_t t);
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(ioport_t port, uint8_t v)
152
static inline void pio_write_8(ioport8_t *port, uint8_t v)
153
{
153
{
154
    /* XXX */
154
    *port = v; 
155
}
155
}
156
 
156
 
157
static inline uint8_t pio_read_8(ioport_t port)
157
static inline void pio_write_16(ioport16_t *port, uint16_t v)
158
{
158
{
-
 
159
    *port = v; 
-
 
160
}
-
 
161
 
-
 
162
static inline void pio_write_32(ioport32_t *port, uint32_t v)
-
 
163
{
-
 
164
    *port = v; 
-
 
165
}
-
 
166
 
-
 
167
static inline uint8_t pio_read_8(ioport8_t *port)
-
 
168
{
159
    return 0;   /* XXX */
169
    return *port;
-
 
170
}
-
 
171
 
-
 
172
static inline uint16_t pio_read_16(ioport16_t *port)
-
 
173
{
-
 
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
/** @}