Translation Information

Project website docs.freebsd.org/en
Translation process
  • Translations can be made directly.
  • Translation suggestions can be made.
  • Only chosen users can contribute.
  • The translation uses bilingual files.
Translation license BSD 2-Clause "Simplified" License
Filemask documentation/content/*/books/arch-handbook/isa/chapter.po
Translation file Download documentation/content/zh_CN/books/arch-handbook/isa/chapter.po
This chapter introduces the issues relevant to writing a driver for an ISA device. The pseudo-code presented here is rather detailed and reminiscent of the real code but is still only pseudo-code. It avoids the details irrelevant to the subject of the discussion. The real-life examples can be found in the source code of real drivers. In particular the drivers `ep` and `aha` are good sources of information.
本章介绍了编写ISA设备驱动程序相关的一些问题。这儿展示的伪代码相当详细,很容易让人联想到真正的代码,不过这依然仅仅是伪代码。它避免了与所讨论的主题无关的细节。真实的例子可以在实际驱动程序的源代码中找到。<literal>ep</literal>和<literal>aha</literal>更是信息的好来源。
6 hours ago
New contributor 6 hours ago
`static void xxx_isa_identify (driver_t *, device_t);` Normally used for bus drivers, not device drivers. But for ISA devices this method may have special use: if the device provides some device-specific (non-PnP) way to auto-detect devices this routine may implement it.
<function>static void xxx_isa_identify (driver_t *,device_t);</function> 通常用于总线驱动程序而不是设备驱动程序。但对于ISA设备,这个方法有特殊用途:如果设备提供某些设备特定的(非PnP)方法自动侦测设备,这个例程可以实现它。
6 hours ago
New contributor 6 hours ago
`static int xxx_isa_probe (device_t dev);` Probe for a device at a known (or PnP) location. This routine can also accommodate device-specific auto-detection of parameters for partially configured devices.
<function>static int xxx_isa_probe (device_tdev);</function> 在已知(或PnP)位置探测设备。对于已经部分配置的设备,这个例程也能够提供设备特定的对某些参数的自动侦测。
6 hours ago
New contributor 6 hours ago
If the driver is implemented as a loadable module then `load_function()` is called to do driver-specific initialization or clean-up when the driver is loaded or unloaded and load_argument is passed as one of its arguments. If the driver does not support dynamic loading (in other words it must always be linked into the kernel) then these values should be set to 0 and the last definition would look like:
如果驱动程序作为可加载模块实现,当驱动程序被加载或卸载时,会调用<function>load_function()</function>函数进行驱动程序特定的初始化或清理工作,并将load_argument作为函数的一个参量传递进去。如果驱动程序不支持动态加载(换句话说,它必须被链接到内核中),则这些值应当被设置为0,最后的定义将看起来如下所示:
6 hours ago
New contributor 6 hours ago
DRIVER_MODULE(xxx, isa, xxx_isa_driver,
xxx_devclass, 0, 0);
DRIVER_MODULE(xxx, isa, xxx_isa_driver,
xxx_devclass, 0, 0);
6 hours ago
New contributor 6 hours ago
Browse all translation changes

Statistics

Percent Strings Words Chars
Total 369 10,401 69,321
Translated 30% 114 3,575 20,725
Needs editing 20% 75 3,444 21,643
Failing checks 7% 26 321 2,848

Last activity

Last change April 11, 2021, 1:12 p.m.
Last author Anonymous

Daily activity

Daily activity

Weekly activity

Weekly activity