LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 806|回复: 1

FC4下怎样获得串口的地址和IRQ?

[复制链接]
发表于 2007-1-25 15:54:01 | 显示全部楼层 |阅读模式
FC4下怎样获得串口的地址和IRQ?


google一下,据说/proc/pci下有其信息
但我的FC4下的没有:(

/proc/pci

  1. PCI devices found:
  2.   Bus  0, device   0, function  0:
  3.     Class 0600: PCI device 8086:2770 (rev 2).
  4.   Bus  0, device   1, function  0:
  5.     Class 0604: PCI device 8086:2771 (rev 2).
  6.       IRQ 185.
  7.       Master Capable.  No bursts.  Min Gnt=10.
  8.   Bus  0, device  27, function  0:
  9.     Class 0403: PCI device 8086:27d8 (rev 1).
  10.       IRQ 169.
  11.       Non-prefetchable 64 bit memory at 0xefffc000 [0xefffffff].
  12.   Bus  0, device  28, function  0:
  13.     Class 0604: PCI device 8086:27d0 (rev 1).
  14.       IRQ 193.
  15.       Master Capable.  No bursts.  Min Gnt=2.
  16.   Bus  0, device  29, function  0:
  17.     Class 0c03: PCI device 8086:27c8 (rev 1).
  18.       IRQ 209.
  19.       I/O at 0xff80 [0xff9f].
  20.   Bus  0, device  29, function  1:
  21.     Class 0c03: PCI device 8086:27c9 (rev 1).
  22.       IRQ 217.
  23.       I/O at 0xff60 [0xff7f].
  24.   Bus  0, device  29, function  2:
  25.     Class 0c03: PCI device 8086:27ca (rev 1).
  26.       IRQ 225.
  27.       I/O at 0xff40 [0xff5f].
  28.   Bus  0, device  29, function  3:
  29.     Class 0c03: PCI device 8086:27cb (rev 1).
  30.       IRQ 233.
  31.       I/O at 0xff20 [0xff3f].
  32.   Bus  0, device  29, function  7:
  33.     Class 0c03: PCI device 8086:27cc (rev 1).
  34.       IRQ 209.
  35.       Non-prefetchable 32 bit memory at 0xffa80800 [0xffa80bff].
  36.   Bus  0, device  30, function  0:
  37.     Class 0604: PCI device 8086:244e (rev 225).
  38.       Master Capable.  No bursts.  Min Gnt=2.
  39.   Bus  0, device  31, function  0:
  40.     Class 0601: PCI device 8086:27b8 (rev 1).
  41.   Bus  0, device  31, function  1:
  42.     Class 0101: PCI device 8086:27df (rev 1).
  43.       IRQ 169.
  44.       I/O at 0xffa0 [0xffaf].
  45.   Bus  0, device  31, function  2:
  46.     Class 0101: PCI device 8086:27c0 (rev 1).
  47.       IRQ 201.
  48.       I/O at 0xfe00 [0xfe07].
  49.       I/O at 0xfe10 [0xfe13].
  50.       I/O at 0xfe20 [0xfe27].
  51.       I/O at 0xfe30 [0xfe33].
  52.       I/O at 0xfea0 [0xfeaf].
  53.       Non-prefetchable 32 bit memory at 0x40000000 [0x400003ff].
  54.   Bus  0, device  31, function  3:
  55.     Class 0c05: PCI device 8086:27da (rev 1).
  56.       IRQ 9.
  57.       I/O at 0xece0 [0xecff].
  58.   Bus  1, device   0, function  0:
  59.     Class 0300: PCI device 1002:5b62 (rev 0).
  60.       IRQ 169.
  61.       Prefetchable 64 bit memory at 0xe0000000 [0xe7ffffff].
  62.       Non-prefetchable 64 bit memory at 0xefde0000 [0xefdeffff].
  63.       I/O at 0xdc00 [0xdcff].
  64.   Bus  1, device   0, function  1:
  65.     Class 0380: PCI device 1002:5b72 (rev 0).
  66.       Non-prefetchable 64 bit memory at 0xefdf0000 [0xefdfffff].
  67.   Bus  3, device   2, function  0:
  68.     Class 9835: PCI device 9500:9835 (rev 8).
  69.       IRQ 255.
  70.       Master Capable.  No bursts.  Min Gnt=255.Max Lat=255.
  71.   Bus  3, device   8, function  0:
  72.     Class 0200: PCI device 8086:27dc (rev 1).
  73.       IRQ 201.
  74.       Master Capable.  Latency=64.  Min Gnt=8.Max Lat=56.
  75.       Non-prefetchable 32 bit memory at 0xefbff000 [0xefbfffff].
  76.       I/O at 0xccc0 [0xccff].
复制代码


/proc/tty/driver/serial

  1. serinfo:1.0 driver revision:
  2. 0: uart:unknown port:000003F8 irq:4
  3. 1: uart:unknown port:000002F8 irq:3
  4. 2: uart:unknown port:000003E8 irq:4
  5. 3: uart:unknown port:000002E8 irq:3
  6. 4: uart:unknown port:000001A0 irq:9
  7. 5: uart:unknown port:000001A8 irq:9
  8. 6: uart:unknown port:000001B0 irq:9
  9. 7: uart:unknown port:000001B8 irq:9
  10. 8: uart:unknown port:000002A0 irq:5
  11. 9: uart:unknown port:000002A8 irq:5
  12. 10: uart:unknown port:000002B0 irq:5
  13. 11: uart:unknown port:000002B8 irq:5
  14. 12: uart:unknown port:00000330 irq:4
  15. 13: uart:unknown port:00000338 irq:4
  16. 14: uart:unknown port:00000000 irq:0
  17. 15: uart:unknown port:00000000 irq:0
  18. 16: uart:unknown port:00000100 irq:12
  19. 17: uart:unknown port:00000108 irq:12
  20. 18: uart:unknown port:00000110 irq:12
  21. 19: uart:unknown port:00000118 irq:12
  22. 20: uart:unknown port:00000120 irq:12
  23. 21: uart:unknown port:00000128 irq:12
  24. 22: uart:unknown port:00000130 irq:12
  25. 23: uart:unknown port:00000138 irq:12
  26. 24: uart:unknown port:00000140 irq:12
  27. 25: uart:unknown port:00000148 irq:12
  28. 26: uart:unknown port:00000150 irq:12
  29. 27: uart:unknown port:00000158 irq:12
  30. 28: uart:unknown port:00000160 irq:12
  31. 29: uart:unknown port:00000168 irq:12
  32. 30: uart:unknown port:00000170 irq:12
  33. 31: uart:unknown port:00000178 irq:12
  34. 32: uart:unknown port:00000302 irq:3
  35. 33: uart:unknown port:00000302 irq:3
  36. 34: uart:unknown port:00000302 irq:3
  37. 35: uart:unknown port:00000302 irq:3
  38. 36: uart:unknown port:00000302 irq:3
  39. 37: uart:unknown port:00000302 irq:3
  40. 38: uart:unknown port:00000302 irq:3
  41. 39: uart:unknown port:00000302 irq:3
  42. 40: uart:unknown port:00000302 irq:3
  43. 41: uart:unknown port:00000302 irq:3
  44. 42: uart:unknown port:00000302 irq:3
  45. 43: uart:unknown port:00000302 irq:3
  46. 44: uart:unknown port:00000000 irq:0
  47. 45: uart:unknown port:00000000 irq:0
  48. 46: uart:unknown port:00000000 irq:0
  49. 47: uart:unknown port:00000000 irq:0
  50. 48: uart:unknown port:00000000 irq:0
  51. 49: uart:unknown port:00000000 irq:0
  52. 50: uart:unknown port:00000000 irq:0
  53. 51: uart:unknown port:00000000 irq:0
  54. 52: uart:unknown port:00000000 irq:0
  55. 53: uart:unknown port:00000000 irq:0
  56. 54: uart:unknown port:00000000 irq:0
  57. 55: uart:unknown port:00000000 irq:0
  58. 56: uart:unknown port:00000000 irq:0
  59. 57: uart:unknown port:00000000 irq:0
  60. 58: uart:unknown port:00000000 irq:0
  61. 59: uart:unknown port:00000000 irq:0
  62. 60: uart:unknown port:00000000 irq:0
  63. 61: uart:unknown port:00000000 irq:0
  64. 62: uart:unknown port:00000000 irq:0
  65. 63: uart:unknown port:00000000 irq:0
  66. 64: uart:unknown port:00000000 irq:0
  67. 65: uart:unknown port:00000000 irq:0
  68. 66: uart:unknown port:00000000 irq:0
  69. 67: uart:unknown port:00000000 irq:0
  70. 68: uart:unknown port:00000000 irq:0
  71. 69: uart:unknown port:00000000 irq:0
  72. 70: uart:unknown port:00000000 irq:0
  73. 71: uart:unknown port:00000000 irq:0
  74. 72: uart:unknown port:00000000 irq:0
  75. 73: uart:unknown port:00000000 irq:0
  76. 74: uart:unknown port:00000000 irq:0
  77. 75: uart:unknown port:00000000 irq:0
复制代码
发表于 2007-1-25 17:40:00 | 显示全部楼层
cat /proc/interrupts
cat /proc/ioports
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表