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