James Sutherland writes:
> On Tue, 14 Mar 2000, Uwe Bonnes wrote:
>
> Could you be more specific about what sort of device this is - SCSI card?
> Data acquisition card? Coffee machine? (And if the latter, where can I get
> one? :)
>
No, no /dev/coffeemachine, but some custom made 16-bit IO Card on the
ISA Slot. It's used to read in data from other custom made A/D devices
or other spectrum analyzers in Nuclear Instrumentation. But if you
supply some interface to your coffemachine, you could certainly handle
it :-)
But its's not fixed to that 16 bit card, I can imagine to use e.g. the
parallel port to read devices directly or via a connected
microprocessor. That way people using that stuff wouldn't need to open
their computer and plug in a card.
>
> Depending on the API you need to provide, I would lean towards first
> writing a Linux device driver (communicating via /dev/coffeemachine or
> whatever), then implementing an int 7b handler in Wine which talks to
> /dev/coffeemachine.
>
Writing that device driver isn't the main problem. I think I can
manage writing that driver, but in a first step direct would be direct
port access. Remember that the main usage here is with Dos/Win
machines. I even know what I need to add an INT_Int7bHandler to the
Wine tree. I even dare to run wine with root access to allow direct
port access.
But my original question was about a transparent way to add a custom
interrupt handler perhaps with some entry in wine.conf like
[INTERRUPTS]
Int7b=/home/bon/int7b_handle.so
and Wine loading that dll on startup and or on first entry to
BUILTIN_DefaultIntHandler and then doing the stuff in announced dll
instead of barfing.
But there are design issues:
- Will such a facility be accepted?
- When to look for additional handlers? On Wine load or on first call
to BUILTIN_DefaultIntHandler.
- Where to look? wine.conf or the registry?
- How to write the dll. Probably like some other dll in the ../dlls directory.
But perhaps I will try to implement something like this in the next
days I nobody objects or tells me of another way to perhaps to so yet.
Bye
Uwe Bonnes [EMAIL PROTECTED]
Institut fuer Kernphysik Schlossgartenstrasse 9 64289 Darmstadt
--------- Tel. 06151 162516 -------- Fax. 06151 164321 ----------