flat assembler
Message board for the users of flat assembler.
Index
> MenuetOS > SoundBlaster |
Author |
|
DC740 16 May 2005, 21:04
i have an ESSOLO sound card and windows autodetects the irq, dma and the port each time it boots, and i don't have any problem, so i think that we can make the autodetect every time we boot Mos without any problem
good luck and happy coding |
|||
16 May 2005, 21:04 |
|
THEWizardGenius 17 May 2005, 14:19
Well the problem is that some people might have a NIC or some other card at, for example, port 0x210. Now that is one of the possible ports for SoundBlaster, so in the process of scanning for SoundBlaster we have to check this port. We don't realize the NIC is there of course. So we send a reset command to the port, which is really an NIC. The NIC may get the wrong "idea" and refuse to work afterwards, or it may return a message that gives MenuetOS the wrong idea. This isn't necessarily so, but it is possible. Therefore, it's best to do it once so that we only mess up the NIC or other thing once- then the user can reboot and use the SoundBlaster and everything else properly.
|
|||
17 May 2005, 14:19 |
|
f0dder 17 May 2005, 15:30
<3 PCI PnP <3
|
|||
17 May 2005, 15:30 |
|
Endre 18 May 2005, 06:57
THEWizardGenius wrote: You should have an autodetection routine for SoundBlaster. I personally have a computer that came with the SoundCard, and I have no way of knowing the DMA, IRQ, or Port for it. There are plenty of detection routines online (check out SWAG- the pascal code they have is easy to convert to assembly). However, it should only do this the very first time you use MenuetOS, and save the result in a file. That way, any other things at the other Port locations do not get "messed up". IRQ and I/O port can easily be determined by reading PCI config space (of course in case of a PCI card). Little problem that the kernel might relocate this IRQ but it's no matter since it's known anyway. DMA is another story since it is a restricted resource which should be managed centrally. That means that the driver has to allocate and free this resource dynamically. MenuetOS lacks DMA resource manager yet. |
|||
18 May 2005, 06:57 |
|
Dex4u 18 May 2005, 16:26
One thing that people get confused with, is a soundblaster compatable sound card, These are as good as useless for OS's like MenuetOS, as most are not set to SB compatable at bootup and need setting and the way they are set up for SB compatible is differant on differant sound cards .
|
|||
18 May 2005, 16:26 |
|
THEWizardGenius 19 May 2005, 15:37
Who needs all that? Personally, I don't use PCI (can't find any docs!!!).
You can easily poll for the port, IRQ, and DMA, so why not? _________________ FASM Rules! OS Dev is fun! Pepsi tastes nasty! Some ants toot! It's over! |
|||
19 May 2005, 15:37 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.