Changeset f74bbaf in mainline for kernel/arch/ppc32/src/drivers/cuda.c


Ignore:
Timestamp:
2007-04-09T06:13:24Z (18 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
d0b1443
Parents:
261595b
Message:

start shutdown infrastructure

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/arch/ppc32/src/drivers/cuda.c

    r261595b rf74bbaf  
    4949#define PACKET_CUDA 0x01
    5050
    51 #define CUDA_POWERDOWN 0x0a
     51#define CUDA_POWERDOWN  0x0a
     52#define CUDA_RESET              0x11
    5253
    5354#define RS 0x200
     
    192193
    193194
    194 void send_packet(const uint8_t kind, index_t count, ...);
    195 
    196 
    197195static void receive_packet(uint8_t *kind, index_t count, uint8_t data[])
    198196{
     
    317315
    318316
    319 void send_packet(const uint8_t kind, index_t count, ...)
     317static void send_packet(const uint8_t kind, count_t count, ...)
    320318{
    321319        index_t i;
     
    342340
    343341void cpu_halt(void) {
    344 #ifdef CONFIG_POWEROFF
    345         send_packet(PACKET_CUDA, 1, CUDA_POWERDOWN);
    346 #endif
    347342        asm volatile (
    348343                "b 0\n"
     
    350345}
    351346
     347void arch_reboot(void) {
     348        send_packet(PACKET_CUDA, 1, CUDA_RESET);
     349        asm volatile (
     350                "b 0\n"
     351        );
     352}
     353
    352354/** @}
    353355 */
Note: See TracChangeset for help on using the changeset viewer.