~registry/dolphin-emu/triforce

« back to all changes in this revision

Viewing changes to Source/Core/Core/Src/HW/WII_IPC.h

  • Committer: Sérgio Benjamim
  • Date: 2015-02-13 05:54:40 UTC
  • Revision ID: sergio_br2@yahoo.com.br-20150213055440-ey2rt3sjpy27km78
Dolphin Triforce branch from code.google, commit b957980 (4.0-315).

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
// Copyright 2013 Dolphin Emulator Project
 
2
// Licensed under GPLv2
 
3
// Refer to the license.txt file included.
 
4
 
 
5
#ifndef _WII_IPC_H_
 
6
#define _WII_IPC_H_
 
7
 
 
8
#include "Common.h"
 
9
class PointerWrap;
 
10
 
 
11
namespace WII_IPCInterface
 
12
{
 
13
 
 
14
enum StarletInterruptCause
 
15
{
 
16
        INT_CAUSE_TIMER                 =    0x1,
 
17
        INT_CAUSE_NAND                  =    0x2,
 
18
        INT_CAUSE_AES                   =    0x4,
 
19
        INT_CAUSE_SHA1                  =    0x8,
 
20
        INT_CAUSE_EHCI                  =   0x10,
 
21
        INT_CAUSE_OHCI0                 =   0x20,
 
22
        INT_CAUSE_OHCI1                 =   0x40,
 
23
        INT_CAUSE_SD                    =   0x80,
 
24
        INT_CAUSE_WIFI                  =  0x100,
 
25
 
 
26
        INT_CAUSE_GPIO_BROADWAY =  0x400,
 
27
        INT_CAUSE_GPIO_STARLET  =  0x800,
 
28
 
 
29
        INT_CAUSE_RST_BUTTON    = 0x40000,
 
30
 
 
31
        INT_CAUSE_IPC_BROADWAY  = 0x40000000,
 
32
        INT_CAUSE_IPC_STARLET   = 0x80000000
 
33
};
 
34
 
 
35
void Init();
 
36
void Reset();
 
37
void Shutdown();
 
38
void DoState(PointerWrap &p);
 
39
 
 
40
void Read32(u32& _rReturnValue, const u32 _Address);
 
41
void Write32(const u32 _Value, const u32 _Address);
 
42
 
 
43
void UpdateInterrupts(u64 userdata = 0, int cyclesLate = 0);
 
44
void GenerateAck(u32 _Address);
 
45
void GenerateReply(u32 _Address);
 
46
 
 
47
bool IsReady();
 
48
 
 
49
}
 
50
 
 
51
#endif