Back to home page

DOS ain't dead

Forum index page

Log in | Register

Back to the forum
Board view  Mix view

Rayer's NVclock (Developers)

posted by RayeR Homepage, CZ, 05.08.2009, 16:39

> For accessing the MMIO registers you use function
> _DJGPP_Map_physical_memory which isn't supported by Windows 9x.
> But what about accessing the MMIO space from DS register like normal DJGPP
> memory? You can just increase the limit for DS and it should work.
> In Freepascal I wrote the code bellow which could do the job. I tested it
> on LFB region and it works so it should work for other places too include
> the MMIO space.

Could you test it? I used this function as it seems to me closer to original mmap. Otherwise I could use movedata but it will require more changes.

> And why you use for accesing the PCI bus the direct access and not INT 1A
> BIOS calls? Does it have any advantage over it? I am asking because most
> of code I have ever seen use direct method and not INT 1A.

I rather don't rely on PCI BIOS, maybe some bugs there on some PC. I always used direct PCI access (IO port address is fixed so I don't see any problem) without problem.

---
DOS gives me freedom to unlimited HW access.

 

Complete thread:

Back to the forum
Board view  Mix view
22049 Postings in 2034 Threads, 396 registered users, 258 users online (0 registered, 258 guests)
DOS ain't dead | Admin contact
RSS Feed
powered by my little forum