Rev 1702 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1702 | Rev 1756 | ||
---|---|---|---|
Line 24... | Line 24... | ||
24 | * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
24 | * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
25 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF |
25 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF |
26 | * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
26 | * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
27 | */ |
27 | */ |
28 | 28 | ||
29 | /** @addtogroup ppc32 |
29 | /** @addtogroup ppc32 |
30 | * @{ |
30 | * @{ |
31 | */ |
31 | */ |
32 | /** @file |
32 | /** @file |
33 | */ |
33 | */ |
34 | 34 | ||
35 | #ifndef __PIC_H_ |
35 | #ifndef __PIC_H_ |
36 | #define __PIC_H_ |
36 | #define __PIC_H_ |
37 | 37 | ||
38 | /* PIC handler, read from pearpc source codes */ |
- | |
39 | #define PIC_HW_ADDR 0x80800000 |
- | |
40 | - | ||
41 | #define PIC_PENDING_LOW 8 |
38 | #define PIC_PENDING_LOW 8 |
42 | #define PIC_PENDING_HIGH 4 |
39 | #define PIC_PENDING_HIGH 4 |
43 | #define PIC_MASK_LOW 9 |
40 | #define PIC_MASK_LOW 9 |
44 | #define PIC_MASK_HIGH 5 |
41 | #define PIC_MASK_HIGH 5 |
45 | #define PIC_ACK_LOW 10 |
42 | #define PIC_ACK_LOW 10 |
46 | #define PIC_ACK_HIGH 6 |
43 | #define PIC_ACK_HIGH 6 |
47 | 44 | ||
48 | void pic_init(void); |
45 | void pic_init(__address base, size_t size); |
49 | void pic_enable_interrupt(int intnum); |
46 | void pic_enable_interrupt(int intnum); |
50 | void pic_disable_interrupt(int intnum); |
47 | void pic_disable_interrupt(int intnum); |
51 | void pic_ack_interrupt(int intnum); |
48 | void pic_ack_interrupt(int intnum); |
52 | int pic_get_pending(void); |
49 | int pic_get_pending(void); |
53 | 50 | ||
54 | #endif |
51 | #endif |
55 | 52 | ||
56 | /** @} |
53 | /** @} |
57 | */ |
54 | */ |
58 | - |