Resource assignments

  • Interrupts (IRQs) allow peripherals to interrupt the CPU.

  • I/O addresses are locations in the processor’s memory map for hardware devices.

  • Useful files to query for hardware information: /proc/interrupts, /proc/ioports, /proc/cpuinfo, /proc/devices.

  • Useful commands to run for hardware information: /sbin/lspci, /sbin/lsusb.

  • DMA allows certain devices to work directly with memory, freeing the processor (see Table 10-1).

Table 10-1. Common device settings

Device

I/O address

IRQ

DMA

ttyS0 (COM1)

3f8

4

NA

ttyS1 (COM2)

2f8

3

NA

ttyS2 (COM3)

3e8

4

NA

ttyS3 (COM4)

2e8

3

NA

lp0 (LPT1)

378-37f

7

3 (if configured in the BIOS)

lp1 (LPT2)

278-27f

5

NA

fd0, fd1 (floppies 1 and 2)

3f0-3f7

6

2

Get LPI Linux Certification in a Nutshell, 3rd Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.