Writing Drivers for Cosmos

Developer
Feb 26, 2012 at 4:02 AM

How do I write a driver for Cosmos. I've tried, but failed miserably. I am going to try and write a driver and see if it works. Can anyone help? The hardware I'm trying to write a driver for is the Sound Blaster 16.

Feb 26, 2012 at 7:47 AM

Step 1: find docs. 

Step 2: write code 

Step 3: test

Developer
Feb 26, 2012 at 2:47 PM

Some Sound Blaster would be cool.

You would not be able to do this in the user-kit as you would need to access to hardware. Use the dev-kit. 

Here a website that may help. http://homepages.cae.wisc.edu/~brodskye/sb16doc/sb16doc.html 

Hope this help http://wiki.osdev.org/Sound_Blaster_16

If you do get it work it be cool to get up load into code base. 

From 

Craig Adams

Developer
Feb 26, 2012 at 2:49 PM

Also, I'm not sure if it's possible to write a driver for Sound Blaster without a working PIT, so you may want to start there.

Developer
Feb 26, 2012 at 4:34 PM

Okay yes, but how is it possible for you to write to IO ports? I see the IOPort Classes, but nothing works when I try using them.

Feb 27, 2012 at 5:36 AM
scifiboi wrote:

Okay yes, but how is it possible for you to write to IO ports? I see the IOPort Classes, but nothing works when I try using them.

Of course you can write to the IOPorts, maybe VMWare doesn't use a SoundBlaster16, when I went to write one, it seemed as if it didn't =). Hope it helps - Matt

Coordinator
Feb 27, 2012 at 1:56 PM
On 2/26/2012 12:02 AM, scifiboi wrote:
> How do I write a driver for Cosmos. I've tried, but failed miserably. I
> am going to try and write a driver and see if it works. Can anyone help?
> The hardware I'm trying to write a driver for is the Sound Blaster 16.

The driver model isnt complete, so for now its generally just writing
code and linking to it.
Developer
Feb 29, 2012 at 2:28 AM

If that's the case, then how is there a driver for VMWare screen?

Coordinator
Feb 29, 2012 at 8:26 AM
THat's for the debugger part

On Wed, Feb 29, 2012 at 3:28 AM, scifiboi <notifications@codeplex.com> wrote:

From: scifiboi

If that's the case, then how is there a driver for VMWare screen?

Read the full discussion online.

To add a post to this discussion, reply to this email (Cosmos@discussions.codeplex.com)

To start a new discussion for this project, email Cosmos@discussions.codeplex.com

You are receiving this email because you subscribed to this discussion on CodePlex. You can unsubscribe or change your settings on codePlex.com.

Please note: Images and attachments will be removed from emails. Any posts to this discussion will also be available online at codeplex.com


Developer
Feb 29, 2012 at 10:23 PM

Ahh. Okay, thanks.

Coordinator
Mar 5, 2012 at 10:48 PM
On 2/28/2012 10:28 PM, scifiboi wrote:
> If that's the case, then how is there a driver for VMWare screen?

A "driver" currently is just code you link in...
Developer
Mar 6, 2012 at 12:43 AM

Okay, but how did you get stuff going like the RTC? I mean, you must have read from an IO port obviously, but I don't understand how you read from it.

Mar 6, 2012 at 1:02 AM
scifiboi wrote:

Okay, but how did you get stuff going like the RTC? I mean, you must have read from an IO port obviously, but I don't understand how you read from it.

There's a read function. =). Thanks - Matt

Developer
Mar 6, 2012 at 9:29 PM

Yes, but every time I try acessing it, it says I can't access it due to it's protection level.

Mar 6, 2012 at 9:41 PM
scifiboi wrote:

Yes, but every time I try acessing it, it says I can't access it due to it's protection level.

Because you need to do

Imports Cosmos.Core;

Public IOPort port1 = new IOPort(Port Number Here)

Then you can call port1.read, ect. 

Hope it helps - Matt

Developer
Mar 6, 2012 at 10:07 PM
Edited Mar 6, 2012 at 10:11 PM

still says it's inaccessible due to it's protection level.

Edit: Btw, can you get on Skype, Civilwarrock.