From: George Sabolish Newsgroups: comp.os.msdos.djgpp Subject: PCI Device Driver Date: 9 Jun 1998 00:12:44 GMT Organization: Slip.Net (http://www.slip.net) Lines: 24 Message-ID: <6lhuls$bfn$1@owl.slip.net> NNTP-Posting-Host: slip-3.slip.net To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk I am currently trying to write a PCI card driver using DJGPP and the CSDPMI server. I have an existing driver which works under Windows 3.1/95 using a VxD. I want to replace the VxD with some inline ASM. The Windows driver makes use of SetSelectorBase, and SetSelectorLimit functions in the Windows API. I noticed that the DPMI functions are similar, but I cannot get the code to read from the PCI space. The Windows driver reads the PCI base address, then uses a Physical to Linear function to go from the physical address to a Selector. Again, the DPMI functions appear similar but do not seem to work. The only thing I can find which is different is that the Windows program uses the Selector as a far pointer, which DJGPP doesn't support. I tried the farpokeb() and farpeekb() functions, without any luck. Has anyone else written some PCI card drivers which they might place on the web? Or can you point me to some source on the Web? I haven't had much luck finding anything as of yet. Mike