Chinaunix首页 | 论坛 | 博客
  • 博客访问: 773739
  • 博文数量: 156
  • 博客积分: 5320
  • 博客等级: 大校
  • 技术积分: 1605
  • 用 户 组: 普通用户
  • 注册时间: 2004-10-09 12:24
文章分类

全部博文(156)

文章存档

2010年(20)

2009年(46)

2008年(21)

2007年(21)

2006年(33)

2005年(10)

2004年(5)

分类: 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 中设定 IRQ5IRQ10 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

如果设备类别(device class)不是 255,则 Linux 可支持该设备。
阅读(1807) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~