Linux中国 Linux中国门户站!
设为主页 设为主页
收藏本站 收藏本站
 
当前位置 :首页 ->Linux技术 ->内核研究 ->正文

配置FreeBSD内核

来源:cnfug 作者:顾宏军  时间:2007-04-22 点击: [收藏] [投稿]

所以COM3 与COM4 默认的 IRQ 无法使用。

# Parallel port
device ppc0 at isa? irq 7

ISA总线 并行接口

device ppbus # Parallel port bus (required)

提供并行总线的支持。

device lpt # Printer

提供并口打印机的支持。

注意: 要使用并口打印机,就必须同时加入上面三行设置。

device plip # TCP/IP over parallel

提供并行网络接口的支持。

device ppi # Parallel port interface device

普通用途的I/O (“geek port”) + IEEE1284 I/O 。

#device vpo # Requires scbus and da

这是针对Iomega Zip 驱动器的。它要求scbus 和da 的支持。工作在EPP 1.9 模式执行效果最好。

# PCI Ethernet NICs.
device de # DEC/Intel DC21x4x (``Tulip'')
device fxp # Intel EtherExpress PRO/100B (82557, 82558)
device tx # SMC 9432TX (83c170 ``EPIC'')
device vx # 3Com 3c590, 3c595 (``Vortex'')
device wx # Intel Gigabit Ethernet Card (``Wiseman'')

多种PCI 网卡驱动器。注释或删除在你系统中没有的设备。

# PCI Ethernet NICs that use the common MII bus controller code.
device miibus # MII bus support

MII总线支持,对于部分PCI 10/100 Ethernet 网卡来说是必需的,也就是那些使用类似MII
传输方式操作的 网卡。 加miibus驱动到内核配置中,以实现对普通miibus API的支持及所有
的PHY驱动,包括一种不能被特 定驱动明确处理的PHY的通用驱动。

device dc # DEC/Intel 21143 and various workalikes
device rl # RealTek 8129/8139
device sf # Adaptec AIC-6915 (``Starfire'')
device sis # Silicon Integrated Systems SiS 900/SiS 7016
device ste # Sundance ST201 (D-Link DFE-550TX)
device tl # Texas Instruments ThunderLAN
device vr # VIA Rhine, Rhine II
device wb # Winbond W89C840F
device xl # 3Com 3c90x (``Boomerang'', ``Cyclone'')

驱动,使用MII 总线控制器代码。

# ISA Ethernet NICs.
device ed0 at isa? port 0x280 irq 10 iomem 0xd8000
device ex
device ep
# WaveLAN/IEEE 802.11 wireless NICs. Note: the WaveLAN/IEEE really
# exists only as a PCMCIA device, so there is no ISA attachment needed
# and resources will always be dynamically assigned by the pccard code.
device wi
# Aironet 4500/4800 802.11 wireless NICs. Note: the declaration below will
# work for PCMCIA and PCI cards, as well as ISA cards set to ISA PnP
# mode (the factory default). If you set the switches on your ISA
# card for a manually chosen I/O address and IRQ, you must specify
# those parameters here.
device an
# The probe order of these is presently determined by i386/isa/isa_compat.c.
device ie0 at isa? port 0x300 irq 10 iomem 0xd0000
device fe0 at isa? port 0x300
device le0 at isa? port 0x300 irq 5 iomem 0xd0000
device lnc0 at isa? port 0x280 irq 10 drq 0
device cs0 at isa? port 0x300
device sn0 at isa? port 0x300 irq 10
# requires PCCARD (PCMCIA) support to be activated
#device xe0 at isa?

ISA 以太网驱动器。看看/usr/src/sys/i386/conf/LINT 了解一下哪个卡被哪个驱动所支持。

pseudo-device ether # Ethernet support

仅有以太网卡时才需要。它包含了通用的以太网协议代码。

pseudo-device sl 1 # Kernel SLIP

Sl 是对SLIP 提供支持的。这已经完全被PPP 所代替,ppp更易于配置,更适合modem-to-modem
的连接,功能 也更强大。s1后面的数值设置系统支持多少个SLIP同时连接。
pseudo-device ppp 1 # Kernel PPP

使内核支持PPP 拨号连接。另外有一个tun 则是用户模式的PPP工具,tun 较有弹性且功能较多。
如果你要使 用这个PPP 驱动程序,请参考内核模式PPP 这一章节。ppp后面的数字设置系统
能支持几个PPP 同时连接。

pseudo-device tun # Packet tunnel.

用户模式的PPP 软件需要。tun 后面接的数字设置系统同时能支持几个PPP 连接。参看本书
用户模式PPP 以 节以获得更多信息。

pseudo-device pty # Pseudo-ttys (telnet etc)

pty 是虚拟终端,或仿真的登陆入口 。Ctelnet 或rlogin 连接、xterm 以及其它
应用程序如Emacs 会用到pty 。number 设置系统要创建的pty 个数。如果有同时
有超过16个xterm窗口或者 是远程登陆,那么你可以适当增加这个数值,最高可达256 个。

pseudo-device md # Memory ``disks''

内存磁盘 pseudo.

pseudo-device gif

or

pseudo-device gif 4 # IPv6 and IPv4 tunneling

它执行IPv6 与 IPv4,IPv4 与IPv6, IPv4 与IPv4, IPv6 与IPv6 之间的转换.
从FreeBSD 4.4开始,设备gif设备使自动繁殖(``auto-cloning'')的,应该
使用第一个例子(没有指定gif 数值的) 。 早期的FreeBSD需要指定数值。

pseudo-device faith 1 # IPv6-to-IPv4 relaying (translation)

这个伪设备能接收发给它的数据包,然后把它们发送给IPv4/IPv6 翻译程序。

# The `bpf' pseudo-device enables the Berkeley Packet Filter.
# Be aware of the administrative consequences of enabling this!
pseudo-device bpf # Berkeley packet filter

这是Berkeley 的封包过滤器。这个虚拟设备能将网络接口设置成混杂模式,
并在广播网络(如,以太网)上捕获所有封包。这些封包能被存到磁盘上或被
tcpdump 程序检查。

注意:bpf pseudo-device 也可以被dhclient 用来获得默认路由(网关)的
IP地址。如果你使用DHCP ,不要注释掉这行。

# USB support
#device uhci # UHCI PCI->USB interface
#device ohci # OHCI PCI->USB interface
#device usb # USB Bus (required)

 如果您对本文有任何疑问或者建议,请到讨论区发表您的意见: >> 论坛入口 <<



上一篇:在FreeBSD4.x中制作启动菜单   下一篇:使用 SystemTap 调试内核

文章评论】 【收藏本文】 【推荐好友】 【打印本文】 【我要投稿】 【论坛讨论
更多相关文章
Power by linux-cn.com 粤ICP备05006655号