OS4 DepotLogo by Alessandro Bacchia 
(anonymous IP:,914) 

   Bug tracker
   Locale browser

   o Audio (323)
   o Datatype (47)
   o Demo (177)
   o Development (510)
      o Cross (35)
      o Debug (8)
      o Edit (5)
      o Example (31)
      o Game (20)
      o Guitool (6)
      o Ide (7)
      o Install (0)
      o Language (39)
      o Library (250)
      o Misc (32)
      o Utility (77)
      o Webtool (0)
   o Document (21)
   o Driver (86)
   o Emulation (138)
   o Game (844)
   o Graphics (434)
   o Library (83)
   o Network (194)
   o Office (53)
   o Utility (771)
   o Video (58)

Total files: 3739

Full index file. Download
Recent index file. Download



Support the site

 Readme for:  Development » Example » ramdev.lha


Description: simple 4 unit ram device (example source)
Download: ramdev.lha       (TIPS: Use the right click menu if your browser takes you back here all the time)
Size: 23kb
Version: 51.1
Date: 20 Jun 06
Author: Olaf Barthel, Fredrik Wikstrom (OS4 port and modifications)
Submitter: Fredrik Wikstrom
Email: fredrik/a500 org
Homepage: http://a500.org
Category: development/example
License: Public domain
Distribute: yes
Min OS Version: 4.0
FileID: 1893
Comments: 1
Snapshots: 0
Downloads: 72  (Current version)
72  (Accumulated)
Votes: 0 (0/0)  (30 days/7 days)

Show comments Show snapshots Show content Show crashlogs Replace file 
* ramdev.c -- Skeleton device code.
* A sample 4 unit ramdisk that can be bound to an expansion slot device,
* or used without.  Works with the Fast File System.
* This code is required reading for device driver writers.  It contains
* information not found elsewhere.
* This example includes a task, though a task is not actually needed for
* a simple ram disk.  Unlike a single set of hardware registers that
* may need to be shared by multiple tasks, ram can be freely shared.
* This example does not show arbitration of hardware resources.

v51.1 changes (Fredrik Wikstrom):
 - is now an OS4 device
 - uses CreateTask()/DeleteTask() as opposed to setting up the Task structure
(stack, etc.) manually
 - supports the NSCMD_DEVICEQUERY command (reports itself as a trackdisk type

Hopefully this will make it easier for people to write device drivers for OS4...

Copyright (c) 2004-2016 by Björn Hagström All Rights Reserved
Amiga OS and its logos are registered trademarks of Hyperion Entertainment