Changeset 371bd7d in mainline for kernel/arch/ppc32/include/asm.h
- Timestamp:
- 2010-03-27T09:22:17Z (16 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 36a75a2
- Parents:
- cd82bb1 (diff), eaf22d4 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)links above to see all the changes relative to each parent. - File:
-
- 1 edited
-
kernel/arch/ppc32/include/asm.h (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/ppc32/include/asm.h
rcd82bb1 r371bd7d 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>39 38 #include <typedefs.h> 40 39 #include <config.h> … … 146 145 } 147 146 148 void cpu_halt(void); 149 void asm_delay_loop(uint32_t t); 150 147 extern void cpu_halt(void) __attribute__((noreturn)); 148 extern void asm_delay_loop(uint32_t t); 151 149 extern void userspace_asm(uintptr_t uspace_uarg, uintptr_t stack, uintptr_t entry); 152 150 153 151 static inline void pio_write_8(ioport8_t *port, uint8_t v) 154 152 { 155 *port = v; 153 *port = v; 156 154 } 157 155 158 156 static inline void pio_write_16(ioport16_t *port, uint16_t v) 159 157 { 160 *port = v; 158 *port = v; 161 159 } 162 160 163 161 static inline void pio_write_32(ioport32_t *port, uint32_t v) 164 162 { 165 *port = v; 163 *port = v; 166 164 } 167 165 168 166 static inline uint8_t pio_read_8(ioport8_t *port) 169 167 { 170 return *port; 168 return *port; 171 169 } 172 170 173 171 static inline uint16_t pio_read_16(ioport16_t *port) 174 172 { 175 return *port; 173 return *port; 176 174 } 177 175 178 176 static inline uint32_t pio_read_32(ioport32_t *port) 179 177 { 180 return *port; 178 return *port; 181 179 } 182 180
Note:
See TracChangeset
for help on using the changeset viewer.
