Changes in kernel/arch/ppc32/include/asm.h [82474ef:c22e964] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/ppc32/include/asm.h
r82474ef rc22e964 27 27 */ 28 28 29 /** @addtogroup ppc32 29 /** @addtogroup ppc32 30 30 * @{ 31 31 */ … … 146 146 } 147 147 148 extern void cpu_halt(void) __attribute__((noreturn)); 149 extern void asm_delay_loop(uint32_t t); 148 void cpu_halt(void); 149 void asm_delay_loop(uint32_t t); 150 150 151 extern void userspace_asm(uintptr_t uspace_uarg, uintptr_t stack, uintptr_t entry); 151 152 152 153 static inline void pio_write_8(ioport8_t *port, uint8_t v) 153 154 { 154 *port = v; 155 *port = v; 155 156 } 156 157 157 158 static inline void pio_write_16(ioport16_t *port, uint16_t v) 158 159 { 159 *port = v; 160 *port = v; 160 161 } 161 162 162 163 static inline void pio_write_32(ioport32_t *port, uint32_t v) 163 164 { 164 *port = v; 165 *port = v; 165 166 } 166 167 167 168 static inline uint8_t pio_read_8(ioport8_t *port) 168 169 { 169 return *port; 170 return *port; 170 171 } 171 172 172 173 static inline uint16_t pio_read_16(ioport16_t *port) 173 174 { 174 return *port; 175 return *port; 175 176 } 176 177 177 178 static inline uint32_t pio_read_32(ioport32_t *port) 178 179 { 179 return *port; 180 return *port; 180 181 } 181 182
Note:
See TracChangeset
for help on using the changeset viewer.