Data hosted with ♥ by Pastebin.com - Download Raw - See Original
  1.     unsigned long mask;
  2.  
  3.     mask = probe_irq_on( );
  4.  
  5.     outb_p(0x10,short_base+2); /* enable reporting */
  6.  
  7.     outb_p(0x00,short_base);
  8.  
  9.     /* clear the bit */
  10.  
  11.     outb_p(0xFF,short_base);
  12.  
  13.     /* set the bit: interrupt! */
  14.  
  15.     outb_p(0x00,short_base+2); /* disable reporting */
  16.  
  17.     udelay(5); /* give it some time */
  18.  
  19.     short_irq = probe_irq_off(mask);
  20.  
  21.     if (short_irq = = 0) { /* none of them? */
  22.  
  23.     printk(KERN_INFO "short: no irq reported by probe\n");
  24.  
  25.     short_irq = -1;