Units
Translation components API.
See the Weblate's Web API documentation for detailed description of the API.
GET /api/translations/documentation/booksarch-handbookisa_index/zh_CN/units/?format=api
https://translate-dev.freebsd.org/api/translations/documentation/booksarch-handbookisa_index/zh_CN/units/?format=api&page=2", "previous": null, "results": [ { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksarch-handbookisa_index/zh_CN/?format=api", "source": [ "Chapter 10. ISA Device Drivers" ], "previous_source": "", "target": [ "" ], "id_hash": 6188558381065931253, "content_hash": 6188558381065931253, "location": "documentation/content/en/books/arch-handbook/isa/_index.adoc:1", "context": "", "note": "type: YAML Front Matter: title", "flags": "no-wrap", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 2, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 5, "source_unit": "https://translate-dev.freebsd.org/api/units/1094730/?format=api", "priority": 100, "id": 1097682, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksarch-handbookisa_index/zh_CN/?checksum=d5e22d0f273389f5", "url": "https://translate-dev.freebsd.org/api/units/1097682/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2021-05-23T13:00:53.491058Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksarch-handbookisa_index/zh_CN/?format=api", "source": [ "ISA Device Drivers" ], "previous_source": "", "target": [ "ISA 设备驱动" ], "id_hash": -1885924359640522882, "content_hash": -1885924359640522882, "location": "documentation/content/en/books/arch-handbook/isa/_index.adoc:1, documentation/content/en/books/arch-handbook/isa/_index.adoc:13", "context": "", "note": "type: Title =", "flags": "no-wrap", "labels": [], "state": 20, "fuzzy": false, "translated": true, "approved": false, "position": 1, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 3, "source_unit": "https://translate-dev.freebsd.org/api/units/1094732/?format=api", "priority": 100, "id": 1097683, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksarch-handbookisa_index/zh_CN/?checksum=65d3d9c9765edf7e", "url": "https://translate-dev.freebsd.org/api/units/1097683/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2021-05-23T13:00:53.498167Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksarch-handbookisa_index/zh_CN/?format=api", "source": [ "Synopsis" ], "previous_source": "", "target": [ "简介" ], "id_hash": -6651481047257516920, "content_hash": -6651481047257516920, "location": "documentation/content/en/books/arch-handbook/isa/_index.adoc:51", "context": "", "note": "type: Title ==", "flags": "no-wrap", "labels": [], "state": 20, "fuzzy": false, "translated": true, "approved": false, "position": 3, "has_suggestion": false, "has_comment": false, "has_failing_check": true, "num_words": 1, "source_unit": "https://translate-dev.freebsd.org/api/units/1094734/?format=api", "priority": 100, "id": 1097684, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksarch-handbookisa_index/zh_CN/?checksum=23b1313a83f8f488", "url": "https://translate-dev.freebsd.org/api/units/1097684/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2021-05-23T13:00:53.502975Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksarch-handbookisa_index/zh_CN/?format=api", "source": [ "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." ], "previous_source": "", "target": [ "本章介绍了编写ISA设备驱动程序相关的一些问题。这儿展示的伪代码相当详细,很容易让人联想到真正的代码,不过这依然仅仅是伪代码。它避免了与所讨论的主题无关的细节。真实的例子可以在实际驱动程序的源代码中找到。<literal>ep</literal>和<literal>aha</literal>更是信息的好来源。" ], "id_hash": -5506302311767947026, "content_hash": -5506302311767947026, "location": "documentation/content/en/books/arch-handbook/isa/_index.adoc:54", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 10, "fuzzy": true, "translated": false, "approved": false, "position": 4, "has_suggestion": false, "has_comment": false, "has_failing_check": true, "num_words": 68, "source_unit": "https://translate-dev.freebsd.org/api/units/1094736/?format=api", "priority": 100, "id": 1097685, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksarch-handbookisa_index/zh_CN/?checksum=3395af389928c8ee", "url": "https://translate-dev.freebsd.org/api/units/1097685/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2021-05-23T13:00:53.510083Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksarch-handbookisa_index/zh_CN/?format=api", "source": [ "Basic Information" ], "previous_source": "", "target": [ "基本信息" ], "id_hash": 8029452806901262125, "content_hash": 8029452806901262125, "location": "documentation/content/en/books/arch-handbook/isa/_index.adoc:56", "context": "", "note": "type: Title ==", "flags": "no-wrap", "labels": [], "state": 20, "fuzzy": false, "translated": true, "approved": false, "position": 5, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 2, "source_unit": "https://translate-dev.freebsd.org/api/units/1094738/?format=api", "priority": 100, "id": 1097686, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksarch-handbookisa_index/zh_CN/?checksum=ef6e58c9381ce72d", "url": "https://translate-dev.freebsd.org/api/units/1097686/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2021-05-23T13:00:53.518842Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksarch-handbookisa_index/zh_CN/?format=api", "source": [ "A typical ISA driver would need the following include files:" ], "previous_source": "", "target": [ "典型的ISA驱动程序需要以下包含文件:" ], "id_hash": -8339761367643926446, "content_hash": -8339761367643926446, "location": "documentation/content/en/books/arch-handbook/isa/_index.adoc:59", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 20, "fuzzy": false, "translated": true, "approved": false, "position": 6, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 10, "source_unit": "https://translate-dev.freebsd.org/api/units/1094740/?format=api", "priority": 100, "id": 1097687, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksarch-handbookisa_index/zh_CN/?checksum=0c433738da0ed052", "url": "https://translate-dev.freebsd.org/api/units/1097687/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2021-05-23T13:00:53.524252Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksarch-handbookisa_index/zh_CN/?format=api", "source": [ "#include <sys/module.h>\n#include <sys/bus.h>\n#include <machine/bus.h>\n#include <machine/resource.h>\n#include <sys/rman.h>\n" ], "previous_source": "", "target": [ "" ], "id_hash": 8174717815900051259, "content_hash": 8174717815900051259, "location": "documentation/content/en/books/arch-handbook/isa/_index.adoc:67", "context": "", "note": "type: delimited block . 4", "flags": "no-wrap", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 7, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 10, "source_unit": "https://translate-dev.freebsd.org/api/units/1094742/?format=api", "priority": 100, "id": 1097688, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksarch-handbookisa_index/zh_CN/?checksum=f1726e8ac3c7973b", "url": "https://translate-dev.freebsd.org/api/units/1097688/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2021-05-23T13:00:53.529365Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksarch-handbookisa_index/zh_CN/?format=api", "source": [ "#include <isa/isavar.h>\n#include <isa/pnpvar.h>\n" ], "previous_source": "", "target": [ "" ], "id_hash": -1310738030603248333, "content_hash": -1310738030603248333, "location": "documentation/content/en/books/arch-handbook/isa/_index.adoc:70", "context": "", "note": "type: delimited block . 4", "flags": "no-wrap", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 8, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 4, "source_unit": "https://translate-dev.freebsd.org/api/units/1094744/?format=api", "priority": 100, "id": 1097689, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksarch-handbookisa_index/zh_CN/?checksum=6dcf52b4ac4c5d33", "url": "https://translate-dev.freebsd.org/api/units/1097689/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2021-05-23T13:00:53.534109Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksarch-handbookisa_index/zh_CN/?format=api", "source": [ "They describe the things specific to the ISA and generic bus subsystem." ], "previous_source": "", "target": [ "它们描述了针对ISA和通用总线子系统的东西。" ], "id_hash": 1515147902071772857, "content_hash": 1515147902071772857, "location": "documentation/content/en/books/arch-handbook/isa/_index.adoc:73", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 20, "fuzzy": false, "translated": true, "approved": false, "position": 9, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 12, "source_unit": "https://translate-dev.freebsd.org/api/units/1094746/?format=api", "priority": 100, "id": 1097690, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksarch-handbookisa_index/zh_CN/?checksum=9506e2fd452a96b9", "url": "https://translate-dev.freebsd.org/api/units/1097690/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2021-05-23T13:00:53.574517Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksarch-handbookisa_index/zh_CN/?format=api", "source": [ "The bus subsystem is implemented in an object-oriented fashion, its main structures are accessed by associated method functions." ], "previous_source": "", "target": [ "总线子系统是以面向对象的方式实现的,其主要结构通过相关联的方法函数来访问。" ], "id_hash": -9134674570025318302, "content_hash": -9134674570025318302, "location": "documentation/content/en/books/arch-handbook/isa/_index.adoc:75", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 20, "fuzzy": false, "translated": true, "approved": false, "position": 10, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 18, "source_unit": "https://translate-dev.freebsd.org/api/units/1094748/?format=api", "priority": 100, "id": 1097691, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksarch-handbookisa_index/zh_CN/?checksum=013b1de04ad8c862", "url": "https://translate-dev.freebsd.org/api/units/1097691/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2021-05-23T13:00:53.582434Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksarch-handbookisa_index/zh_CN/?format=api", "source": [ "The list of bus methods implemented by an ISA driver is like one for any other bus. For a hypothetical driver named \"xxx\" they would be:" ], "previous_source": "", "target": [ "" ], "id_hash": 2054686126816233697, "content_hash": 2054686126816233697, "location": "documentation/content/en/books/arch-handbook/isa/_index.adoc:77", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 11, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 26, "source_unit": "https://translate-dev.freebsd.org/api/units/1094750/?format=api", "priority": 100, "id": 1097692, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksarch-handbookisa_index/zh_CN/?checksum=9c83b62569ce08e1", "url": "https://translate-dev.freebsd.org/api/units/1097692/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2021-05-23T13:00:53.588243Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksarch-handbookisa_index/zh_CN/?format=api", "source": [ "`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." ], "previous_source": "", "target": [ "<function>static void xxx_isa_identify (driver_t *,device_t);</function> 通常用于总线驱动程序而不是设备驱动程序。但对于ISA设备,这个方法有特殊用途:如果设备提供某些设备特定的(非PnP)方法自动侦测设备,这个例程可以实现它。" ], "id_hash": 2232994659317827963, "content_hash": 2232994659317827963, "location": "documentation/content/en/books/arch-handbook/isa/_index.adoc:79", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 10, "fuzzy": true, "translated": false, "approved": false, "position": 12, "has_suggestion": false, "has_comment": false, "has_failing_check": true, "num_words": 40, "source_unit": "https://translate-dev.freebsd.org/api/units/1094752/?format=api", "priority": 100, "id": 1097693, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksarch-handbookisa_index/zh_CN/?checksum=9efd30cfcdfbc97b", "url": "https://translate-dev.freebsd.org/api/units/1097693/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2021-05-23T13:00:53.594097Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksarch-handbookisa_index/zh_CN/?format=api", "source": [ "`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." ], "previous_source": "", "target": [ "<function>static int xxx_isa_probe (device_tdev);</function> 在已知(或PnP)位置探测设备。对于已经部分配置的设备,这个例程也能够提供设备特定的对某些参数的自动侦测。" ], "id_hash": 2211732940275853051, "content_hash": 2211732940275853051, "location": "documentation/content/en/books/arch-handbook/isa/_index.adoc:80", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 10, "fuzzy": true, "translated": false, "approved": false, "position": 13, "has_suggestion": false, "has_comment": false, "has_failing_check": true, "num_words": 28, "source_unit": "https://translate-dev.freebsd.org/api/units/1094754/?format=api", "priority": 100, "id": 1097694, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksarch-handbookisa_index/zh_CN/?checksum=9eb1a764132c26fb", "url": "https://translate-dev.freebsd.org/api/units/1097694/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2021-05-23T13:00:53.600400Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksarch-handbookisa_index/zh_CN/?format=api", "source": [ "`static int xxx_isa_attach (device_t dev);` Attach and initialize device." ], "previous_source": "", "target": [ "" ], "id_hash": 2460813541101651085, "content_hash": 2460813541101651085, "location": "documentation/content/en/books/arch-handbook/isa/_index.adoc:81", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 14, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 9, "source_unit": "https://translate-dev.freebsd.org/api/units/1094756/?format=api", "priority": 100, "id": 1097695, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksarch-handbookisa_index/zh_CN/?checksum=a22690e0afd5c48d", "url": "https://translate-dev.freebsd.org/api/units/1097695/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2021-05-23T13:00:53.605788Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksarch-handbookisa_index/zh_CN/?format=api", "source": [ "`static int xxx_isa_detach (device_t dev);` Detach device before unloading the driver module." ], "previous_source": "", "target": [ "" ], "id_hash": -4758403739925837438, "content_hash": -4758403739925837438, "location": "documentation/content/en/books/arch-handbook/isa/_index.adoc:82", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 15, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 12, "source_unit": "https://translate-dev.freebsd.org/api/units/1094758/?format=api", "priority": 100, "id": 1097696, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksarch-handbookisa_index/zh_CN/?checksum=3df6c10277d48982", "url": "https://translate-dev.freebsd.org/api/units/1097696/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2021-05-23T13:00:53.611660Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksarch-handbookisa_index/zh_CN/?format=api", "source": [ "`static int xxx_isa_shutdown (device_t dev);` Execute shutdown of the device before system shutdown." ], "previous_source": "", "target": [ "" ], "id_hash": -6683579789924927966, "content_hash": -6683579789924927966, "location": "documentation/content/en/books/arch-handbook/isa/_index.adoc:83", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 16, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 13, "source_unit": "https://translate-dev.freebsd.org/api/units/1094760/?format=api", "priority": 100, "id": 1097697, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksarch-handbookisa_index/zh_CN/?checksum=233f2797998b7622", "url": "https://translate-dev.freebsd.org/api/units/1097697/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2021-05-23T13:00:53.617158Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksarch-handbookisa_index/zh_CN/?format=api", "source": [ "`static int xxx_isa_suspend (device_t dev);` Suspend the device before the system goes to the power-save state. May also abort transition to the power-save state." ], "previous_source": "", "target": [ "" ], "id_hash": -7446048143390765870, "content_hash": -7446048143390765870, "location": "documentation/content/en/books/arch-handbook/isa/_index.adoc:84", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 17, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 24, "source_unit": "https://translate-dev.freebsd.org/api/units/1094762/?format=api", "priority": 100, "id": 1097698, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksarch-handbookisa_index/zh_CN/?checksum=18aa52aa18bc8cd2", "url": "https://translate-dev.freebsd.org/api/units/1097698/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2021-05-23T13:00:53.622192Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksarch-handbookisa_index/zh_CN/?format=api", "source": [ "`static int xxx_isa_resume (device_t dev);` Resume the device activity after return from power-save state." ], "previous_source": "", "target": [ "" ], "id_hash": -921582790988502056, "content_hash": -921582790988502056, "location": "documentation/content/en/books/arch-handbook/isa/_index.adoc:85", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 18, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 14, "source_unit": "https://translate-dev.freebsd.org/api/units/1094764/?format=api", "priority": 100, "id": 1097699, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksarch-handbookisa_index/zh_CN/?checksum=7335e15598046bd8", "url": "https://translate-dev.freebsd.org/api/units/1097699/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2021-05-23T13:00:53.627240Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksarch-handbookisa_index/zh_CN/?format=api", "source": [ "`xxx_isa_probe()` and `xxx_isa_attach()` are mandatory, the rest of the routines are optional, depending on the device's needs." ], "previous_source": "", "target": [ "" ], "id_hash": 8679049836028170031, "content_hash": 8679049836028170031, "location": "documentation/content/en/books/arch-handbook/isa/_index.adoc:87", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 19, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 17, "source_unit": "https://translate-dev.freebsd.org/api/units/1094766/?format=api", "priority": 100, "id": 1097700, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksarch-handbookisa_index/zh_CN/?checksum=f8722dd7a05f0f2f", "url": "https://translate-dev.freebsd.org/api/units/1097700/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2021-05-23T13:00:53.633140Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksarch-handbookisa_index/zh_CN/?format=api", "source": [ "The driver is linked to the system with the following set of descriptions." ], "previous_source": "", "target": [ "使用下面一组描述符将设备驱动链接到系统。" ], "id_hash": 8900338993605763198, "content_hash": 8900338993605763198, "location": "documentation/content/en/books/arch-handbook/isa/_index.adoc:89", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 20, "fuzzy": false, "translated": true, "approved": false, "position": 20, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 13, "source_unit": "https://translate-dev.freebsd.org/api/units/1094768/?format=api", "priority": 100, "id": 1097701, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksarch-handbookisa_index/zh_CN/?checksum=fb845b289e6de07e", "url": "https://translate-dev.freebsd.org/api/units/1097701/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2021-05-23T13:00:53.638048Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksarch-handbookisa_index/zh_CN/?format=api", "source": [ " /* table of supported bus methods */\n static device_method_t xxx_isa_methods[] = {\n /* list all the bus method functions supported by the driver */\n /* omit the unsupported methods */\n DEVMETHOD(device_identify, xxx_isa_identify),\n DEVMETHOD(device_probe, xxx_isa_probe),\n DEVMETHOD(device_attach, xxx_isa_attach),\n DEVMETHOD(device_detach, xxx_isa_detach),\n DEVMETHOD(device_shutdown, xxx_isa_shutdown),\n DEVMETHOD(device_suspend, xxx_isa_suspend),\n DEVMETHOD(device_resume, xxx_isa_resume),\n" ], "previous_source": "", "target": [ "" ], "id_hash": 1550585623618758662, "content_hash": 1550585623618758662, "location": "documentation/content/en/books/arch-handbook/isa/_index.adoc:103", "context": "", "note": "type: delimited block . 4", "flags": "no-wrap", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 21, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 44, "source_unit": "https://translate-dev.freebsd.org/api/units/1094770/?format=api", "priority": 100, "id": 1097702, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksarch-handbookisa_index/zh_CN/?checksum=9584c968c99fa806", "url": "https://translate-dev.freebsd.org/api/units/1097702/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2021-05-23T13:00:53.643086Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksarch-handbookisa_index/zh_CN/?format=api", "source": [ "\tDEVMETHOD_END\n };\n" ], "previous_source": "", "target": [ "" ], "id_hash": 2117265394621260696, "content_hash": 2117265394621260696, "location": "documentation/content/en/books/arch-handbook/isa/_index.adoc:106", "context": "", "note": "type: delimited block . 4", "flags": "no-wrap", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 22, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 2, "source_unit": "https://translate-dev.freebsd.org/api/units/1094772/?format=api", "priority": 100, "id": 1097703, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksarch-handbookisa_index/zh_CN/?checksum=9d6209a89da0a398", "url": "https://translate-dev.freebsd.org/api/units/1097703/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2021-05-23T13:00:53.675114Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksarch-handbookisa_index/zh_CN/?format=api", "source": [ " static driver_t xxx_isa_driver = {\n \"xxx\",\n xxx_isa_methods,\n sizeof(struct xxx_softc),\n };\n" ], "previous_source": "", "target": [ "" ], "id_hash": 4996970894338305263, "content_hash": 4996970894338305263, "location": "documentation/content/en/books/arch-handbook/isa/_index.adoc:112", "context": "", "note": "type: delimited block . 4", "flags": "no-wrap", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 23, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 10, "source_unit": "https://translate-dev.freebsd.org/api/units/1094774/?format=api", "priority": 100, "id": 1097704, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksarch-handbookisa_index/zh_CN/?checksum=c558ce8da6002cef", "url": "https://translate-dev.freebsd.org/api/units/1097704/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2021-05-23T13:00:53.681526Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksarch-handbookisa_index/zh_CN/?format=api", "source": [ " static devclass_t xxx_devclass;\n" ], "previous_source": "", "target": [ "" ], "id_hash": 3900160448711081591, "content_hash": 3900160448711081591, "location": "documentation/content/en/books/arch-handbook/isa/_index.adoc:114", "context": "", "note": "type: delimited block . 4", "flags": "no-wrap", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 24, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 3, "source_unit": "https://translate-dev.freebsd.org/api/units/1094776/?format=api", "priority": 100, "id": 1097705, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksarch-handbookisa_index/zh_CN/?checksum=b6202743a073be77", "url": "https://translate-dev.freebsd.org/api/units/1097705/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2021-05-23T13:00:53.688055Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksarch-handbookisa_index/zh_CN/?format=api", "source": [ " DRIVER_MODULE(xxx, isa, xxx_isa_driver, xxx_devclass,\n load_function, load_argument);\n" ], "previous_source": "", "target": [ "" ], "id_hash": 2765965905617735974, "content_hash": 2765965905617735974, "location": "documentation/content/en/books/arch-handbook/isa/_index.adoc:117", "context": "", "note": "type: delimited block . 4", "flags": "no-wrap", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 25, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 6, "source_unit": "https://translate-dev.freebsd.org/api/units/1094778/?format=api", "priority": 100, "id": 1097706, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksarch-handbookisa_index/zh_CN/?checksum=a662af56212fd126", "url": "https://translate-dev.freebsd.org/api/units/1097706/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2021-05-23T13:00:53.693638Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksarch-handbookisa_index/zh_CN/?format=api", "source": [ "Here struct `xxx_softc` is a device-specific structure that contains private driver data and descriptors for the driver's resources. The bus code automatically allocates one softc descriptor per device as needed." ], "previous_source": "", "target": [ "" ], "id_hash": 349680253925963813, "content_hash": 349680253925963813, "location": "documentation/content/en/books/arch-handbook/isa/_index.adoc:120", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 26, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 30, "source_unit": "https://translate-dev.freebsd.org/api/units/1094780/?format=api", "priority": 100, "id": 1097707, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksarch-handbookisa_index/zh_CN/?checksum=84da50569839b825", "url": "https://translate-dev.freebsd.org/api/units/1097707/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2021-05-23T13:00:53.698919Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksarch-handbookisa_index/zh_CN/?format=api", "source": [ "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:" ], "previous_source": "", "target": [ "如果驱动程序作为可加载模块实现,当驱动程序被加载或卸载时,会调用<function>load_function()</function>函数进行驱动程序特定的初始化或清理工作,并将load_argument作为函数的一个参量传递进去。如果驱动程序不支持动态加载(换句话说,它必须被链接到内核中),则这些值应当被设置为0,最后的定义将看起来如下所示:" ], "id_hash": 4576205772083928950, "content_hash": 4576205772083928950, "location": "documentation/content/en/books/arch-handbook/isa/_index.adoc:122", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 10, "fuzzy": true, "translated": false, "approved": false, "position": 27, "has_suggestion": false, "has_comment": false, "has_failing_check": true, "num_words": 69, "source_unit": "https://translate-dev.freebsd.org/api/units/1094782/?format=api", "priority": 100, "id": 1097708, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksarch-handbookisa_index/zh_CN/?checksum=bf81f2e768279f76", "url": "https://translate-dev.freebsd.org/api/units/1097708/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2021-05-23T13:00:53.704575Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksarch-handbookisa_index/zh_CN/?format=api", "source": [ " DRIVER_MODULE(xxx, isa, xxx_isa_driver,\n xxx_devclass, 0, 0);\n" ], "previous_source": "", "target": [ " DRIVER_MODULE(xxx, isa, xxx_isa_driver,\n xxx_devclass, 0, 0);\n" ], "id_hash": 2888928827700784054, "content_hash": 2888928827700784054, "location": "documentation/content/en/books/arch-handbook/isa/_index.adoc:127", "context": "", "note": "type: delimited block . 4", "flags": "no-wrap", "labels": [], "state": 10, "fuzzy": true, "translated": false, "approved": false, "position": 28, "has_suggestion": false, "has_comment": false, "has_failing_check": true, "num_words": 6, "source_unit": "https://translate-dev.freebsd.org/api/units/1094784/?format=api", "priority": 100, "id": 1097709, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksarch-handbookisa_index/zh_CN/?checksum=a81789766c7dabb6", "url": "https://translate-dev.freebsd.org/api/units/1097709/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2021-05-23T13:00:53.710783Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksarch-handbookisa_index/zh_CN/?format=api", "source": [ "If the driver is for a device which supports PnP then a table of supported PnP IDs must be defined. The table consists of a list of PnP IDs supported by this driver and human-readable descriptions of the hardware types and models having these IDs. It looks like:" ], "previous_source": "", "target": [ "如果驱动程序是为支持PnP的设备而写的,那么就必须定义一个包含所有支持的PnP ID的表。这个表由此驱动程序所支持的PnP ID的列表和以人可读的形式给出的、与这些ID对应的硬件类型和型号的描述组成。看起来如下:" ], "id_hash": -3218959533997502139, "content_hash": -3218959533997502139, "location": "documentation/content/en/books/arch-handbook/isa/_index.adoc:130", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 20, "fuzzy": false, "translated": true, "approved": false, "position": 29, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 48, "source_unit": "https://translate-dev.freebsd.org/api/units/1094786/?format=api", "priority": 100, "id": 1097710, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksarch-handbookisa_index/zh_CN/?checksum=5353f55bcdb8d145", "url": "https://translate-dev.freebsd.org/api/units/1097710/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2021-05-23T13:00:53.716309Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksarch-handbookisa_index/zh_CN/?format=api", "source": [ " static struct isa_pnp_id xxx_pnp_ids[] = {\n /* a line for each supported PnP ID */\n { 0x12345678, \"Our device model 1234A\" },\n { 0x12345679, \"Our device model 1234B\" },\n { 0, NULL }, /* end of table */\n };\n" ], "previous_source": "", "target": [ " static struct isa_pnp_id xxx_pnp_ids[] = {\n /* a line for each supported PnP ID */\n { 0x12345678, \"Our device model 1234A\" },\n { 0x12345679, \"Our device model 1234B\" },\n { 0, NULL }, /* end of table */\n };\n" ], "id_hash": -3929577166904198977, "content_hash": -3929577166904198977, "location": "documentation/content/en/books/arch-handbook/isa/_index.adoc:139", "context": "", "note": "type: delimited block . 4", "flags": "no-wrap", "labels": [], "state": 10, "fuzzy": true, "translated": false, "approved": false, "position": 30, "has_suggestion": false, "has_comment": false, "has_failing_check": true, "num_words": 39, "source_unit": "https://translate-dev.freebsd.org/api/units/1094788/?format=api", "priority": 100, "id": 1097711, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksarch-handbookisa_index/zh_CN/?checksum=49775662f13078bf", "url": "https://translate-dev.freebsd.org/api/units/1097711/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2021-05-23T13:00:53.722833Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksarch-handbookisa_index/zh_CN/?format=api", "source": [ "If the driver does not support PnP devices it still needs an empty PnP ID table, like:" ], "previous_source": "", "target": [ "如果驱动程序不支持PnP设备,它仍然需要一个空的PnP ID表,如下所示:" ], "id_hash": 4369972597600309829, "content_hash": 4369972597600309829, "location": "documentation/content/en/books/arch-handbook/isa/_index.adoc:142", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 20, "fuzzy": false, "translated": true, "approved": false, "position": 31, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 17, "source_unit": "https://translate-dev.freebsd.org/api/units/1094790/?format=api", "priority": 100, "id": 1097712, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksarch-handbookisa_index/zh_CN/?checksum=bca542eca6285245", "url": "https://translate-dev.freebsd.org/api/units/1097712/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2021-05-23T13:00:53.728509Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksarch-handbookisa_index/zh_CN/?format=api", "source": [ " static struct isa_pnp_id xxx_pnp_ids[] = {\n { 0, NULL }, /* end of table */\n };\n" ], "previous_source": "", "target": [ " static struct isa_pnp_id xxx_pnp_ids[] = {\n { 0, NULL }, /* end of table */\n };\n" ], "id_hash": 4077886235857390004, "content_hash": 4077886235857390004, "location": "documentation/content/en/books/arch-handbook/isa/_index.adoc:148", "context": "", "note": "type: delimited block . 4", "flags": "no-wrap", "labels": [], "state": 10, "fuzzy": true, "translated": false, "approved": false, "position": 32, "has_suggestion": false, "has_comment": false, "has_failing_check": true, "num_words": 16, "source_unit": "https://translate-dev.freebsd.org/api/units/1094792/?format=api", "priority": 100, "id": 1097713, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksarch-handbookisa_index/zh_CN/?checksum=b8978fed0abc09b4", "url": "https://translate-dev.freebsd.org/api/units/1097713/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2021-05-23T13:00:53.734712Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksarch-handbookisa_index/zh_CN/?format=api", "source": [ "`device_t` Pointer" ], "previous_source": "", "target": [ "" ], "id_hash": 6281605980047985493, "content_hash": 6281605980047985493, "location": "documentation/content/en/books/arch-handbook/isa/_index.adoc:151", "context": "", "note": "type: Title ==", "flags": "no-wrap", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 33, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 2, "source_unit": "https://translate-dev.freebsd.org/api/units/1094794/?format=api", "priority": 100, "id": 1097714, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksarch-handbookisa_index/zh_CN/?checksum=d72cbf5b83bacb55", "url": "https://translate-dev.freebsd.org/api/units/1097714/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2021-05-23T13:00:53.739853Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksarch-handbookisa_index/zh_CN/?format=api", "source": [ "`device_t` is the pointer type for the device structure. Here we consider only the methods interesting from the device driver writer's standpoint. The methods to manipulate values in the device structure are:" ], "previous_source": "", "target": [ "" ], "id_hash": -2987471909801454217, "content_hash": -2987471909801454217, "location": "documentation/content/en/books/arch-handbook/isa/_index.adoc:154", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 34, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 32, "source_unit": "https://translate-dev.freebsd.org/api/units/1094796/?format=api", "priority": 100, "id": 1097715, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksarch-handbookisa_index/zh_CN/?checksum=568a5e2057d39577", "url": "https://translate-dev.freebsd.org/api/units/1097715/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2021-05-23T13:00:53.775597Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksarch-handbookisa_index/zh_CN/?format=api", "source": [ "`device_t device_get_parent(dev)` Get the parent bus of a device." ], "previous_source": "", "target": [ "" ], "id_hash": 7537777766807783344, "content_hash": 7537777766807783344, "location": "documentation/content/en/books/arch-handbook/isa/_index.adoc:156", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 35, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 9, "source_unit": "https://translate-dev.freebsd.org/api/units/1094798/?format=api", "priority": 100, "id": 1097716, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksarch-handbookisa_index/zh_CN/?checksum=e89b90f12a6a47b0", "url": "https://translate-dev.freebsd.org/api/units/1097716/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2021-05-23T13:00:53.781994Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksarch-handbookisa_index/zh_CN/?format=api", "source": [ "`driver_t device_get_driver(dev)` Get pointer to its driver structure." ], "previous_source": "", "target": [ "" ], "id_hash": 1182469804858403235, "content_hash": 1182469804858403235, "location": "documentation/content/en/books/arch-handbook/isa/_index.adoc:157", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 36, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 8, "source_unit": "https://translate-dev.freebsd.org/api/units/1094800/?format=api", "priority": 100, "id": 1097717, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksarch-handbookisa_index/zh_CN/?checksum=9068fa05c435e9a3", "url": "https://translate-dev.freebsd.org/api/units/1097717/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2021-05-23T13:00:53.788158Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksarch-handbookisa_index/zh_CN/?format=api", "source": [ "`char *device_get_name(dev)` Get the driver name, such as `\"xxx\"` for our example." ], "previous_source": "", "target": [ "" ], "id_hash": -1396568187784683065, "content_hash": -1396568187784683065, "location": "documentation/content/en/books/arch-handbook/isa/_index.adoc:158", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 37, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 12, "source_unit": "https://translate-dev.freebsd.org/api/units/1094802/?format=api", "priority": 100, "id": 1097718, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksarch-handbookisa_index/zh_CN/?checksum=6c9e64a1ee7ba1c7", "url": "https://translate-dev.freebsd.org/api/units/1097718/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2021-05-23T13:00:53.794473Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksarch-handbookisa_index/zh_CN/?format=api", "source": [ "`int device_get_unit(dev)` Get the unit number (units are numbered from 0 for the devices associated with each driver)." ], "previous_source": "", "target": [ "" ], "id_hash": 612279774878855808, "content_hash": 612279774878855808, "location": "documentation/content/en/books/arch-handbook/isa/_index.adoc:159", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 38, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 18, "source_unit": "https://translate-dev.freebsd.org/api/units/1094804/?format=api", "priority": 100, "id": 1097719, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksarch-handbookisa_index/zh_CN/?checksum=887f413614cf7280", "url": "https://translate-dev.freebsd.org/api/units/1097719/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2021-05-23T13:00:53.800710Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksarch-handbookisa_index/zh_CN/?format=api", "source": [ "`char *device_get_nameunit(dev)` Get the device name including the unit number, such as \"xxx0\", \"xxx1\" and so on." ], "previous_source": "", "target": [ "" ], "id_hash": -5029415955625726433, "content_hash": -5029415955625726433, "location": "documentation/content/en/books/arch-handbook/isa/_index.adoc:160", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 39, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 17, "source_unit": "https://translate-dev.freebsd.org/api/units/1094806/?format=api", "priority": 100, "id": 1097720, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksarch-handbookisa_index/zh_CN/?checksum=3a33ecd5d93f2e1f", "url": "https://translate-dev.freebsd.org/api/units/1097720/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2021-05-23T13:00:53.806967Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksarch-handbookisa_index/zh_CN/?format=api", "source": [ "`char *device_get_desc(dev)` Get the device description. Normally it describes the exact model of device in human-readable form." ], "previous_source": "", "target": [ "" ], "id_hash": -177551651738518336, "content_hash": -177551651738518336, "location": "documentation/content/en/books/arch-handbook/isa/_index.adoc:161", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 40, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 17, "source_unit": "https://translate-dev.freebsd.org/api/units/1094808/?format=api", "priority": 100, "id": 1097721, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksarch-handbookisa_index/zh_CN/?checksum=7d8935b6a4d77cc0", "url": "https://translate-dev.freebsd.org/api/units/1097721/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2021-05-23T13:00:53.812310Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksarch-handbookisa_index/zh_CN/?format=api", "source": [ "`device_set_desc(dev, desc)` Set the description. This makes the device description point to the string desc which may not be deallocated or changed after that." ], "previous_source": "", "target": [ "" ], "id_hash": -8291588833439838914, "content_hash": -8291588833439838914, "location": "documentation/content/en/books/arch-handbook/isa/_index.adoc:162", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 41, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 24, "source_unit": "https://translate-dev.freebsd.org/api/units/1094810/?format=api", "priority": 100, "id": 1097722, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksarch-handbookisa_index/zh_CN/?checksum=0cee5be2ff390d3e", "url": "https://translate-dev.freebsd.org/api/units/1097722/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2021-05-23T13:00:53.817505Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksarch-handbookisa_index/zh_CN/?format=api", "source": [ "`device_set_desc_copy(dev, desc)` Set the description. The description is copied into an internal dynamically allocated buffer, so the string desc may be changed afterwards without adverse effects." ], "previous_source": "", "target": [ "" ], "id_hash": -1240865696708455093, "content_hash": -1240865696708455093, "location": "documentation/content/en/books/arch-handbook/isa/_index.adoc:163", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 42, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 26, "source_unit": "https://translate-dev.freebsd.org/api/units/1094812/?format=api", "priority": 100, "id": 1097723, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksarch-handbookisa_index/zh_CN/?checksum=6ec78f3925b9954b", "url": "https://translate-dev.freebsd.org/api/units/1097723/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2021-05-23T13:00:53.823181Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksarch-handbookisa_index/zh_CN/?format=api", "source": [ "`void *device_get_softc(dev)` Get pointer to the device descriptor (struct `xxx_softc`) associated with this device." ], "previous_source": "", "target": [ "" ], "id_hash": 6892328956491015570, "content_hash": 6892328956491015570, "location": "documentation/content/en/books/arch-handbook/isa/_index.adoc:164", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 43, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 14, "source_unit": "https://translate-dev.freebsd.org/api/units/1094814/?format=api", "priority": 100, "id": 1097724, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksarch-handbookisa_index/zh_CN/?checksum=dfa678ab36c92592", "url": "https://translate-dev.freebsd.org/api/units/1097724/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2021-05-23T13:00:53.828268Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksarch-handbookisa_index/zh_CN/?format=api", "source": [ "`u_int32_t device_get_flags(dev)` Get the flags specified for the device in the configuration file." ], "previous_source": "", "target": [ "" ], "id_hash": -628273809331859896, "content_hash": -628273809331859896, "location": "documentation/content/en/books/arch-handbook/isa/_index.adoc:165", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 44, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 13, "source_unit": "https://translate-dev.freebsd.org/api/units/1094816/?format=api", "priority": 100, "id": 1097725, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksarch-handbookisa_index/zh_CN/?checksum=7747ec4c9517ce48", "url": "https://translate-dev.freebsd.org/api/units/1097725/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2021-05-23T13:00:53.833088Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksarch-handbookisa_index/zh_CN/?format=api", "source": [ "A convenience function `device_printf(dev, fmt, ...)` may be used to print the messages from the device driver. It automatically prepends the unitname and colon to the message." ], "previous_source": "", "target": [ "可以使用一个很方便的函数<function>device_printf(dev, fmt,...)</function>从设备驱动程序中打印讯息。它自动在讯息前添加单元名和冒号。" ], "id_hash": 985674047243953731, "content_hash": 985674047243953731, "location": "documentation/content/en/books/arch-handbook/isa/_index.adoc:167", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 10, "fuzzy": true, "translated": false, "approved": false, "position": 45, "has_suggestion": false, "has_comment": false, "has_failing_check": true, "num_words": 27, "source_unit": "https://translate-dev.freebsd.org/api/units/1094818/?format=api", "priority": 100, "id": 1097726, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksarch-handbookisa_index/zh_CN/?checksum=8dadd152da4c2643", "url": "https://translate-dev.freebsd.org/api/units/1097726/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2021-05-23T13:00:53.838297Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksarch-handbookisa_index/zh_CN/?format=api", "source": [ "The device_t methods are implemented in the file [.filename]#kern/bus_subr.c#." ], "previous_source": "", "target": [ "device_t的这些方法在文件<filename>kern/bus_subr.c</filename>中实现。" ], "id_hash": -7924524673122607142, "content_hash": -7924524673122607142, "location": "documentation/content/en/books/arch-handbook/isa/_index.adoc:169", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 10, "fuzzy": true, "translated": false, "approved": false, "position": 46, "has_suggestion": false, "has_comment": false, "has_failing_check": true, "num_words": 9, "source_unit": "https://translate-dev.freebsd.org/api/units/1094820/?format=api", "priority": 100, "id": 1097727, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksarch-handbookisa_index/zh_CN/?checksum=12066ecbb4b55fda", "url": "https://translate-dev.freebsd.org/api/units/1097727/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2021-05-23T13:00:53.884920Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksarch-handbookisa_index/zh_CN/?format=api", "source": [ "Configuration File and the Order of Identifying and Probing During Auto-Configuration" ], "previous_source": "", "target": [ "配置文件与自动配置期间识别和探测的顺序" ], "id_hash": -8311937302176660399, "content_hash": -8311937302176660399, "location": "documentation/content/en/books/arch-handbook/isa/_index.adoc:171", "context": "", "note": "type: Title ==", "flags": "no-wrap", "labels": [], "state": 20, "fuzzy": false, "translated": true, "approved": false, "position": 47, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 11, "source_unit": "https://translate-dev.freebsd.org/api/units/1094822/?format=api", "priority": 100, "id": 1097728, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksarch-handbookisa_index/zh_CN/?checksum=0ca6110fec710451", "url": "https://translate-dev.freebsd.org/api/units/1097728/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2021-05-23T13:00:53.891735Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksarch-handbookisa_index/zh_CN/?format=api", "source": [ "The ISA devices are described in the kernel configuration file like:" ], "previous_source": "", "target": [ "ISA设备在内核配置文件中的描述如下:" ], "id_hash": -4829337101172674428, "content_hash": -4829337101172674428, "location": "documentation/content/en/books/arch-handbook/isa/_index.adoc:174", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 20, "fuzzy": false, "translated": true, "approved": false, "position": 48, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 11, "source_unit": "https://translate-dev.freebsd.org/api/units/1094824/?format=api", "priority": 100, "id": 1097729, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksarch-handbookisa_index/zh_CN/?checksum=3cfabf7e4ffcf084", "url": "https://translate-dev.freebsd.org/api/units/1097729/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2021-05-23T13:00:53.897213Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksarch-handbookisa_index/zh_CN/?format=api", "source": [ "device xxx0 at isa? port 0x300 irq 10 drq 5\n iomem 0xd0000 flags 0x1 sensitive\n" ], "previous_source": "", "target": [ "device xxx0 at isa? port 0x300 irq 10 drq 5\n iomem 0xd0000 flags 0x1 sensitive\n" ], "id_hash": -2971491126047797713, "content_hash": -2971491126047797713, "location": "documentation/content/en/books/arch-handbook/isa/_index.adoc:179", "context": "", "note": "type: delimited block . 4", "flags": "no-wrap", "labels": [], "state": 10, "fuzzy": true, "translated": false, "approved": false, "position": 49, "has_suggestion": false, "has_comment": false, "has_failing_check": true, "num_words": 15, "source_unit": "https://translate-dev.freebsd.org/api/units/1094826/?format=api", "priority": 100, "id": 1097730, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksarch-handbookisa_index/zh_CN/?checksum=56c3249082b20e2f", "url": "https://translate-dev.freebsd.org/api/units/1097730/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2021-05-23T13:00:53.902747Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksarch-handbookisa_index/zh_CN/?format=api", "source": [ "The values of port, IRQ and so on are converted to the resource values associated with the device. They are optional, depending on the device's needs and abilities for auto-configuration. For example, some devices do not need DRQ at all and some allow the driver to read the IRQ setting from the device configuration ports. If a machine has multiple ISA buses the exact bus may be specified in the configuration line, like `isa0` or `isa1`, otherwise the device would be searched for on all the ISA buses." ], "previous_source": "", "target": [ "端口值、IRQ值和其他值被转换成与设备关联的资源值。根据设备对自动配置需要和支持程度的不同,这些值是可选的。例如,某些设备根本不需要读DRQ,而有些则允许设备从设备配置端口读取IRQ设置。如果机器有多个ISA总线,可以在配置文件中明确指定哪条总线,如<literal>isa0</literal>或<literal>isa1</literal>,否则将在所有ISA总线上搜索设备。" ], "id_hash": -3218006163478027758, "content_hash": -3218006163478027758, "location": "documentation/content/en/books/arch-handbook/isa/_index.adoc:182", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 10, "fuzzy": true, "translated": false, "approved": false, "position": 50, "has_suggestion": false, "has_comment": false, "has_failing_check": true, "num_words": 88, "source_unit": "https://translate-dev.freebsd.org/api/units/1094828/?format=api", "priority": 100, "id": 1097731, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksarch-handbookisa_index/zh_CN/?checksum=53575871acdfe212", "url": "https://translate-dev.freebsd.org/api/units/1097731/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2021-05-23T13:00:53.909101Z" } ] }{ "count": 368, "next": "