Message-ID: <054d01c2fdc9$ffa76710$0600000a@broadpark.no> From: "Gisle Vanem" To: References: Subject: Re: porting PCI card driver from NT to DOS Date: Tue, 8 Apr 2003 14:25:50 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1123 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1123 Reply-To: djgpp AT delorie DOT com "Octavi Fors" said: > I understand porting to DOS would be complex, but do you it would > be possible, in theory. Yes, of course. > In particular, is djgpp able to handle PCI bus 32-bits I/O interrupts? > Which djgpp command could handle this? AFAIK, interrupts coming from a PCI device is handled in the same way as coming from a ISA device. So you can use the "normal" interrupt hooking (_go32_dpmi_set_protected_mode_interrupt_vector() or _go32_dpmi_allocate_real_mode_callback_iret). You biggest problem would be to query the PCI-BIOS where the IRQ and I/O ports are assigned. Look at my libpcap port for an PCI / BIOS32 example. http://www.bgnett.no/~giva/pcap/libpcap.zip --gv