🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.amiga.tech
Article #11993

ramdev.device

#11993
From: Usenet file owner
Date: Tue, 28 Mar 1989 19:23
28 lines
1405 bytes
I have been trying to get a simple device driver working.
I have the new Includes & Autodocs RKM and the old 1.1 RKMs

I tried typing in the device example in appendix K of the old RKM's.
It crashed when I did an OpenDevice("mydev.device".....)

I went through the ramdev.device and updated the code to the old example
where there were differences.

It does not crash anymore, but OpenDevice returns -1
Since I don't have a handy terminal to attach to my serial port,
I put the blink-power-led in the InitRoutine: as the first thing to do.

The Open device call makes it access the disk (df0:DEVS I assume)
I am sure mydev.device is in DEVS:
The filename matches the name MYDEVNAME
It never gets that far as blinking.

Any of you device gurus have some suggestions?

What exactly does the InitRoutine have to do?

Thanks in advance for any help.
In Real Life: Joe Porkka
porkka@frith.egr.msu
jap@syssun.cl.msu.edu  (35.8.1.1)
 
 Life is just a game, so relax and be happy.
Technical Details
Message-ID: <2301@cps3xx.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!eecae!cps3xx!usenet

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!eecae!cps3xx!usenet
From: usenet@cps3xx.UUCP (Usenet file owner)
Newsgroups: comp.sys.amiga.tech
Subject: ramdev.device
Keywords: help!
Message-ID: <2301@cps3xx.UUCP>
Date: 28 Mar 89 19:23:56 GMT
Reply-To: porkka@frith.UUCP (Joe A Porkka)
Followup-To: comp.sys.amiga.tech
Distribution: usa
Organization: Michigan State University
Lines: 28