delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2003/04/08/08:26:21

Message-ID: <054d01c2fdc9$ffa76710$0600000a@broadpark.no>
From: "Gisle Vanem" <giva AT bgnett DOT no>
To: <djgpp AT delorie DOT com>
References: <Pine DOT HPX DOT 4 DOT 21 DOT 0304081332480 DOT 11022-100000 AT fajnm1 DOT am DOT ub DOT es>
Subject: Re: porting PCI card driver from NT to DOS
Date: Tue, 8 Apr 2003 14:25:50 +0200
MIME-Version: 1.0
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" <ofors AT am DOT ub DOT es> 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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019