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 3953
Line 75... Line 75...
75
extern ipl_t interrupts_read(void);
75
extern ipl_t interrupts_read(void);
76
extern void asm_delay_loop(uint32_t t);
76
extern void asm_delay_loop(uint32_t t);
77
 
77
 
78
static inline void pio_write_8(ioport8_t *port, uint8_t v)
78
static inline void pio_write_8(ioport8_t *port, uint8_t v)
79
{
79
{
-
 
80
    *port = v; 
-
 
81
}
-
 
82
 
-
 
83
static inline void pio_write_16(ioport16_t *port, uint16_t v)
-
 
84
{
80
    /* XXX */
85
    *port = v; 
-
 
86
}
-
 
87
 
-
 
88
static inline void pio_write_32(ioport32_t *port, uint32_t v)
-
 
89
{
-
 
90
    *port = v; 
81
}
91
}
82
 
92
 
83
static inline uint8_t pio_read_8(ioport8_t *port)
93
static inline uint8_t pio_read_8(ioport8_t *port)
84
{
94
{
85
    return 0;   /* XXX */
95
    return *port;
-
 
96
}
-
 
97
 
-
 
98
static inline uint16_t pio_read_16(ioport16_t *port)
-
 
99
{
-
 
100
    return *port;
-
 
101
}
-
 
102
 
-
 
103
static inline uint32_t pio_read_32(ioport32_t *port)
-
 
104
{
-
 
105
    return *port;
86
}
106
}
87
 
107
 
88
#endif
108
#endif
89
 
109
 
90
/** @}
110
/** @}