162306a36Sopenharmony_ciChinese translated version of Documentation/core-api/irq/index.rst 262306a36Sopenharmony_ci 362306a36Sopenharmony_ciIf you have any comment or update to the content, please contact the 462306a36Sopenharmony_cioriginal document maintainer directly. However, if you have a problem 562306a36Sopenharmony_cicommunicating in English you can also ask the Chinese maintainer for 662306a36Sopenharmony_cihelp. Contact the Chinese maintainer if this translation is outdated 762306a36Sopenharmony_cior if there is a problem with the translation. 862306a36Sopenharmony_ci 962306a36Sopenharmony_ciMaintainer: Eric W. Biederman <ebiederman@xmission.com> 1062306a36Sopenharmony_ciTraditional Chinese maintainer: Hu Haowen <src.res.211@gmail.com> 1162306a36Sopenharmony_ci--------------------------------------------------------------------- 1262306a36Sopenharmony_ciDocumentation/core-api/irq/index.rst 的繁體中文翻譯 1362306a36Sopenharmony_ci 1462306a36Sopenharmony_ci如果想評論或更新本文的內容,請直接聯繫原文檔的維護者。如果你使用英文 1562306a36Sopenharmony_ci交流有困難的話,也可以向繁體中文版維護者求助。如果本翻譯更新不及時或 1662306a36Sopenharmony_ci者翻譯存在問題,請聯繫繁體中文版維護者。 1762306a36Sopenharmony_ci 1862306a36Sopenharmony_ci英文版維護者: Eric W. Biederman <ebiederman@xmission.com> 1962306a36Sopenharmony_ci繁體中文版維護者: 胡皓文 Hu Haowen <src.res.211@gmail.com> 2062306a36Sopenharmony_ci繁體中文版翻譯者: 胡皓文 Hu Haowen <src.res.211@gmail.com> 2162306a36Sopenharmony_ci繁體中文版校譯者: 胡皓文 Hu Haowen <src.res.211@gmail.com> 2262306a36Sopenharmony_ci 2362306a36Sopenharmony_ci 2462306a36Sopenharmony_ci以下爲正文 2562306a36Sopenharmony_ci--------------------------------------------------------------------- 2662306a36Sopenharmony_ci何爲 IRQ? 2762306a36Sopenharmony_ci 2862306a36Sopenharmony_ci一個 IRQ 是來自某個設備的一個中斷請求。目前,它們可以來自一個硬體引腳, 2962306a36Sopenharmony_ci或來自一個數據包。多個設備可能連接到同個硬體引腳,從而共享一個 IRQ。 3062306a36Sopenharmony_ci 3162306a36Sopenharmony_ci一個 IRQ 編號是用於告知硬體中斷源的內核標識。通常情況下,這是一個 3262306a36Sopenharmony_ci全局 irq_desc 數組的索引,但是除了在 linux/interrupt.h 中的實現, 3362306a36Sopenharmony_ci具體的細節是體系結構特定的。 3462306a36Sopenharmony_ci 3562306a36Sopenharmony_ci一個 IRQ 編號是設備上某個可能的中斷源的枚舉。通常情況下,枚舉的編號是 3662306a36Sopenharmony_ci該引腳在系統內中斷控制器的所有輸入引腳中的編號。對於 ISA 總線中的情況, 3762306a36Sopenharmony_ci枚舉的是在兩個 i8259 中斷控制器中 16 個輸入引腳。 3862306a36Sopenharmony_ci 3962306a36Sopenharmony_ci架構可以對 IRQ 編號指定額外的含義,在硬體涉及任何手工配置的情況下, 4062306a36Sopenharmony_ci是被提倡的。ISA 的 IRQ 是一個分配這類額外含義的典型例子。 4162306a36Sopenharmony_ci 42