<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<style>P {MARGIN-TOP: 0mm; MARGIN-BOTTOM: 0mm}</style>
</head>
<body>
<div style="FONT-FAMILY: Arial; FONT-SIZE: 10pt" id="ezFormProc_div">
<div style="FONT-FAMILY: Arial" id="msgbody">
<div>
<div style="LINE-HEIGHT: 15pt"><br>
Hi,</div>
<div style="LINE-HEIGHT: 15pt"> </div>
<div style="LINE-HEIGHT: 15pt">In our system, I assigned Ethernet, SD card and USB interrupts to sparc processor's IRQ pin 7, 10 and 8 at my choice.</div>
<div style="LINE-HEIGHT: 15pt">As far as the interrupt is concerned, they worked fine so far.</div>
<div style="LINE-HEIGHT: 15pt">But I found in arch/sparc/kernel/head_32.S that some H/W interrupts have their supposed IRQ pins.</div>
<div style="LINE-HEIGHT: 15pt"> </div>
<div style="LINE-HEIGHT: 15pt">t_irq1: TRAP_ENTRY_INTERRUPT(1) /* IRQ Software/SBUS Level 1 */<br>
t_irq2: TRAP_ENTRY_INTERRUPT(2) /* IRQ SBUS Level 2 */<br>
t_irq3: TRAP_ENTRY_INTERRUPT(3) /* IRQ SCSI/DMA/SBUS Level 3 */<br>
t_irq4: TRAP_ENTRY_INTERRUPT(4) /* IRQ Software Level 4 */<br>
t_irq5: TRAP_ENTRY_INTERRUPT(5) /* IRQ SBUS/Ethernet Level 5 */<br>
t_irq6: TRAP_ENTRY_INTERRUPT(6) /* IRQ Software Level 6 */<br>
t_irq7: TRAP_ENTRY_INTERRUPT(7) /* IRQ Video/SBUS Level 5 */<br>
t_irq8: TRAP_ENTRY_INTERRUPT(8) /* IRQ SBUS Level 6 */<br>
t_irq9: TRAP_ENTRY_INTERRUPT(9) /* IRQ SBUS Level 7 */<br>
t_irq10:TRAP_ENTRY_INTERRUPT(10) /* IRQ Timer #1 (one we use) */<br>
t_irq11:TRAP_ENTRY_INTERRUPT(11) /* IRQ Floppy Intr. */<br>
t_irq12:TRAP_ENTRY_INTERRUPT(12) /* IRQ Zilog serial chip */<br>
t_irq13:TRAP_ENTRY_INTERRUPT(13) /* IRQ Audio Intr. */<br>
t_irq14:TRAP_ENTRY_INTERRUPT(14) /* IRQ Timer #2 */<br>
</div>
<div style="LINE-HEIGHT: 15pt">Connecting external interrupt to one of processor's IRQ pin is my job so I did it, but I explicitly assigned the IRQ number (at my choice) in the
</div>
<div style="LINE-HEIGHT: 15pt">platform device resource structure and passed it to request_irq() during the driver initialization. This way I could use whatever number .</div>
<div style="LINE-HEIGHT: 15pt">Is this what people usually do? (besides, above code doesn't have USB or SD card anyway) or do I have to change Ethernet IRQ to 5 as above?</div>
<div style="LINE-HEIGHT: 15pt">If so, what about SD or USB?</div>
<div style="LINE-HEIGHT: 15pt"> </div>
<div style="LINE-HEIGHT: 15pt">Thanks.</div>
<div style="LINE-HEIGHT: 15pt">regards,</div>
<div style="LINE-HEIGHT: 15pt">Chan</div>
<div style="LINE-HEIGHT: 15pt"><br>
</div>
</div>
</div>
</div>
</body>
</html>