OS4 DepotLogo by Marko 
(anonymous IP: 3.147.78.242,2258) 
 HomeRecentStatsSearchSubmitUploadsMirrorsContactInfoDisclaimerConfigAdmin
 Menu

 Features
   Crashlogs
   Bug tracker
   Locale browser
 

 Categories

   o Audio (343)
   o Datatype (51)
   o Demo (203)
   o Development (602)
   o Document (24)
   o Driver (97)
   o Emulation (149)
   o Game (1011)
   o Graphics (500)
   o Library (118)
   o Network (234)
   o Office (66)
   o Utility (932)
   o Video (69)

Total files: 4399

Full index file
Recent index file

 Links

  Amigans.net
  OpenAmiga
  Aminet
  IntuitionBase


Support the site


 Readme for:  Development » Example » ramdev.lha

Ramdev

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 2006
Author: Olaf Barthel, Fredrik Wikström (OS4 port and modifications)
Submitter: Fredrik Wikström
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
Videos: 0
Downloads: 309  (Current version)
310  (Accumulated)
Votes: 0 (0/0)  (30 days/7 days)

Show comments Show snapshots Show videos 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
device)

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




Copyright © 2004-2024 by Björn Hagström All Rights Reserved