Mail Archives: djgpp/2003/04/08/08:26:21
"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 -