|
@@ -5,7 +5,7 @@
|
|
* License. See the file "COPYING" in the main directory of this archive
|
|
* License. See the file "COPYING" in the main directory of this archive
|
|
* for more details.
|
|
* for more details.
|
|
*
|
|
*
|
|
- * Copyright (c) 2000-2004 Silicon Graphics, Inc. All Rights Reserved.
|
|
|
|
|
|
+ * Copyright (c) 2000-2005 Silicon Graphics, Inc. All Rights Reserved.
|
|
*/
|
|
*/
|
|
|
|
|
|
#include <linux/irq.h>
|
|
#include <linux/irq.h>
|
|
@@ -76,16 +76,14 @@ static void sn_enable_irq(unsigned int irq)
|
|
|
|
|
|
static void sn_ack_irq(unsigned int irq)
|
|
static void sn_ack_irq(unsigned int irq)
|
|
{
|
|
{
|
|
- uint64_t event_occurred, mask = 0;
|
|
|
|
- int nasid;
|
|
|
|
|
|
+ u64 event_occurred, mask = 0;
|
|
|
|
|
|
irq = irq & 0xff;
|
|
irq = irq & 0xff;
|
|
- nasid = get_nasid();
|
|
|
|
event_occurred =
|
|
event_occurred =
|
|
- HUB_L((uint64_t *) GLOBAL_MMR_ADDR(nasid, SH_EVENT_OCCURRED));
|
|
|
|
|
|
+ HUB_L((u64*)LOCAL_MMR_ADDR(SH_EVENT_OCCURRED));
|
|
mask = event_occurred & SH_ALL_INT_MASK;
|
|
mask = event_occurred & SH_ALL_INT_MASK;
|
|
- HUB_S((uint64_t *) GLOBAL_MMR_ADDR(nasid, SH_EVENT_OCCURRED_ALIAS),
|
|
|
|
- mask);
|
|
|
|
|
|
+ HUB_S((u64*)LOCAL_MMR_ADDR(SH_EVENT_OCCURRED_ALIAS),
|
|
|
|
+ mask);
|
|
__set_bit(irq, (volatile void *)pda->sn_in_service_ivecs);
|
|
__set_bit(irq, (volatile void *)pda->sn_in_service_ivecs);
|
|
|
|
|
|
move_irq(irq);
|
|
move_irq(irq);
|
|
@@ -93,15 +91,12 @@ static void sn_ack_irq(unsigned int irq)
|
|
|
|
|
|
static void sn_end_irq(unsigned int irq)
|
|
static void sn_end_irq(unsigned int irq)
|
|
{
|
|
{
|
|
- int nasid;
|
|
|
|
int ivec;
|
|
int ivec;
|
|
- uint64_t event_occurred;
|
|
|
|
|
|
+ u64 event_occurred;
|
|
|
|
|
|
ivec = irq & 0xff;
|
|
ivec = irq & 0xff;
|
|
if (ivec == SGI_UART_VECTOR) {
|
|
if (ivec == SGI_UART_VECTOR) {
|
|
- nasid = get_nasid();
|
|
|
|
- event_occurred = HUB_L((uint64_t *) GLOBAL_MMR_ADDR
|
|
|
|
- (nasid, SH_EVENT_OCCURRED));
|
|
|
|
|
|
+ event_occurred = HUB_L((u64*)LOCAL_MMR_ADDR (SH_EVENT_OCCURRED));
|
|
/* If the UART bit is set here, we may have received an
|
|
/* If the UART bit is set here, we may have received an
|
|
* interrupt from the UART that the driver missed. To
|
|
* interrupt from the UART that the driver missed. To
|
|
* make sure, we IPI ourselves to force us to look again.
|
|
* make sure, we IPI ourselves to force us to look again.
|