Subversion Repositories HelenOS-historic

Rev

Rev 990 | Rev 1269 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 990 Rev 1004
Line 51... Line 51...
51
void cuda_init(void)
51
void cuda_init(void)
52
{
52
{
53
}
53
}
54
 
54
 
55
 
55
 
56
static void cuda_packet(const __u8 data)
56
void cuda_packet(const __u8 data)
57
{
57
{
58
    cuda[B] = cuda[B] | TIP;
58
    cuda[B] = cuda[B] | TIP;
59
    cuda[ACR] = cuda[ACR] | SR_OUT;
59
    cuda[ACR] = cuda[ACR] | SR_OUT;
60
    cuda[SR] = CUDA_PACKET;
60
    cuda[SR] = CUDA_PACKET;
61
    cuda[B] = cuda[B] & ~TIP;
61
    cuda[B] = cuda[B] & ~TIP;
Line 67... Line 67...
67
    cuda[B] = cuda[B] | TIP;
67
    cuda[B] = cuda[B] | TIP;
68
}
68
}
69
 
69
 
70
 
70
 
71
void cpu_halt(void) {
71
void cpu_halt(void) {
-
 
72
#ifdef CONFIG_POWEROFF
72
    cuda_packet(CUDA_POWERDOWN);
73
    cuda_packet(CUDA_POWERDOWN);
73
   
74
#endif
74
    cpu_sleep();
75
    cpu_sleep();
75
}
76
}