I'm wondering how to determine the correct IORequest size for a particular device driver? For eaxmple if one was opening a device that could be SCSI, IDE or USB how do you find out the correct IO block size? Is there a generic size? I've seen IOExtTD used but does this cover all bases?
On a related note I wonder how the filesystem figures this out? Since it is given device and unit only AFAIK. I see no mention of IO block size. Since it can differ between devices I wonder what a safe size would be. :-)
Hi All, it's been quite a while, and I need reminded on how to get access to a PCI card hardware for trying to write a driver.
I'm working on getting my XE up and running again after a handful of years in storage, and do not yet have my OS all up to date and the SDK installed. I think I may have botched the 4.1u2 stage and want to go back and redo the OS instal to make sure it's good before I go very far with anything else.
But I would like to know where to look for this kind of info once that's ready and running.
Does anyone have any example of using the console.device under Os4. With the library interface style. I have found some examples on the internet but they are ancient and in old style. I only need a quick and easy example, that opens the console, writes some text to it, receives some text from it, and closes it would be great.
Running in to a bit of trouble with the timer.device. I'm been able to build one of the examples on the AmigaOS dev wiki which runs with out issue. I'm trying to use the time is such a way that I can jump around my code while maintaining the timer state. Here's my code:
I really like the Arduino Microcontroller and own an Arduino UNO Board.
As a first little project I read temperature values with TMP36 sensors.
The Arduino sends these values over serial USB connection to PC.
Under Linux this is rellay easy cause there's a driver to emulate USB as a normal serial
port device.
I really like to write a GUI on my SAM440 so that I can display the values an AMIGA too :-)
Hello,
Can someone has a fast way to port old devices source code to os4?
Is the same of the libraries?
Also a small example would be useful..
thank you
Posted this on amigans and hyperion forum without much response, so I guess I will try here also...
I am trying to fix the network driver for Napalm. Problem is, that it locks up randomly sometimes, but always on the call to OpenDevice.
I have described the issue here:
http://www.amigans.net/modules/xforum/viewtopic.php?topic_id=5021&forum=25
Strange thing is, that it does not happen, when I run that exact same code in a small example app. Also of course there is no way to tell, it this is a 68k vs ppc issue or what.
I did some little DOS script utilities lately and try to make a key state utility.
Its quite easy to ask at least for the CapsLock state using keyboard.device, but this works for PS/2 keyboards only.
Is there any way to do the same for USB keyboards? Documentation is scarce on this and it seems that hid.fdclass feeds input.device directly, without replacing keyboard.device by a compatible device layer.