irq.c 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744
  1. /* irq.c: FRV IRQ handling
  2. *
  3. * Copyright (C) 2003, 2004 Red Hat, Inc. All Rights Reserved.
  4. * Written by David Howells (dhowells@redhat.com)
  5. *
  6. * This program is free software; you can redistribute it and/or
  7. * modify it under the terms of the GNU General Public License
  8. * as published by the Free Software Foundation; either version
  9. * 2 of the License, or (at your option) any later version.
  10. */
  11. /*
  12. * (mostly architecture independent, will move to kernel/irq.c in 2.5.)
  13. *
  14. * IRQs are in fact implemented a bit like signal handlers for the kernel.
  15. * Naturally it's not a 1:1 relation, but there are similarities.
  16. */
  17. #include <linux/config.h>
  18. #include <linux/ptrace.h>
  19. #include <linux/errno.h>
  20. #include <linux/signal.h>
  21. #include <linux/sched.h>
  22. #include <linux/ioport.h>
  23. #include <linux/interrupt.h>
  24. #include <linux/timex.h>
  25. #include <linux/slab.h>
  26. #include <linux/random.h>
  27. #include <linux/smp_lock.h>
  28. #include <linux/init.h>
  29. #include <linux/kernel_stat.h>
  30. #include <linux/irq.h>
  31. #include <linux/proc_fs.h>
  32. #include <linux/seq_file.h>
  33. #include <linux/module.h>
  34. #include <asm/atomic.h>
  35. #include <asm/io.h>
  36. #include <asm/smp.h>
  37. #include <asm/system.h>
  38. #include <asm/bitops.h>
  39. #include <asm/uaccess.h>
  40. #include <asm/pgalloc.h>
  41. #include <asm/delay.h>
  42. #include <asm/irq.h>
  43. #include <asm/irc-regs.h>
  44. #include <asm/irq-routing.h>
  45. #include <asm/gdb-stub.h>
  46. extern void __init fpga_init(void);
  47. extern void __init route_mb93493_irqs(void);
  48. static void register_irq_proc (unsigned int irq);
  49. /*
  50. * Special irq handlers.
  51. */
  52. irqreturn_t no_action(int cpl, void *dev_id, struct pt_regs *regs) { return IRQ_HANDLED; }
  53. atomic_t irq_err_count;
  54. /*
  55. * Generic, controller-independent functions:
  56. */
  57. int show_interrupts(struct seq_file *p, void *v)
  58. {
  59. struct irqaction *action;
  60. struct irq_group *group;
  61. unsigned long flags;
  62. int level, grp, ix, i, j;
  63. i = *(loff_t *) v;
  64. switch (i) {
  65. case 0:
  66. seq_printf(p, " ");
  67. for_each_online_cpu(j)
  68. seq_printf(p, "CPU%d ",j);
  69. seq_putc(p, '\n');
  70. break;
  71. case 1 ... NR_IRQ_GROUPS * NR_IRQ_ACTIONS_PER_GROUP:
  72. local_irq_save(flags);
  73. grp = (i - 1) / NR_IRQ_ACTIONS_PER_GROUP;
  74. group = irq_groups[grp];
  75. if (!group)
  76. goto skip;
  77. ix = (i - 1) % NR_IRQ_ACTIONS_PER_GROUP;
  78. action = group->actions[ix];
  79. if (!action)
  80. goto skip;
  81. seq_printf(p, "%3d: ", i - 1);
  82. #ifndef CONFIG_SMP
  83. seq_printf(p, "%10u ", kstat_irqs(i));
  84. #else
  85. for_each_online_cpu(j)
  86. seq_printf(p, "%10u ", kstat_cpu(j).irqs[i - 1]);
  87. #endif
  88. level = group->sources[ix]->level - frv_irq_levels;
  89. seq_printf(p, " %12s@%x", group->sources[ix]->muxname, level);
  90. seq_printf(p, " %s", action->name);
  91. for (action = action->next; action; action = action->next)
  92. seq_printf(p, ", %s", action->name);
  93. seq_putc(p, '\n');
  94. skip:
  95. local_irq_restore(flags);
  96. break;
  97. case NR_IRQ_GROUPS * NR_IRQ_ACTIONS_PER_GROUP + 1:
  98. seq_printf(p, "ERR: %10u\n", atomic_read(&irq_err_count));
  99. break;
  100. default:
  101. break;
  102. }
  103. return 0;
  104. }
  105. /*
  106. * Generic enable/disable code: this just calls
  107. * down into the PIC-specific version for the actual
  108. * hardware disable after having gotten the irq
  109. * controller lock.
  110. */
  111. /**
  112. * disable_irq_nosync - disable an irq without waiting
  113. * @irq: Interrupt to disable
  114. *
  115. * Disable the selected interrupt line. Disables and Enables are
  116. * nested.
  117. * Unlike disable_irq(), this function does not ensure existing
  118. * instances of the IRQ handler have completed before returning.
  119. *
  120. * This function may be called from IRQ context.
  121. */
  122. void disable_irq_nosync(unsigned int irq)
  123. {
  124. struct irq_source *source;
  125. struct irq_group *group;
  126. struct irq_level *level;
  127. unsigned long flags;
  128. int idx = irq & (NR_IRQ_ACTIONS_PER_GROUP - 1);
  129. group = irq_groups[irq >> NR_IRQ_LOG2_ACTIONS_PER_GROUP];
  130. if (!group)
  131. BUG();
  132. source = group->sources[idx];
  133. if (!source)
  134. BUG();
  135. level = source->level;
  136. spin_lock_irqsave(&level->lock, flags);
  137. if (group->control) {
  138. if (!group->disable_cnt[idx]++)
  139. group->control(group, idx, 0);
  140. } else if (!level->disable_count++) {
  141. __set_MASK(level - frv_irq_levels);
  142. }
  143. spin_unlock_irqrestore(&level->lock, flags);
  144. }
  145. EXPORT_SYMBOL(disable_irq_nosync);
  146. /**
  147. * disable_irq - disable an irq and wait for completion
  148. * @irq: Interrupt to disable
  149. *
  150. * Disable the selected interrupt line. Enables and Disables are
  151. * nested.
  152. * This function waits for any pending IRQ handlers for this interrupt
  153. * to complete before returning. If you use this function while
  154. * holding a resource the IRQ handler may need you will deadlock.
  155. *
  156. * This function may be called - with care - from IRQ context.
  157. */
  158. void disable_irq(unsigned int irq)
  159. {
  160. disable_irq_nosync(irq);
  161. #ifdef CONFIG_SMP
  162. if (!local_irq_count(smp_processor_id())) {
  163. do {
  164. barrier();
  165. } while (irq_desc[irq].status & IRQ_INPROGRESS);
  166. }
  167. #endif
  168. }
  169. EXPORT_SYMBOL(disable_irq);
  170. /**
  171. * enable_irq - enable handling of an irq
  172. * @irq: Interrupt to enable
  173. *
  174. * Undoes the effect of one call to disable_irq(). If this
  175. * matches the last disable, processing of interrupts on this
  176. * IRQ line is re-enabled.
  177. *
  178. * This function may be called from IRQ context.
  179. */
  180. void enable_irq(unsigned int irq)
  181. {
  182. struct irq_source *source;
  183. struct irq_group *group;
  184. struct irq_level *level;
  185. unsigned long flags;
  186. int idx = irq & (NR_IRQ_ACTIONS_PER_GROUP - 1);
  187. int count;
  188. group = irq_groups[irq >> NR_IRQ_LOG2_ACTIONS_PER_GROUP];
  189. if (!group)
  190. BUG();
  191. source = group->sources[idx];
  192. if (!source)
  193. BUG();
  194. level = source->level;
  195. spin_lock_irqsave(&level->lock, flags);
  196. if (group->control)
  197. count = group->disable_cnt[idx];
  198. else
  199. count = level->disable_count;
  200. switch (count) {
  201. case 1:
  202. if (group->control) {
  203. if (group->actions[idx])
  204. group->control(group, idx, 1);
  205. } else {
  206. if (level->usage)
  207. __clr_MASK(level - frv_irq_levels);
  208. }
  209. /* fall-through */
  210. default:
  211. count--;
  212. break;
  213. case 0:
  214. printk("enable_irq(%u) unbalanced from %p\n", irq, __builtin_return_address(0));
  215. }
  216. if (group->control)
  217. group->disable_cnt[idx] = count;
  218. else
  219. level->disable_count = count;
  220. spin_unlock_irqrestore(&level->lock, flags);
  221. }
  222. EXPORT_SYMBOL(enable_irq);
  223. /*****************************************************************************/
  224. /*
  225. * handles all normal device IRQ's
  226. * - registers are referred to by the __frame variable (GR28)
  227. * - IRQ distribution is complicated in this arch because of the many PICs, the
  228. * way they work and the way they cascade
  229. */
  230. asmlinkage void do_IRQ(void)
  231. {
  232. struct irq_source *source;
  233. int level, cpu;
  234. irq_enter();
  235. level = (__frame->tbr >> 4) & 0xf;
  236. cpu = smp_processor_id();
  237. if ((unsigned long) __frame - (unsigned long) (current + 1) < 512)
  238. BUG();
  239. __set_MASK(level);
  240. __clr_RC(level);
  241. __clr_IRL();
  242. kstat_this_cpu.irqs[level]++;
  243. for (source = frv_irq_levels[level].sources; source; source = source->next)
  244. source->doirq(source);
  245. __clr_MASK(level);
  246. irq_exit();
  247. } /* end do_IRQ() */
  248. /*****************************************************************************/
  249. /*
  250. * handles all NMIs when not co-opted by the debugger
  251. * - registers are referred to by the __frame variable (GR28)
  252. */
  253. asmlinkage void do_NMI(void)
  254. {
  255. } /* end do_NMI() */
  256. /*****************************************************************************/
  257. /**
  258. * request_irq - allocate an interrupt line
  259. * @irq: Interrupt line to allocate
  260. * @handler: Function to be called when the IRQ occurs
  261. * @irqflags: Interrupt type flags
  262. * @devname: An ascii name for the claiming device
  263. * @dev_id: A cookie passed back to the handler function
  264. *
  265. * This call allocates interrupt resources and enables the
  266. * interrupt line and IRQ handling. From the point this
  267. * call is made your handler function may be invoked. Since
  268. * your handler function must clear any interrupt the board
  269. * raises, you must take care both to initialise your hardware
  270. * and to set up the interrupt handler in the right order.
  271. *
  272. * Dev_id must be globally unique. Normally the address of the
  273. * device data structure is used as the cookie. Since the handler
  274. * receives this value it makes sense to use it.
  275. *
  276. * If your interrupt is shared you must pass a non NULL dev_id
  277. * as this is required when freeing the interrupt.
  278. *
  279. * Flags:
  280. *
  281. * SA_SHIRQ Interrupt is shared
  282. *
  283. * SA_INTERRUPT Disable local interrupts while processing
  284. *
  285. * SA_SAMPLE_RANDOM The interrupt can be used for entropy
  286. *
  287. */
  288. int request_irq(unsigned int irq,
  289. irqreturn_t (*handler)(int, void *, struct pt_regs *),
  290. unsigned long irqflags,
  291. const char * devname,
  292. void *dev_id)
  293. {
  294. int retval;
  295. struct irqaction *action;
  296. #if 1
  297. /*
  298. * Sanity-check: shared interrupts should REALLY pass in
  299. * a real dev-ID, otherwise we'll have trouble later trying
  300. * to figure out which interrupt is which (messes up the
  301. * interrupt freeing logic etc).
  302. */
  303. if (irqflags & SA_SHIRQ) {
  304. if (!dev_id)
  305. printk("Bad boy: %s (at 0x%x) called us without a dev_id!\n",
  306. devname, (&irq)[-1]);
  307. }
  308. #endif
  309. if ((irq >> NR_IRQ_LOG2_ACTIONS_PER_GROUP) >= NR_IRQ_GROUPS)
  310. return -EINVAL;
  311. if (!handler)
  312. return -EINVAL;
  313. action = (struct irqaction *) kmalloc(sizeof(struct irqaction), GFP_KERNEL);
  314. if (!action)
  315. return -ENOMEM;
  316. action->handler = handler;
  317. action->flags = irqflags;
  318. action->mask = CPU_MASK_NONE;
  319. action->name = devname;
  320. action->next = NULL;
  321. action->dev_id = dev_id;
  322. retval = setup_irq(irq, action);
  323. if (retval)
  324. kfree(action);
  325. return retval;
  326. }
  327. EXPORT_SYMBOL(request_irq);
  328. /**
  329. * free_irq - free an interrupt
  330. * @irq: Interrupt line to free
  331. * @dev_id: Device identity to free
  332. *
  333. * Remove an interrupt handler. The handler is removed and if the
  334. * interrupt line is no longer in use by any driver it is disabled.
  335. * On a shared IRQ the caller must ensure the interrupt is disabled
  336. * on the card it drives before calling this function. The function
  337. * does not return until any executing interrupts for this IRQ
  338. * have completed.
  339. *
  340. * This function may be called from interrupt context.
  341. *
  342. * Bugs: Attempting to free an irq in a handler for the same irq hangs
  343. * the machine.
  344. */
  345. void free_irq(unsigned int irq, void *dev_id)
  346. {
  347. struct irq_source *source;
  348. struct irq_group *group;
  349. struct irq_level *level;
  350. struct irqaction **p, **pp;
  351. unsigned long flags;
  352. if ((irq >> NR_IRQ_LOG2_ACTIONS_PER_GROUP) >= NR_IRQ_GROUPS)
  353. return;
  354. group = irq_groups[irq >> NR_IRQ_LOG2_ACTIONS_PER_GROUP];
  355. if (!group)
  356. BUG();
  357. source = group->sources[irq & (NR_IRQ_ACTIONS_PER_GROUP - 1)];
  358. if (!source)
  359. BUG();
  360. level = source->level;
  361. p = &group->actions[irq & (NR_IRQ_ACTIONS_PER_GROUP - 1)];
  362. spin_lock_irqsave(&level->lock, flags);
  363. for (pp = p; *pp; pp = &(*pp)->next) {
  364. struct irqaction *action = *pp;
  365. if (action->dev_id != dev_id)
  366. continue;
  367. /* found it - remove from the list of entries */
  368. *pp = action->next;
  369. level->usage--;
  370. if (p == pp && group->control)
  371. group->control(group, irq & (NR_IRQ_ACTIONS_PER_GROUP - 1), 0);
  372. if (level->usage == 0)
  373. __set_MASK(level - frv_irq_levels);
  374. spin_unlock_irqrestore(&level->lock,flags);
  375. #ifdef CONFIG_SMP
  376. /* Wait to make sure it's not being used on another CPU */
  377. while (desc->status & IRQ_INPROGRESS)
  378. barrier();
  379. #endif
  380. kfree(action);
  381. return;
  382. }
  383. }
  384. EXPORT_SYMBOL(free_irq);
  385. /*
  386. * IRQ autodetection code..
  387. *
  388. * This depends on the fact that any interrupt that comes in on to an
  389. * unassigned IRQ will cause GxICR_DETECT to be set
  390. */
  391. static DECLARE_MUTEX(probe_sem);
  392. /**
  393. * probe_irq_on - begin an interrupt autodetect
  394. *
  395. * Commence probing for an interrupt. The interrupts are scanned
  396. * and a mask of potential interrupt lines is returned.
  397. *
  398. */
  399. unsigned long probe_irq_on(void)
  400. {
  401. down(&probe_sem);
  402. return 0;
  403. }
  404. EXPORT_SYMBOL(probe_irq_on);
  405. /*
  406. * Return a mask of triggered interrupts (this
  407. * can handle only legacy ISA interrupts).
  408. */
  409. /**
  410. * probe_irq_mask - scan a bitmap of interrupt lines
  411. * @val: mask of interrupts to consider
  412. *
  413. * Scan the ISA bus interrupt lines and return a bitmap of
  414. * active interrupts. The interrupt probe logic state is then
  415. * returned to its previous value.
  416. *
  417. * Note: we need to scan all the irq's even though we will
  418. * only return ISA irq numbers - just so that we reset them
  419. * all to a known state.
  420. */
  421. unsigned int probe_irq_mask(unsigned long xmask)
  422. {
  423. up(&probe_sem);
  424. return 0;
  425. }
  426. EXPORT_SYMBOL(probe_irq_mask);
  427. /*
  428. * Return the one interrupt that triggered (this can
  429. * handle any interrupt source).
  430. */
  431. /**
  432. * probe_irq_off - end an interrupt autodetect
  433. * @xmask: mask of potential interrupts (unused)
  434. *
  435. * Scans the unused interrupt lines and returns the line which
  436. * appears to have triggered the interrupt. If no interrupt was
  437. * found then zero is returned. If more than one interrupt is
  438. * found then minus the first candidate is returned to indicate
  439. * their is doubt.
  440. *
  441. * The interrupt probe logic state is returned to its previous
  442. * value.
  443. *
  444. * BUGS: When used in a module (which arguably shouldnt happen)
  445. * nothing prevents two IRQ probe callers from overlapping. The
  446. * results of this are non-optimal.
  447. */
  448. int probe_irq_off(unsigned long xmask)
  449. {
  450. up(&probe_sem);
  451. return -1;
  452. }
  453. EXPORT_SYMBOL(probe_irq_off);
  454. /* this was setup_x86_irq but it seems pretty generic */
  455. int setup_irq(unsigned int irq, struct irqaction *new)
  456. {
  457. struct irq_source *source;
  458. struct irq_group *group;
  459. struct irq_level *level;
  460. struct irqaction **p, **pp;
  461. unsigned long flags;
  462. group = irq_groups[irq >> NR_IRQ_LOG2_ACTIONS_PER_GROUP];
  463. if (!group)
  464. BUG();
  465. source = group->sources[irq & (NR_IRQ_ACTIONS_PER_GROUP - 1)];
  466. if (!source)
  467. BUG();
  468. level = source->level;
  469. p = &group->actions[irq & (NR_IRQ_ACTIONS_PER_GROUP - 1)];
  470. /*
  471. * Some drivers like serial.c use request_irq() heavily,
  472. * so we have to be careful not to interfere with a
  473. * running system.
  474. */
  475. if (new->flags & SA_SAMPLE_RANDOM) {
  476. /*
  477. * This function might sleep, we want to call it first,
  478. * outside of the atomic block.
  479. * Yes, this might clear the entropy pool if the wrong
  480. * driver is attempted to be loaded, without actually
  481. * installing a new handler, but is this really a problem,
  482. * only the sysadmin is able to do this.
  483. */
  484. rand_initialize_irq(irq);
  485. }
  486. /* must juggle the interrupt processing stuff with interrupts disabled */
  487. spin_lock_irqsave(&level->lock, flags);
  488. /* can't share interrupts unless all parties agree to */
  489. if (level->usage != 0 && !(level->flags & new->flags & SA_SHIRQ)) {
  490. spin_unlock_irqrestore(&level->lock,flags);
  491. return -EBUSY;
  492. }
  493. /* add new interrupt at end of irq queue */
  494. pp = p;
  495. while (*pp)
  496. pp = &(*pp)->next;
  497. *pp = new;
  498. level->usage++;
  499. level->flags = new->flags;
  500. /* turn the interrupts on */
  501. if (level->usage == 1)
  502. __clr_MASK(level - frv_irq_levels);
  503. if (p == pp && group->control)
  504. group->control(group, irq & (NR_IRQ_ACTIONS_PER_GROUP - 1), 1);
  505. spin_unlock_irqrestore(&level->lock, flags);
  506. register_irq_proc(irq);
  507. return 0;
  508. }
  509. static struct proc_dir_entry * root_irq_dir;
  510. static struct proc_dir_entry * irq_dir [NR_IRQS];
  511. #define HEX_DIGITS 8
  512. static unsigned int parse_hex_value (const char *buffer,
  513. unsigned long count, unsigned long *ret)
  514. {
  515. unsigned char hexnum [HEX_DIGITS];
  516. unsigned long value;
  517. int i;
  518. if (!count)
  519. return -EINVAL;
  520. if (count > HEX_DIGITS)
  521. count = HEX_DIGITS;
  522. if (copy_from_user(hexnum, buffer, count))
  523. return -EFAULT;
  524. /*
  525. * Parse the first 8 characters as a hex string, any non-hex char
  526. * is end-of-string. '00e1', 'e1', '00E1', 'E1' are all the same.
  527. */
  528. value = 0;
  529. for (i = 0; i < count; i++) {
  530. unsigned int c = hexnum[i];
  531. switch (c) {
  532. case '0' ... '9': c -= '0'; break;
  533. case 'a' ... 'f': c -= 'a'-10; break;
  534. case 'A' ... 'F': c -= 'A'-10; break;
  535. default:
  536. goto out;
  537. }
  538. value = (value << 4) | c;
  539. }
  540. out:
  541. *ret = value;
  542. return 0;
  543. }
  544. static int prof_cpu_mask_read_proc (char *page, char **start, off_t off,
  545. int count, int *eof, void *data)
  546. {
  547. unsigned long *mask = (unsigned long *) data;
  548. if (count < HEX_DIGITS+1)
  549. return -EINVAL;
  550. return sprintf (page, "%08lx\n", *mask);
  551. }
  552. static int prof_cpu_mask_write_proc (struct file *file, const char *buffer,
  553. unsigned long count, void *data)
  554. {
  555. unsigned long *mask = (unsigned long *) data, full_count = count, err;
  556. unsigned long new_value;
  557. show_state();
  558. err = parse_hex_value(buffer, count, &new_value);
  559. if (err)
  560. return err;
  561. *mask = new_value;
  562. return full_count;
  563. }
  564. #define MAX_NAMELEN 10
  565. static void register_irq_proc (unsigned int irq)
  566. {
  567. char name [MAX_NAMELEN];
  568. if (!root_irq_dir || irq_dir[irq])
  569. return;
  570. memset(name, 0, MAX_NAMELEN);
  571. sprintf(name, "%d", irq);
  572. /* create /proc/irq/1234 */
  573. irq_dir[irq] = proc_mkdir(name, root_irq_dir);
  574. }
  575. unsigned long prof_cpu_mask = -1;
  576. void init_irq_proc (void)
  577. {
  578. struct proc_dir_entry *entry;
  579. int i;
  580. /* create /proc/irq */
  581. root_irq_dir = proc_mkdir("irq", 0);
  582. /* create /proc/irq/prof_cpu_mask */
  583. entry = create_proc_entry("prof_cpu_mask", 0600, root_irq_dir);
  584. if (!entry)
  585. return;
  586. entry->nlink = 1;
  587. entry->data = (void *)&prof_cpu_mask;
  588. entry->read_proc = prof_cpu_mask_read_proc;
  589. entry->write_proc = prof_cpu_mask_write_proc;
  590. /*
  591. * Create entries for all existing IRQs.
  592. */
  593. for (i = 0; i < NR_IRQS; i++)
  594. register_irq_proc(i);
  595. }
  596. /*****************************************************************************/
  597. /*
  598. * initialise the interrupt system
  599. */
  600. void __init init_IRQ(void)
  601. {
  602. route_cpu_irqs();
  603. fpga_init();
  604. #ifdef CONFIG_FUJITSU_MB93493
  605. route_mb93493_irqs();
  606. #endif
  607. } /* end init_IRQ() */