Module Name: src Committed By: kiyohara Date: Mon Jul 20 06:14:15 UTC 2009
Modified Files: src/sys/arch/ia64/include: intr.h Log Message: Fix little bit, and add a few files. current status is to see following thread. http://mail-index.netbsd.org/port-ia64/2009/06/18/msg000102.html To generate a diff of this commit: cvs rdiff -u -r1.4 -r1.5 src/sys/arch/ia64/include/intr.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/arch/ia64/include/intr.h diff -u src/sys/arch/ia64/include/intr.h:1.4 src/sys/arch/ia64/include/intr.h:1.5 --- src/sys/arch/ia64/include/intr.h:1.4 Thu Mar 20 09:09:20 2008 +++ src/sys/arch/ia64/include/intr.h Mon Jul 20 06:14:15 2009 @@ -1,4 +1,4 @@ -/* $NetBSD: intr.h,v 1.4 2008/03/20 09:09:20 kochi Exp $ */ +/* $NetBSD: intr.h,v 1.5 2009/07/20 06:14:15 kiyohara Exp $ */ /* XXX: cherry: To Be fixed when we switch on interrupts. */ @@ -47,4 +47,27 @@ return splraise(icookie._ipl); } + +/* + * Layout of the Processor Interrupt Block. + */ +struct ia64_interrupt_block +{ + uint64_t ib_ipi[0x20000]; /* 1Mb of IPI interrupts */ + uint8_t ib_reserved1[0xe0000]; + uint8_t ib_inta; /* Generate INTA cycle */ + uint8_t ib_reserved2[7]; + uint8_t ib_xtp; /* XTP cycle */ + uint8_t ib_reserved3[7]; + uint8_t ib_reserved4[0x1fff0]; +}; + +extern uint64_t ia64_lapic_address; + +#define IA64_INTERRUPT_BLOCK \ + (struct ia64_interrupt_block *)IA64_PHYS_TO_RR6(ia64_lapic_address) + +void *intr_establish(int, int, int, int (*)(void *), void *); +void intr_disestablish(void *); + #endif /* ! _IA64_INTR_H_ */