[prev in list] [next in list] [prev in thread] [next in thread] 

List:       linux-rt
Subject:    Re: [Rtl] Sharing PCI IRQ
From:       "Norm" <ndrez () att ! net>
Date:       2004-11-26 15:52:28
Message-ID: 027701c4d3cf$eecbef50$2f01a8c0 () never
[Download RAW message or body]

Why have I gotten three copies of this posting [so far]?

    Norm

----- Original Message ----- 
From: "Ding Guijin" <dingguijin@21cn.com>
To: <rtl@rtlinux.org>
Sent: Friday, November 26, 2004 4:01 AM
Subject: [Rtl] Sharing PCI IRQ


> 
> Hi,
> I try to share IRQ between RTLinux interrupt handler and linux
> device driver. But failed, who can explain it?
> 
> My env:
> Intel Celeron 2.4, DDR 512M, HD 40G
> linux 2.2.18, rtlinux-3.0
> Debian 3.0
> 
> My PCI device will generate a interrupt 11(Maybe BIOS assign).
> in my host the USB controller and RTL8139 controller sharing the
> interrupt 11.
> The following is my method and some pseudo code:
> 
> intr_handler()
> {
> if(is_my_device_irq()) {
> //do something
> rtl_enable_hard_irq();
> }
> rtl_pend_global_irq();
> }
> 
> module_init()
> {
> rtl_request_gloabl_irq(intr, intr_handler);
> rtl_hard_enable_irq(intr);
> }
> 
> module_cleanup()
> {
> //rtl_hard_disable_irq(intr);
> rtl_free_global_irq(intr);
> }
> 
> the problem:
> insmod rt module, the general linux intr can work
> rmmod rt module, the system will die
> but before rtl_free_global_irq(intr); insert
> rtl_disable_hard_irq(); the system is OK, but linux intr will be
> blocked, the Ethernet card can not work.
> 
> Ding Guijin
> Zinglabs Technologies
> Addr:23rd Floor, Building 2, 
> ShangDi International High Tech Park, No.2 Information Road, 
> ShangDi, HaiDian District Beijing, China 100085
> Tel: 8610-82893030 ext.515
> Fax: 8610-82893190
> http://www.zinglabs.com
> 
> 
> _______________________________________________
> Rtl mailing list
> Rtl@rtlinux.org
> http://www2.fsmlabs.com/mailman/listinfo/rtl
_______________________________________________
Rtl mailing list
Rtl@rtlinux.org
http://www2.fsmlabs.com/mailman/listinfo/rtl
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic