Changeset f74bbaf in mainline for kernel/arch/ppc32/src/drivers/cuda.c
- Timestamp:
- 2007-04-09T06:13:24Z (18 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- d0b1443
- Parents:
- 261595b
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/ppc32/src/drivers/cuda.c
r261595b rf74bbaf 49 49 #define PACKET_CUDA 0x01 50 50 51 #define CUDA_POWERDOWN 0x0a 51 #define CUDA_POWERDOWN 0x0a 52 #define CUDA_RESET 0x11 52 53 53 54 #define RS 0x200 … … 192 193 193 194 194 void send_packet(const uint8_t kind, index_t count, ...);195 196 197 195 static void receive_packet(uint8_t *kind, index_t count, uint8_t data[]) 198 196 { … … 317 315 318 316 319 void send_packet(const uint8_t kind, index_t count, ...)317 static void send_packet(const uint8_t kind, count_t count, ...) 320 318 { 321 319 index_t i; … … 342 340 343 341 void cpu_halt(void) { 344 #ifdef CONFIG_POWEROFF345 send_packet(PACKET_CUDA, 1, CUDA_POWERDOWN);346 #endif347 342 asm volatile ( 348 343 "b 0\n" … … 350 345 } 351 346 347 void arch_reboot(void) { 348 send_packet(PACKET_CUDA, 1, CUDA_RESET); 349 asm volatile ( 350 "b 0\n" 351 ); 352 } 353 352 354 /** @} 353 355 */
Note:
See TracChangeset
for help on using the changeset viewer.