title: how to know the Interrupt/GPIO number for a specific pin in linux
body: <p>i'm doing a project in which i need to handle an interrupt in Linux.</p>
  
  <p>the board i'm using is an <a href="http://www.arm9board.net/sel/prddetail.aspx?id=365&amp;pid=200" rel="noreferrer">ARM9Board</a> based on the s3c6410 MCU by Samsung (arm 11 processor) and it has the following I/O interface :</p>
  
  <p><img src="https://i.stack.imgur.com/JuLJ8.jpg" alt="enter image description here"></p>
  
  <p>as the image shows i have EINTx pins for external interrupts and GPxx pins as GPIO pins and i don't mind using any of them but i don't have their numbers !</p>
  
  <p><strong>For EINTx pins :</strong></p>
  
  <p>when i call</p>
  
  <pre><code>int request_irq(unsigned int irq, void (*handler)(int, struct pt_regs *), 
  unsigned long flags, const char *device); 
  </code></pre>
  
  <p>i need the interrupt number to pass it as the first paramter of the function , so how can i get the irq number for example the EINT16 pin ?</p>
  
  <p><strong>For GPxx pins :</strong>
  the same story as i need the GPIO pin nuumber to pass it to those functions</p>
  
  <pre><code>int gpio_request(unsigned gpio, const char *label);
  int gpio_direction_input(unsigned gpio);
  int gpio_to_irq(unsigned gpio);
  </code></pre>
  
  <p>i.e how do i know the GPIO number for the GPP8 pin ?</p>
  
  <p>i searched the board documents and datasheet but it doesn't contain anything about how to get those numbers , any idea or help on where to look ?  </p>