Back to home page

DOS ain't dead

Forum index page

Log in | Register

Back to the forum
Board view  Mix view

Memory mapped devices from resl mode (Developers)

posted by Khusraw E-mail, Bucharest, Romania, 04.03.2020, 15:36
(edited by Khusraw on 04.03.2020, 16:02)

To be more specific, in case of a HDA sound card, the only sound cards I have experience with that use MMIO, you have to find the device and get its memory base address by using INT 1Ah to call the PCI BIOS (see http://www.ctyme.com/intr/int-1A.htm), and then read and write the memory registers according to what you want to do, nothing more. For reading from/writing to the card's memory register to/from a memory address directly accesible to your program, you only need to set the correct values in the GDT that you pass to INT 15h/87h (see http://www.ctyme.com/intr/rb-1527.htm).

---
Glory to God for all things

 

Complete thread:

Back to the forum
Board view  Mix view
22752 Postings in 2119 Threads, 402 registered users (0 online)
DOS ain't dead | Admin contact
RSS Feed
powered by my little forum