分类: LINUX
2006-06-02 16:14:29
典型的中断用途
· IRQ0: timer output (8254)
· IRQ1: keyboard controller
· IRQ2: cascade to IRQ8–IRQ15 on PC-AT
· IRQ3: secondary serial port (io-port=0x2F8) (/dev/ttyS1
)
· IRQ4: primary serial port (io-port=0x3F8) (/dev/ttyS0
)
· IRQ5: free [sound card (SB16: io-port=0x220, DMA-low=1, DMA-high=5)]
· IRQ6: floppy disk controller (io-port=0x3F0) (/dev/fd0
, /dev/fd1
)
· IRQ7: parport (io-port=0x378) (/dev/lp0
)
· IRQ8: rtc
· IRQ9: software interrupt (int 0x0A), redirect to IRQ2
· IRQ10: free [network interface card (NE2000: io-port=0x300)]
· IRQ11: free [(SB16-SCSI: io-port=0x340, SB16-IDE: io-port=0x1E8,0x3EE)]
· IRQ12: PS/2 Mouse
· IRQ13: free (was 80287 math coprocessor)
· IRQ14: primary IDE controller (/dev/hda
, /dev/hdb
)
· IRQ15: secondary IDE controller (/dev/hdc
, /dev/hdd
)
对于旧的非 PnP ISA 卡,你可能需要在 BIOS 中设定 IRQ5,IRQ10 和 IRQ11 为非 PnP 设备。
对于USB设备,它们在 /proc/bus/usb/devices
中以 Cls=nn 的形式列出:
· Cls=00 : Unused
· Cls=01 : Audio (speaker etc.)
· Cls=02 : Communication (MODEM, NIC, ...)
· Cls=03 : HID (Human Interface Device: KB, mouse, joystick)
· Cls=07 : Printer
· Cls=08 : Mass storage (FDD, CD/DVD drive, HDD, Flash, ...)
· Cls=09 : Hub (USB hub)
· Cls=255 : Vendor specific