From: Ryan Underwood <nemesis-lists@icequake.net>
To: linux-msdos@vger.kernel.org
Subject: Re: Can I use DOSEMU for testing device driver code?
Date: Thu, 12 Feb 2004 04:15:14 -0600 [thread overview]
Message-ID: <20040212101514.GB16092@dbz.icequake.net> (raw)
In-Reply-To: <HSYJVA$IE79m4LU5pjx851PfwD4kJvATm_z_kdUix49OIj@uol.com.br>
[-- Attachment #1: Type: text/plain, Size: 1720 bytes --]
On Thu, Feb 12, 2004 at 04:11:34AM -0200, synthespian wrote:
> Hello --
>
> I have a "special need" wrt DOSEMU: I
> have this excellent book on
> programming for hardware (device
> drivers), but it's written only for
> DOS/Win32. But it's a /very/ good
> book, full of C code.
> As I don't have a DOS/Windows
> platform and I would really like to
> use this book, I was wondering if
> DOSEMU could help me.
> I wonder if you implement device
> control in a standard DOS way, using
> wrappers that remain faithful to the
> DOS original. I imagine that, by
> studying your code, I could learn how
> to program the stuff I want, while at
> the same time beeing able to use the
> book /and/ learning about Linux.
Device drivers in DOSEMU that need to access hardware/host OS resources
are implemented in a static manner; i.e. the necessary ISR is already
installed at the time when you start dosemu. You can hook those ISR to
add your own functionality, but you will not be able to access the
hardware (port I/O or IRQ) of the host machine without specifically
allowing DOSEMU to do so (see $_ports and friends). Only the drivers
that are installed when DOSEMU is started are allowed to access host
hardware otherwise.
That said, what type of device are you programming? If it is controlled
just through some hardware registers and polling, $_ports should work
for you. If it needs an interrupt, you need to also pass its IRQ to
dosemu through the config file and make sure linux doesn't have
something already on that IRQ. This is for DOS drivers; I don't know
anything about how Windows drivers would interact with DOSEMU.
--
Ryan Underwood, <nemesis@icequake.net>
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
next prev parent reply other threads:[~2004-02-12 10:15 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-02-12 6:11 Can I use DOSEMU for testing device driver code? synthespian
2004-02-12 10:15 ` Ryan Underwood [this message]
2004-02-14 19:00 ` EL Henry
2004-02-15 4:53 ` Ryan Underwood
-- strict thread matches above, loose matches on Subject: below --
2004-02-12 21:53 easlab
2004-02-13 8:17 ` Edenyard
2004-02-13 12:01 ` Bart Oldeman
2004-02-14 12:52 ` Edenyard
2004-02-15 4:58 ` Ryan Underwood
2004-02-16 11:27 ` Edenyard
2004-02-17 7:52 ` Ryan Underwood
2004-02-17 9:36 ` Ged Haywood
2004-02-15 5:04 ` Ryan Underwood
2004-02-13 20:12 Stas Sergeev
2004-02-15 11:15 Stas Sergeev
[not found] <4034D439.5080308@edenyard.co.uk>
2004-02-19 18:36 ` Ged Haywood
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20040212101514.GB16092@dbz.icequake.net \
--to=nemesis-lists@icequake.net \
--cc=linux-msdos@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox