Re: Re: [PATCH 3/9] docs/zh_CN: core-api: Update the translation of irq/irq-domain.rst to 5.19-rc2

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 





> -----原始邮件-----
&gt; 发件人: "YanTeng Si" <siyanteng@xxxxxxxxxxx>
&gt; 发送时间: 2022-06-16 10:18:54 (星期四)
&gt; 收件人: "Binbin Zhou" <zhoubinbin@xxxxxxxxxxx>, alexs@xxxxxxxxxx
&gt; 抄送: corbet@xxxxxxx, chenhuacai@xxxxxxxxxxx, bobwxc@xxxxxxxx, linux-doc@xxxxxxxxxxxxxxx
&gt; 主题: Re: [PATCH 3/9] docs/zh_CN: core-api: Update the translation of irq/irq-domain.rst to 5.19-rc2
&gt; 
&gt; 
&gt; 在 2022/6/15 17:24, Binbin Zhou 写道:
&gt; &gt; Synchronous translation from the following commits(Latest in front):
&gt; &gt;
&gt; &gt; [1]: commit 0953fb263714("irq: remove handle_domain_{irq,nmi}()")
&gt; &gt;
&gt; &gt; [2]: commit 0ddc5e55e6f1("Documentation: Fix irq-domain.rst build warning")
&gt; &gt;
&gt; &gt; [3]: commit 991007ba6cca("Documentation: Update
&gt; &gt;       irq_domain.rst with new lookup APIs")
&gt; &gt;
&gt; &gt; [4]: commit 405e94e9aed2("irqdomain: Kill irq_domain_add_legacy_isa")
&gt; &gt;
&gt; &gt; Signed-off-by: Binbin Zhou <zhoubinbin@xxxxxxxxxxx>
&gt; &gt; ---
&gt; &gt;   .../zh_CN/core-api/irq/irq-domain.rst         | 22 +++++++++++++++----
&gt; &gt;   1 file changed, 18 insertions(+), 4 deletions(-)
&gt; &gt;
&gt; &gt; diff --git a/Documentation/translations/zh_CN/core-api/irq/irq-domain.rst b/Documentation/translations/zh_CN/core-api/irq/irq-domain.rst
&gt; &gt; index 7d077742f758..863e4488c36b 100644
&gt; &gt; --- a/Documentation/translations/zh_CN/core-api/irq/irq-domain.rst
&gt; &gt; +++ b/Documentation/translations/zh_CN/core-api/irq/irq-domain.rst
&gt; &gt; @@ -5,6 +5,7 @@
&gt; &gt;   :翻译:
&gt; &gt;   
&gt; &gt;    司延腾 Yanteng Si <siyanteng@xxxxxxxxxxx>
&gt; &gt; + 周彬彬 Binbin Zhou <zhoubinbin@xxxxxxxxxxx>
&gt; &gt;   
&gt; &gt;   .. _cn_irq-domain.rst:
&gt; &gt;   
&gt; &gt; @@ -52,8 +53,18 @@ irq_domain和一个hwirq号作为参数。 如果hwirq的映射还不存在,
&gt; &gt;   一个新的Linux irq_desc,将其与hwirq关联起来,并调用.map()回调,这样驱动
&gt; &gt;   程序就可以执行任何必要的硬件设置。
&gt; &gt;   
&gt; &gt; -当接收到一个中断时,应该使用irq_find_mapping()函数从hwirq号中找到
&gt; &gt; -Linux IRQ号。
&gt; &gt; +一旦建立了映射,可以通过多种方法检索或使用它:
&gt; &gt; +
&gt; &gt; +- irq_resolve_mapping()返回一个指向给定域和hwirq的irq_desc结构指针,
&gt; &gt; +  如果没有映射则返回NULL。
&gt; &gt; +
&gt; &gt; +- irq_find_mapping()返回给定域和hwirq的Linux IRQ号,如果没有映射则返回0。
&gt; &gt; +
&gt; &gt; +- irq_linear_revmap()现与irq_find_mapping()相同,已被废弃。
&gt; &gt; +
&gt; &gt; +- generic_handle_domain_irq()处理一个由域和hwirq描述的中断。
&gt; 
&gt; hwirq号描述的中断。

OK,I see.

Thanks,
Binbin
&gt; 
&gt; 
&gt; Thanks,
&gt; 
&gt; Yanteng
&gt; 
&gt; &gt; +
&gt; &gt; +请注意,irq域的查找必须发生在与RCU读临界区兼容的上下文中。
&gt; &gt;   
&gt; &gt;   在调用irq_find_mapping()之前,至少要调用一次irq_create_mapping()函数,
&gt; &gt;   以免描述符不能被分配。
&gt; &gt; @@ -119,7 +130,8 @@ irq_domain_add_tree()和irq_domain_create_tree()在功能上是等价的,除
&gt; &gt;   Linux IRQ号编入硬件本身,这样就不需要映射了。 调用irq_create_direct_mapping()
&gt; &gt;   会分配一个Linux IRQ号,并调用.map()回调,这样驱动就可以将Linux IRQ号编入硬件中。
&gt; &gt;   
&gt; &gt; -大多数驱动程序不能使用这个映射。
&gt; &gt; +大多数驱动程序无法使用此映射,现在它由CONFIG_IRQ_DOMAIN_NOMAP选项控制。
&gt; &gt; +请不要引入此API的新用户。
&gt; &gt;   
&gt; &gt;   传统映射类型
&gt; &gt;   ------------
&gt; &gt; @@ -128,7 +140,6 @@ Linux IRQ号编入硬件本身,这样就不需要映射了。 调用irq_create
&gt; &gt;   
&gt; &gt;   	irq_domain_add_simple()
&gt; &gt;   	irq_domain_add_legacy()
&gt; &gt; -	irq_domain_add_legacy_isa()
&gt; &gt;   	irq_domain_create_simple()
&gt; &gt;   	irq_domain_create_legacy()
&gt; &gt;   
&gt; &gt; @@ -137,6 +148,9 @@ Linux IRQ号编入硬件本身,这样就不需要映射了。 调用irq_create
&gt; &gt;   一组用于IRQ号的定义(#define),这些定义被传递给struct设备注册。 在这种情况下,
&gt; &gt;   不能动态分配Linux IRQ号,应该使用传统映射。
&gt; &gt;   
&gt; &gt; +顾名思义,\*_legacy()系列函数已被废弃,只是为了方便对古老平台的支持而存在。
&gt; &gt; +不应该增加新的用户。当\*_simple()系列函数的使用导致遗留行为时,他们也是如此。
&gt; &gt; +
&gt; &gt;   传统映射假设已经为控制器分配了一个连续的IRQ号范围,并且可以通过向hwirq号添加一
&gt; &gt;   个固定的偏移来计算IRQ号,反之亦然。 缺点是需要中断控制器管理IRQ分配,并且需要为每
&gt; &gt;   个hwirq分配一个irq_desc,即使它没有被使用。
</zhoubinbin@xxxxxxxxxxx></siyanteng@xxxxxxxxxxx></zhoubinbin@xxxxxxxxxxx></zhoubinbin@xxxxxxxxxxx></siyanteng@xxxxxxxxxxx>

本邮件及其附件含有龙芯中科的商业秘密信息,仅限于发送给上面地址中列出的个人或群组。禁止任何其他人以任何形式使用(包括但不限于全部或部分地泄露、复制或散发)本邮件及其附件中的信息。如果您错收本邮件,请您立即电话或邮件通知发件人并删除本邮件。 
This email and its attachments contain confidential information from Loongson Technology , which is intended only for the person or entity whose address is listed above. Any use of the information contained herein in any way (including, but not limited to, total or partial disclosure, reproduction or dissemination) by persons other than the intended recipient(s) is prohibited. If you receive this email in error, please notify the sender by phone or email immediately and delete it. 




[Index of Archives]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Linux FS]     [Yosemite Forum]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]     [Linux Resources]

  Powered by Linux