Units
Translation components API.
See the Weblate's Web API documentation for detailed description of the API.
GET /api/translations/documentation/booksarch-handbookpci_index/zh_CN/units/?format=api
https://translate-dev.freebsd.org/api/translations/documentation/booksarch-handbookpci_index/zh_CN/units/?format=api&page=2", "previous": null, "results": [ { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksarch-handbookpci_index/zh_CN/?format=api", "source": [ "Chapter 11. PCI Devices" ], "previous_source": "", "target": [ "" ], "id_hash": 9087004009005797905, "content_hash": 9087004009005797905, "location": "documentation/content/en/books/arch-handbook/pci/_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": 4, "source_unit": "https://translate-dev.freebsd.org/api/units/1129626/?format=api", "priority": 100, "id": 1130314, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksarch-handbookpci_index/zh_CN/?checksum=fe1b86004d575211", "url": "https://translate-dev.freebsd.org/api/units/1130314/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2021-05-23T13:15:27.234008Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksarch-handbookpci_index/zh_CN/?format=api", "source": [ "PCI Devices" ], "previous_source": "", "target": [ "PCI 设备" ], "id_hash": -2405568046307923930, "content_hash": -2405568046307923930, "location": "documentation/content/en/books/arch-handbook/pci/_index.adoc:1, documentation/content/en/books/arch-handbook/pci/_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": 2, "source_unit": "https://translate-dev.freebsd.org/api/units/1129628/?format=api", "priority": 100, "id": 1130315, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksarch-handbookpci_index/zh_CN/?checksum=5e9db49b6cc92826", "url": "https://translate-dev.freebsd.org/api/units/1130315/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2021-05-23T13:15:27.281515Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksarch-handbookpci_index/zh_CN/?format=api", "source": [ "This chapter will talk about the FreeBSD mechanisms for writing a device driver for a device on a PCI bus." ], "previous_source": "", "target": [ "本章将讨论FreeBSD为了给PCI总线上的设备编写驱动程序而提供的机制。" ], "id_hash": 7128565018664158750, "content_hash": 7128565018664158750, "location": "documentation/content/en/books/arch-handbook/pci/_index.adoc:51", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 20, "fuzzy": false, "translated": true, "approved": false, "position": 3, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 20, "source_unit": "https://translate-dev.freebsd.org/api/units/1129630/?format=api", "priority": 100, "id": 1130316, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksarch-handbookpci_index/zh_CN/?checksum=e2edc01d9fc0c61e", "url": "https://translate-dev.freebsd.org/api/units/1130316/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2021-05-23T13:15:27.438304Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksarch-handbookpci_index/zh_CN/?format=api", "source": [ "Probe and Attach" ], "previous_source": "", "target": [ "探测与连接" ], "id_hash": -4970308849792324082, "content_hash": -4970308849792324082, "location": "documentation/content/en/books/arch-handbook/pci/_index.adoc:53", "context": "", "note": "type: Title ==", "flags": "no-wrap", "labels": [], "state": 20, "fuzzy": false, "translated": true, "approved": false, "position": 4, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 3, "source_unit": "https://translate-dev.freebsd.org/api/units/1129632/?format=api", "priority": 100, "id": 1130317, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksarch-handbookpci_index/zh_CN/?checksum=3b05ea6f5825ee0e", "url": "https://translate-dev.freebsd.org/api/units/1130317/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2021-05-23T13:15:27.476098Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksarch-handbookpci_index/zh_CN/?format=api", "source": [ "Information here about how the PCI bus code iterates through the unattached devices and see if a newly loaded kld will attach to any of them." ], "previous_source": "", "target": [ "这儿的信息是关于PCI总线代码如何迭代通过未连接的设备,并查看新加载的kld是否会连接其中一个。" ], "id_hash": 2980254198151356115, "content_hash": 2980254198151356115, "location": "documentation/content/en/books/arch-handbook/pci/_index.adoc:56", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 20, "fuzzy": false, "translated": true, "approved": false, "position": 5, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 26, "source_unit": "https://translate-dev.freebsd.org/api/units/1129634/?format=api", "priority": 100, "id": 1130318, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksarch-handbookpci_index/zh_CN/?checksum=a95bfd67352d9ed3", "url": "https://translate-dev.freebsd.org/api/units/1130318/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2021-05-23T13:15:27.482792Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksarch-handbookpci_index/zh_CN/?format=api", "source": [ "Sample Driver Source ([.filename]#mypci.c#)" ], "previous_source": "", "target": [ "" ], "id_hash": -4741242201781938253, "content_hash": -4741242201781938253, "location": "documentation/content/en/books/arch-handbook/pci/_index.adoc:57", "context": "", "note": "type: Title ===", "flags": "no-wrap", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 6, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 4, "source_unit": "https://translate-dev.freebsd.org/api/units/1129636/?format=api", "priority": 100, "id": 1130319, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksarch-handbookpci_index/zh_CN/?checksum=3e33b95670b257b3", "url": "https://translate-dev.freebsd.org/api/units/1130319/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2021-05-23T13:15:27.489028Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksarch-handbookpci_index/zh_CN/?format=api", "source": [ "/*\n * Simple KLD to play with the PCI functions.\n *\n * Murray Stokely\n */\n" ], "previous_source": "", "target": [ "" ], "id_hash": -4528531188817435058, "content_hash": -4528531188817435058, "location": "documentation/content/en/books/arch-handbook/pci/_index.adoc:66", "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": 15, "source_unit": "https://translate-dev.freebsd.org/api/units/1129638/?format=api", "priority": 100, "id": 1130320, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksarch-handbookpci_index/zh_CN/?checksum=41276ce08042664e", "url": "https://translate-dev.freebsd.org/api/units/1130320/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2021-05-23T13:15:27.495809Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksarch-handbookpci_index/zh_CN/?format=api", "source": [ "#include <sys/param.h>\t\t/* defines used in kernel.h */\n#include <sys/module.h>\n#include <sys/systm.h>\n#include <sys/errno.h>\n#include <sys/kernel.h>\t\t/* types used in module initialization */\n#include <sys/conf.h>\t\t/* cdevsw struct */\n#include <sys/uio.h>\t\t/* uio struct */\n#include <sys/malloc.h>\n#include <sys/bus.h>\t\t/* structs, prototypes for pci bus stuff and DEVMETHOD macros! */\n" ], "previous_source": "", "target": [ "" ], "id_hash": 5782873124580133457, "content_hash": 5782873124580133457, "location": "documentation/content/en/books/arch-handbook/pci/_index.adoc:76", "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": 50, "source_unit": "https://translate-dev.freebsd.org/api/units/1129640/?format=api", "priority": 100, "id": 1130321, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksarch-handbookpci_index/zh_CN/?checksum=d040e477c3c08a51", "url": "https://translate-dev.freebsd.org/api/units/1130321/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2021-05-23T13:15:27.503206Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksarch-handbookpci_index/zh_CN/?format=api", "source": [ "#include <machine/bus.h>\n#include <sys/rman.h>\n#include <machine/resource.h>\n" ], "previous_source": "", "target": [ "" ], "id_hash": -8177038048762263417, "content_hash": -8177038048762263417, "location": "documentation/content/en/books/arch-handbook/pci/_index.adoc:80", "context": "", "note": "type: delimited block . 4", "flags": "no-wrap", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 9, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 6, "source_unit": "https://translate-dev.freebsd.org/api/units/1129642/?format=api", "priority": 100, "id": 1130322, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksarch-handbookpci_index/zh_CN/?checksum=0e855337ecac0887", "url": "https://translate-dev.freebsd.org/api/units/1130322/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2021-05-23T13:15:27.510046Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksarch-handbookpci_index/zh_CN/?format=api", "source": [ "#include <dev/pci/pcivar.h>\t/* For pci_get macros! */\n#include <dev/pci/pcireg.h>\n" ], "previous_source": "", "target": [ "" ], "id_hash": 7192577759524305884, "content_hash": 7192577759524305884, "location": "documentation/content/en/books/arch-handbook/pci/_index.adoc:83", "context": "", "note": "type: delimited block . 4", "flags": "no-wrap", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 10, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 9, "source_unit": "https://translate-dev.freebsd.org/api/units/1129644/?format=api", "priority": 100, "id": 1130323, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksarch-handbookpci_index/zh_CN/?checksum=e3d12b5d47d23bdc", "url": "https://translate-dev.freebsd.org/api/units/1130323/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2021-05-23T13:15:27.515745Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksarch-handbookpci_index/zh_CN/?format=api", "source": [ "/* The softc holds our per-instance data. */\nstruct mypci_softc {\n\tdevice_t\tmy_dev;\n\tstruct cdev\t*my_cdev;\n};\n" ], "previous_source": "", "target": [ "" ], "id_hash": -5111394901474326834, "content_hash": -5111394901474326834, "location": "documentation/content/en/books/arch-handbook/pci/_index.adoc:89", "context": "", "note": "type: delimited block . 4", "flags": "no-wrap", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 11, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 17, "source_unit": "https://translate-dev.freebsd.org/api/units/1129646/?format=api", "priority": 100, "id": 1130324, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksarch-handbookpci_index/zh_CN/?checksum=3910ad6b1ee146ce", "url": "https://translate-dev.freebsd.org/api/units/1130324/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2021-05-23T13:15:27.521548Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksarch-handbookpci_index/zh_CN/?format=api", "source": [ "/* Function prototypes */\nstatic d_open_t\t\tmypci_open;\nstatic d_close_t\tmypci_close;\nstatic d_read_t\t\tmypci_read;\nstatic d_write_t\tmypci_write;\n" ], "previous_source": "", "target": [ "" ], "id_hash": -6662636803869913439, "content_hash": -6662636803869913439, "location": "documentation/content/en/books/arch-handbook/pci/_index.adoc:95", "context": "", "note": "type: delimited block . 4", "flags": "no-wrap", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 12, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 16, "source_unit": "https://translate-dev.freebsd.org/api/units/1129648/?format=api", "priority": 100, "id": 1130325, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksarch-handbookpci_index/zh_CN/?checksum=23898f2085e3cea1", "url": "https://translate-dev.freebsd.org/api/units/1130325/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2021-05-23T13:15:27.527843Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksarch-handbookpci_index/zh_CN/?format=api", "source": [ "/* Character device entry points */\n" ], "previous_source": "", "target": [ "" ], "id_hash": 7121983362002818492, "content_hash": 7121983362002818492, "location": "documentation/content/en/books/arch-handbook/pci/_index.adoc:97", "context": "", "note": "type: delimited block . 4", "flags": "no-wrap", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 13, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 6, "source_unit": "https://translate-dev.freebsd.org/api/units/1129650/?format=api", "priority": 100, "id": 1130326, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksarch-handbookpci_index/zh_CN/?checksum=e2d65e22446b95bc", "url": "https://translate-dev.freebsd.org/api/units/1130326/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2021-05-23T13:15:27.533423Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksarch-handbookpci_index/zh_CN/?format=api", "source": [ "static struct cdevsw mypci_cdevsw = {\n\t.d_version =\tD_VERSION,\n\t.d_open =\tmypci_open,\n\t.d_close =\tmypci_close,\n\t.d_read =\tmypci_read,\n\t.d_write =\tmypci_write,\n\t.d_name =\t\"mypci\",\n};\n" ], "previous_source": "", "target": [ "" ], "id_hash": 1035432467585667496, "content_hash": 1035432467585667496, "location": "documentation/content/en/books/arch-handbook/pci/_index.adoc:106", "context": "", "note": "type: delimited block . 4", "flags": "no-wrap", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 14, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 25, "source_unit": "https://translate-dev.freebsd.org/api/units/1129652/?format=api", "priority": 100, "id": 1130327, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksarch-handbookpci_index/zh_CN/?checksum=8e5e9857e35991a8", "url": "https://translate-dev.freebsd.org/api/units/1130327/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2021-05-23T13:15:27.539648Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksarch-handbookpci_index/zh_CN/?format=api", "source": [ "/*\n * In the cdevsw routines, we find our softc by using the si_drv1 member\n * of struct cdev. We set this variable to point to our softc in our\n * attach routine when we create the /dev entry.\n */\n" ], "previous_source": "", "target": [ "" ], "id_hash": -2726327069787749966, "content_hash": -2726327069787749966, "location": "documentation/content/en/books/arch-handbook/pci/_index.adoc:112", "context": "", "note": "type: delimited block . 4", "flags": "no-wrap", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 15, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 40, "source_unit": "https://translate-dev.freebsd.org/api/units/1129654/?format=api", "priority": 100, "id": 1130328, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksarch-handbookpci_index/zh_CN/?checksum=5a2a23f987c501b2", "url": "https://translate-dev.freebsd.org/api/units/1130328/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2021-05-23T13:15:27.578663Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksarch-handbookpci_index/zh_CN/?format=api", "source": [ "int\nmypci_open(struct cdev *dev, int oflags, int devtype, struct thread *td)\n{\n\tstruct mypci_softc *sc;\n" ], "previous_source": "", "target": [ "" ], "id_hash": 7447887017738116790, "content_hash": 7447887017738116790, "location": "documentation/content/en/books/arch-handbook/pci/_index.adoc:117", "context": "", "note": "type: delimited block . 4", "flags": "no-wrap", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 16, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 15, "source_unit": "https://translate-dev.freebsd.org/api/units/1129656/?format=api", "priority": 100, "id": 1130329, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksarch-handbookpci_index/zh_CN/?checksum=e75c35c833861eb6", "url": "https://translate-dev.freebsd.org/api/units/1130329/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2021-05-23T13:15:27.585535Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksarch-handbookpci_index/zh_CN/?format=api", "source": [ "\t/* Look up our softc. */\n\tsc = dev->si_drv1;\n\tdevice_printf(sc->my_dev, \"Opened successfully.\\n\");\n\treturn (0);\n}\n" ], "previous_source": "", "target": [ "" ], "id_hash": -4912537314238654462, "content_hash": -4912537314238654462, "location": "documentation/content/en/books/arch-handbook/pci/_index.adoc:123", "context": "", "note": "type: delimited block . 4", "flags": "no-wrap", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 17, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 15, "source_unit": "https://translate-dev.freebsd.org/api/units/1129658/?format=api", "priority": 100, "id": 1130330, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksarch-handbookpci_index/zh_CN/?checksum=3bd3295726f41802", "url": "https://translate-dev.freebsd.org/api/units/1130330/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2021-05-23T13:15:27.591906Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksarch-handbookpci_index/zh_CN/?format=api", "source": [ "int\nmypci_close(struct cdev *dev, int fflag, int devtype, struct thread *td)\n{\n\tstruct mypci_softc *sc;\n" ], "previous_source": "", "target": [ "" ], "id_hash": 6823598130911970908, "content_hash": 6823598130911970908, "location": "documentation/content/en/books/arch-handbook/pci/_index.adoc:128", "context": "", "note": "type: delimited block . 4", "flags": "no-wrap", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 18, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 15, "source_unit": "https://translate-dev.freebsd.org/api/units/1129660/?format=api", "priority": 100, "id": 1130331, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksarch-handbookpci_index/zh_CN/?checksum=deb24a58db07065c", "url": "https://translate-dev.freebsd.org/api/units/1130331/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2021-05-23T13:15:27.598432Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksarch-handbookpci_index/zh_CN/?format=api", "source": [ "\t/* Look up our softc. */\n\tsc = dev->si_drv1;\n\tdevice_printf(sc->my_dev, \"Closed.\\n\");\n\treturn (0);\n}\n" ], "previous_source": "", "target": [ "" ], "id_hash": -6463448249438406371, "content_hash": -6463448249438406371, "location": "documentation/content/en/books/arch-handbook/pci/_index.adoc:134", "context": "", "note": "type: delimited block . 4", "flags": "no-wrap", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 19, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 14, "source_unit": "https://translate-dev.freebsd.org/api/units/1129662/?format=api", "priority": 100, "id": 1130332, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksarch-handbookpci_index/zh_CN/?checksum=264d380fdc1a791d", "url": "https://translate-dev.freebsd.org/api/units/1130332/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2021-05-23T13:15:27.605516Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksarch-handbookpci_index/zh_CN/?format=api", "source": [ "int\nmypci_read(struct cdev *dev, struct uio *uio, int ioflag)\n{\n\tstruct mypci_softc *sc;\n" ], "previous_source": "", "target": [ "" ], "id_hash": 4569672978564244934, "content_hash": 4569672978564244934, "location": "documentation/content/en/books/arch-handbook/pci/_index.adoc:139", "context": "", "note": "type: delimited block . 4", "flags": "no-wrap", "labels": [], "state": 0, "fuzzy": false, "translated": false, "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/1129664/?format=api", "priority": 100, "id": 1130333, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksarch-handbookpci_index/zh_CN/?checksum=bf6abd5ce305e5c6", "url": "https://translate-dev.freebsd.org/api/units/1130333/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2021-05-23T13:15:27.612898Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksarch-handbookpci_index/zh_CN/?format=api", "source": [ "\t/* Look up our softc. */\n\tsc = dev->si_drv1;\n\tdevice_printf(sc->my_dev, \"Asked to read %zd bytes.\\n\", uio->uio_resid);\n\treturn (0);\n}\n" ], "previous_source": "", "target": [ "" ], "id_hash": -6403520121702984328, "content_hash": -6403520121702984328, "location": "documentation/content/en/books/arch-handbook/pci/_index.adoc:145", "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": 19, "source_unit": "https://translate-dev.freebsd.org/api/units/1129666/?format=api", "priority": 100, "id": 1130334, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksarch-handbookpci_index/zh_CN/?checksum=2722206069d3d578", "url": "https://translate-dev.freebsd.org/api/units/1130334/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2021-05-23T13:15:27.619884Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksarch-handbookpci_index/zh_CN/?format=api", "source": [ "int\nmypci_write(struct cdev *dev, struct uio *uio, int ioflag)\n{\n\tstruct mypci_softc *sc;\n" ], "previous_source": "", "target": [ "" ], "id_hash": 6184044133535866047, "content_hash": 6184044133535866047, "location": "documentation/content/en/books/arch-handbook/pci/_index.adoc:150", "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": 13, "source_unit": "https://translate-dev.freebsd.org/api/units/1129668/?format=api", "priority": 100, "id": 1130335, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksarch-handbookpci_index/zh_CN/?checksum=d5d2235ffebe5cbf", "url": "https://translate-dev.freebsd.org/api/units/1130335/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2021-05-23T13:15:27.626593Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksarch-handbookpci_index/zh_CN/?format=api", "source": [ "\t/* Look up our softc. */\n\tsc = dev->si_drv1;\n\tdevice_printf(sc->my_dev, \"Asked to write %zd bytes.\\n\", uio->uio_resid);\n\treturn (0);\n}\n" ], "previous_source": "", "target": [ "" ], "id_hash": 2078429852645958721, "content_hash": 2078429852645958721, "location": "documentation/content/en/books/arch-handbook/pci/_index.adoc:156", "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": 19, "source_unit": "https://translate-dev.freebsd.org/api/units/1129670/?format=api", "priority": 100, "id": 1130336, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksarch-handbookpci_index/zh_CN/?checksum=9cd810f06187a441", "url": "https://translate-dev.freebsd.org/api/units/1130336/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2021-05-23T13:15:27.632101Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksarch-handbookpci_index/zh_CN/?format=api", "source": [ "/* PCI Support Functions */\n" ], "previous_source": "", "target": [ "" ], "id_hash": -3356717584991520742, "content_hash": -3356717584991520742, "location": "documentation/content/en/books/arch-handbook/pci/_index.adoc:158", "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": 5, "source_unit": "https://translate-dev.freebsd.org/api/units/1129672/?format=api", "priority": 100, "id": 1130337, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksarch-handbookpci_index/zh_CN/?checksum=516a8b241f45f81a", "url": "https://translate-dev.freebsd.org/api/units/1130337/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2021-05-23T13:15:27.679113Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksarch-handbookpci_index/zh_CN/?format=api", "source": [ "/*\n * Compare the device ID of this device against the IDs that this driver\n * supports. If there is a match, set the description and return success.\n */\nstatic int\nmypci_probe(device_t dev)\n{\n" ], "previous_source": "", "target": [ "" ], "id_hash": -4782226883706694290, "content_hash": -4782226883706694290, "location": "documentation/content/en/books/arch-handbook/pci/_index.adoc:166", "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": 34, "source_unit": "https://translate-dev.freebsd.org/api/units/1129674/?format=api", "priority": 100, "id": 1130338, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksarch-handbookpci_index/zh_CN/?checksum=3da21dfc9156d56e", "url": "https://translate-dev.freebsd.org/api/units/1130338/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2021-05-23T13:15:27.686752Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksarch-handbookpci_index/zh_CN/?format=api", "source": [ "\tdevice_printf(dev, \"MyPCI Probe\\nVendor ID : 0x%x\\nDevice ID : 0x%x\\n\",\n\t pci_get_vendor(dev), pci_get_device(dev));\n" ], "previous_source": "", "target": [ "" ], "id_hash": 8342269684975612585, "content_hash": 8342269684975612585, "location": "documentation/content/en/books/arch-handbook/pci/_index.adoc:169", "context": "", "note": "type: delimited block . 4", "flags": "no-wrap", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 26, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 11, "source_unit": "https://translate-dev.freebsd.org/api/units/1129676/?format=api", "priority": 100, "id": 1130339, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksarch-handbookpci_index/zh_CN/?checksum=f3c5b214497b32a9", "url": "https://translate-dev.freebsd.org/api/units/1130339/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2021-05-23T13:15:27.694110Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksarch-handbookpci_index/zh_CN/?format=api", "source": [ "\tif (pci_get_vendor(dev) == 0x11c1) {\n\t\tprintf(\"We've got the Winmodem, probe successful!\\n\");\n\t\tdevice_set_desc(dev, \"WinModem\");\n\t\treturn (BUS_PROBE_DEFAULT);\n\t}\n\treturn (ENXIO);\n}\n" ], "previous_source": "", "target": [ "" ], "id_hash": 3792144164057235103, "content_hash": 3792144164057235103, "location": "documentation/content/en/books/arch-handbook/pci/_index.adoc:177", "context": "", "note": "type: delimited block . 4", "flags": "no-wrap", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 27, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 19, "source_unit": "https://translate-dev.freebsd.org/api/units/1129678/?format=api", "priority": 100, "id": 1130340, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksarch-handbookpci_index/zh_CN/?checksum=b4a067068bb3be9f", "url": "https://translate-dev.freebsd.org/api/units/1130340/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2021-05-23T13:15:27.701585Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksarch-handbookpci_index/zh_CN/?format=api", "source": [ "/* Attach function is only called if the probe is successful. */\n" ], "previous_source": "", "target": [ "" ], "id_hash": 8517834664077034501, "content_hash": 8517834664077034501, "location": "documentation/content/en/books/arch-handbook/pci/_index.adoc:179", "context": "", "note": "type: delimited block . 4", "flags": "no-wrap", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 28, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 12, "source_unit": "https://translate-dev.freebsd.org/api/units/1129680/?format=api", "priority": 100, "id": 1130341, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksarch-handbookpci_index/zh_CN/?checksum=f6356d7f5fd20405", "url": "https://translate-dev.freebsd.org/api/units/1130341/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2021-05-23T13:15:27.708512Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksarch-handbookpci_index/zh_CN/?format=api", "source": [ "static int\nmypci_attach(device_t dev)\n{\n\tstruct mypci_softc *sc;\n" ], "previous_source": "", "target": [ "" ], "id_hash": 2239243244118879616, "content_hash": 2239243244118879616, "location": "documentation/content/en/books/arch-handbook/pci/_index.adoc:184", "context": "", "note": "type: delimited block . 4", "flags": "no-wrap", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 29, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 8, "source_unit": "https://translate-dev.freebsd.org/api/units/1129682/?format=api", "priority": 100, "id": 1130342, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksarch-handbookpci_index/zh_CN/?checksum=9f1363ddd3662d80", "url": "https://translate-dev.freebsd.org/api/units/1130342/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2021-05-23T13:15:27.715717Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksarch-handbookpci_index/zh_CN/?format=api", "source": [ "\tprintf(\"MyPCI Attach for : deviceID : 0x%x\\n\", pci_get_devid(dev));\n" ], "previous_source": "", "target": [ "" ], "id_hash": -1000062124323624889, "content_hash": -1000062124323624889, "location": "documentation/content/en/books/arch-handbook/pci/_index.adoc:186", "context": "", "note": "type: delimited block . 4", "flags": "no-wrap", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 30, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 8, "source_unit": "https://translate-dev.freebsd.org/api/units/1129684/?format=api", "priority": 100, "id": 1130343, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksarch-handbookpci_index/zh_CN/?checksum=721f10cbe65e2847", "url": "https://translate-dev.freebsd.org/api/units/1130343/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2021-05-23T13:15:27.723296Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksarch-handbookpci_index/zh_CN/?format=api", "source": [ "\t/* Look up our softc and initialize its fields. */\n\tsc = device_get_softc(dev);\n\tsc->my_dev = dev;\n" ], "previous_source": "", "target": [ "" ], "id_hash": -6253878911024354446, "content_hash": -6253878911024354446, "location": "documentation/content/en/books/arch-handbook/pci/_index.adoc:190", "context": "", "note": "type: delimited block . 4", "flags": "no-wrap", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 31, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 16, "source_unit": "https://translate-dev.freebsd.org/api/units/1129686/?format=api", "priority": 100, "id": 1130344, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksarch-handbookpci_index/zh_CN/?checksum=2935c243d0162b72", "url": "https://translate-dev.freebsd.org/api/units/1130344/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2021-05-23T13:15:27.729388Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksarch-handbookpci_index/zh_CN/?format=api", "source": [ "\t/*\n\t * Create a /dev entry for this device. The kernel will assign us\n\t * a major number automatically. We use the unit number of this\n\t * device as the minor number and name the character device\n\t * \"mypci<unit>\".\n\t */\n\tsc->my_cdev = make_dev(&mypci_cdevsw, device_get_unit(dev),\n\t UID_ROOT, GID_WHEEL, 0600, \"mypci%u\", device_get_unit(dev));\n\tsc->my_cdev->si_drv1 = sc;\n\tprintf(\"Mypci device loaded.\\n\");\n\treturn (0);\n}\n" ], "previous_source": "", "target": [ "" ], "id_hash": 1108703314764382865, "content_hash": 1108703314764382865, "location": "documentation/content/en/books/arch-handbook/pci/_index.adoc:203", "context": "", "note": "type: delimited block . 4", "flags": "no-wrap", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 32, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 58, "source_unit": "https://translate-dev.freebsd.org/api/units/1129688/?format=api", "priority": 100, "id": 1130345, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksarch-handbookpci_index/zh_CN/?checksum=8f62e7ca65d44291", "url": "https://translate-dev.freebsd.org/api/units/1130345/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2021-05-23T13:15:27.735773Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksarch-handbookpci_index/zh_CN/?format=api", "source": [ "/* Detach device. */\n" ], "previous_source": "", "target": [ "" ], "id_hash": 4390660124660472667, "content_hash": 4390660124660472667, "location": "documentation/content/en/books/arch-handbook/pci/_index.adoc:205", "context": "", "note": "type: delimited block . 4", "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": 4, "source_unit": "https://translate-dev.freebsd.org/api/units/1129690/?format=api", "priority": 100, "id": 1130346, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksarch-handbookpci_index/zh_CN/?checksum=bceec21ee3dc1b5b", "url": "https://translate-dev.freebsd.org/api/units/1130346/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2021-05-23T13:15:27.743012Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksarch-handbookpci_index/zh_CN/?format=api", "source": [ "static int\nmypci_detach(device_t dev)\n{\n\tstruct mypci_softc *sc;\n" ], "previous_source": "", "target": [ "" ], "id_hash": 6795081439455105922, "content_hash": 6795081439455105922, "location": "documentation/content/en/books/arch-handbook/pci/_index.adoc:210", "context": "", "note": "type: delimited block . 4", "flags": "no-wrap", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 34, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 8, "source_unit": "https://translate-dev.freebsd.org/api/units/1129692/?format=api", "priority": 100, "id": 1130347, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksarch-handbookpci_index/zh_CN/?checksum=de4cfa913a925382", "url": "https://translate-dev.freebsd.org/api/units/1130347/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2021-05-23T13:15:27.781353Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksarch-handbookpci_index/zh_CN/?format=api", "source": [ "\t/* Teardown the state in our softc created in our attach routine. */\n\tsc = device_get_softc(dev);\n\tdestroy_dev(sc->my_cdev);\n\tprintf(\"Mypci detach!\\n\");\n\treturn (0);\n}\n" ], "previous_source": "", "target": [ "" ], "id_hash": -3741085744382605801, "content_hash": -3741085744382605801, "location": "documentation/content/en/books/arch-handbook/pci/_index.adoc:217", "context": "", "note": "type: delimited block . 4", "flags": "no-wrap", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 35, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 22, "source_unit": "https://translate-dev.freebsd.org/api/units/1129694/?format=api", "priority": 100, "id": 1130348, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksarch-handbookpci_index/zh_CN/?checksum=4c14fe562bcc0617", "url": "https://translate-dev.freebsd.org/api/units/1130348/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2021-05-23T13:15:27.788982Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksarch-handbookpci_index/zh_CN/?format=api", "source": [ "/* Called during system shutdown after sync. */\n" ], "previous_source": "", "target": [ "" ], "id_hash": -7018951603584649870, "content_hash": -7018951603584649870, "location": "documentation/content/en/books/arch-handbook/pci/_index.adoc:219", "context": "", "note": "type: delimited block . 4", "flags": "no-wrap", "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/1129696/?format=api", "priority": 100, "id": 1130349, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksarch-handbookpci_index/zh_CN/?checksum=1e97acb45cadb572", "url": "https://translate-dev.freebsd.org/api/units/1130349/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2021-05-23T13:15:27.797730Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksarch-handbookpci_index/zh_CN/?format=api", "source": [ "static int\nmypci_shutdown(device_t dev)\n{\n" ], "previous_source": "", "target": [ "" ], "id_hash": -4607521710940380474, "content_hash": -4607521710940380474, "location": "documentation/content/en/books/arch-handbook/pci/_index.adoc:223", "context": "", "note": "type: delimited block . 4", "flags": "no-wrap", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 37, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 5, "source_unit": "https://translate-dev.freebsd.org/api/units/1129698/?format=api", "priority": 100, "id": 1130350, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksarch-handbookpci_index/zh_CN/?checksum=400ecb6a647fa2c6", "url": "https://translate-dev.freebsd.org/api/units/1130350/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2021-05-23T13:15:27.805288Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksarch-handbookpci_index/zh_CN/?format=api", "source": [ "\tprintf(\"Mypci shutdown!\\n\");\n\treturn (0);\n}\n" ], "previous_source": "", "target": [ "" ], "id_hash": 1820570150399361746, "content_hash": 1820570150399361746, "location": "documentation/content/en/books/arch-handbook/pci/_index.adoc:227", "context": "", "note": "type: delimited block . 4", "flags": "no-wrap", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 38, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 5, "source_unit": "https://translate-dev.freebsd.org/api/units/1129700/?format=api", "priority": 100, "id": 1130351, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksarch-handbookpci_index/zh_CN/?checksum=9943f6e7ef3bc2d2", "url": "https://translate-dev.freebsd.org/api/units/1130351/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2021-05-23T13:15:27.813111Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksarch-handbookpci_index/zh_CN/?format=api", "source": [ "/*\n * Device suspend routine.\n */\nstatic int\nmypci_suspend(device_t dev)\n{\n" ], "previous_source": "", "target": [ "" ], "id_hash": 1545921008589662732, "content_hash": 1545921008589662732, "location": "documentation/content/en/books/arch-handbook/pci/_index.adoc:234", "context": "", "note": "type: delimited block . 4", "flags": "no-wrap", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 39, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 11, "source_unit": "https://translate-dev.freebsd.org/api/units/1129702/?format=api", "priority": 100, "id": 1130352, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksarch-handbookpci_index/zh_CN/?checksum=957436f777ccea0c", "url": "https://translate-dev.freebsd.org/api/units/1130352/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2021-05-23T13:15:27.820282Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksarch-handbookpci_index/zh_CN/?format=api", "source": [ "\tprintf(\"Mypci suspend!\\n\");\n\treturn (0);\n}\n" ], "previous_source": "", "target": [ "" ], "id_hash": 1584081662081851757, "content_hash": 1584081662081851757, "location": "documentation/content/en/books/arch-handbook/pci/_index.adoc:238", "context": "", "note": "type: delimited block . 4", "flags": "no-wrap", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 40, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 5, "source_unit": "https://translate-dev.freebsd.org/api/units/1129704/?format=api", "priority": 100, "id": 1130353, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksarch-handbookpci_index/zh_CN/?checksum=95fbc9e0fb99616d", "url": "https://translate-dev.freebsd.org/api/units/1130353/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2021-05-23T13:15:27.827160Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksarch-handbookpci_index/zh_CN/?format=api", "source": [ "/*\n * Device resume routine.\n */\nstatic int\nmypci_resume(device_t dev)\n{\n" ], "previous_source": "", "target": [ "" ], "id_hash": 1630850687499831399, "content_hash": 1630850687499831399, "location": "documentation/content/en/books/arch-handbook/pci/_index.adoc:245", "context": "", "note": "type: delimited block . 4", "flags": "no-wrap", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 41, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 11, "source_unit": "https://translate-dev.freebsd.org/api/units/1129706/?format=api", "priority": 100, "id": 1130354, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksarch-handbookpci_index/zh_CN/?checksum=96a1f20f46210867", "url": "https://translate-dev.freebsd.org/api/units/1130354/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2021-05-23T13:15:27.833968Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksarch-handbookpci_index/zh_CN/?format=api", "source": [ "\tprintf(\"Mypci resume!\\n\");\n\treturn (0);\n}\n" ], "previous_source": "", "target": [ "" ], "id_hash": -3215368035011620725, "content_hash": -3215368035011620725, "location": "documentation/content/en/books/arch-handbook/pci/_index.adoc:249", "context": "", "note": "type: delimited block . 4", "flags": "no-wrap", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 42, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 5, "source_unit": "https://translate-dev.freebsd.org/api/units/1129708/?format=api", "priority": 100, "id": 1130355, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksarch-handbookpci_index/zh_CN/?checksum=5360b7ced2fc908b", "url": "https://translate-dev.freebsd.org/api/units/1130355/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2021-05-23T13:15:27.840721Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksarch-handbookpci_index/zh_CN/?format=api", "source": [ "static device_method_t mypci_methods[] = {\n\t/* Device interface */\n\tDEVMETHOD(device_probe,\t\tmypci_probe),\n\tDEVMETHOD(device_attach,\tmypci_attach),\n\tDEVMETHOD(device_detach,\tmypci_detach),\n\tDEVMETHOD(device_shutdown,\tmypci_shutdown),\n\tDEVMETHOD(device_suspend,\tmypci_suspend),\n\tDEVMETHOD(device_resume,\tmypci_resume),\n" ], "previous_source": "", "target": [ "" ], "id_hash": -2240739675539802018, "content_hash": -2240739675539802018, "location": "documentation/content/en/books/arch-handbook/pci/_index.adoc:258", "context": "", "note": "type: delimited block . 4", "flags": "no-wrap", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 43, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 21, "source_unit": "https://translate-dev.freebsd.org/api/units/1129710/?format=api", "priority": 100, "id": 1130356, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksarch-handbookpci_index/zh_CN/?checksum=60e74b231553785e", "url": "https://translate-dev.freebsd.org/api/units/1130356/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2021-05-23T13:15:27.880949Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksarch-handbookpci_index/zh_CN/?format=api", "source": [ "\tDEVMETHOD_END\n};\n" ], "previous_source": "", "target": [ "" ], "id_hash": 1708661251794466319, "content_hash": 1708661251794466319, "location": "documentation/content/en/books/arch-handbook/pci/_index.adoc:261", "context": "", "note": "type: delimited block . 4", "flags": "no-wrap", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 44, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 2, "source_unit": "https://translate-dev.freebsd.org/api/units/1129712/?format=api", "priority": 100, "id": 1130357, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksarch-handbookpci_index/zh_CN/?checksum=97b6625b0aaef60f", "url": "https://translate-dev.freebsd.org/api/units/1130357/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2021-05-23T13:15:27.888069Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksarch-handbookpci_index/zh_CN/?format=api", "source": [ "static devclass_t mypci_devclass;\n" ], "previous_source": "", "target": [ "" ], "id_hash": 8832537792341830952, "content_hash": 8832537792341830952, "location": "documentation/content/en/books/arch-handbook/pci/_index.adoc:263", "context": "", "note": "type: delimited block . 4", "flags": "no-wrap", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 45, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 3, "source_unit": "https://translate-dev.freebsd.org/api/units/1129714/?format=api", "priority": 100, "id": 1130358, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksarch-handbookpci_index/zh_CN/?checksum=fa937a5349bf6d28", "url": "https://translate-dev.freebsd.org/api/units/1130358/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2021-05-23T13:15:27.900673Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksarch-handbookpci_index/zh_CN/?format=api", "source": [ "DEFINE_CLASS_0(mypci, mypci_driver, mypci_methods, sizeof(struct mypci_softc));\nDRIVER_MODULE(mypci, pci, mypci_driver, mypci_devclass, 0, 0);\n" ], "previous_source": "", "target": [ "" ], "id_hash": -4855599502698807363, "content_hash": -4855599502698807363, "location": "documentation/content/en/books/arch-handbook/pci/_index.adoc:266", "context": "", "note": "type: delimited block . 4", "flags": "no-wrap", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 46, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 11, "source_unit": "https://translate-dev.freebsd.org/api/units/1129716/?format=api", "priority": 100, "id": 1130359, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksarch-handbookpci_index/zh_CN/?checksum=3c9d71fa7612ffbd", "url": "https://translate-dev.freebsd.org/api/units/1130359/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2021-05-23T13:15:27.907054Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksarch-handbookpci_index/zh_CN/?format=api", "source": [ "[.filename]#Makefile# for Sample Driver" ], "previous_source": "", "target": [ "" ], "id_hash": -6788203890850042466, "content_hash": -6788203890850042466, "location": "documentation/content/en/books/arch-handbook/pci/_index.adoc:268", "context": "", "note": "type: Title ===", "flags": "no-wrap", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 47, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 4, "source_unit": "https://translate-dev.freebsd.org/api/units/1129718/?format=api", "priority": 100, "id": 1130360, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksarch-handbookpci_index/zh_CN/?checksum=21cb7486d6f56d9e", "url": "https://translate-dev.freebsd.org/api/units/1130360/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2021-05-23T13:15:27.916158Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksarch-handbookpci_index/zh_CN/?format=api", "source": [ "# Makefile for mypci driver\n" ], "previous_source": "", "target": [ "" ], "id_hash": 5902119141224214786, "content_hash": 5902119141224214786, "location": "documentation/content/en/books/arch-handbook/pci/_index.adoc:273", "context": "", "note": "type: delimited block . 4", "flags": "no-wrap", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 48, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 5, "source_unit": "https://translate-dev.freebsd.org/api/units/1129720/?format=api", "priority": 100, "id": 1130361, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksarch-handbookpci_index/zh_CN/?checksum=d1e88a1692b3f102", "url": "https://translate-dev.freebsd.org/api/units/1130361/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2021-05-23T13:15:27.928909Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksarch-handbookpci_index/zh_CN/?format=api", "source": [ "KMOD=\tmypci\nSRCS=\tmypci.c\nSRCS+=\tdevice_if.h bus_if.h pci_if.h\n" ], "previous_source": "", "target": [ "" ], "id_hash": -8117356093303487027, "content_hash": -8117356093303487027, "location": "documentation/content/en/books/arch-handbook/pci/_index.adoc:277", "context": "", "note": "type: delimited block . 4", "flags": "no-wrap", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 49, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 8, "source_unit": "https://translate-dev.freebsd.org/api/units/1129722/?format=api", "priority": 100, "id": 1130362, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksarch-handbookpci_index/zh_CN/?checksum=0f595ba4074b05cd", "url": "https://translate-dev.freebsd.org/api/units/1130362/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2021-05-23T13:15:27.935606Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksarch-handbookpci_index/zh_CN/?format=api", "source": [ ".include <bsd.kmod.mk>\n" ], "previous_source": "", "target": [ "" ], "id_hash": 8975336119357712390, "content_hash": 8975336119357712390, "location": "documentation/content/en/books/arch-handbook/pci/_index.adoc:279", "context": "", "note": "type: delimited block . 4", "flags": "no-wrap", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 50, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 2, "source_unit": "https://translate-dev.freebsd.org/api/units/1129724/?format=api", "priority": 100, "id": 1130363, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksarch-handbookpci_index/zh_CN/?checksum=fc8ecca5ae0ca806", "url": "https://translate-dev.freebsd.org/api/units/1130363/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2021-05-23T13:15:27.942473Z" } ] }{ "count": 86, "next": "