English Amiga Board


Go Back   English Amiga Board > Coders > Coders. System

 
 
Thread Tools
Old 17 November 2023, 15:37   #1
Olaf Barthel
Registered User
 
Join Date: Aug 2010
Location: Germany
Posts: 532
Full source code for AmigaOS 3.2 trackfile.device and DAControl is available

Hello everyone - in case you missed it (you might be in the majority), there's a fully documented and working example of how you may write an Amiga disk device driver in the NDK 3.2. We use it in AmigaOS 3.2 and beyond to install the operating system, which ships as a set of ADF image files. It's trackfile.device and its DAControl buddy which make this possible.

You can find the source code here: https://github.com/obarthel/trackfile-device

It's covered by a three-clause BSD license, which means that you can borrow bits, pieces or everything you find there and make it your own.

The trackfile.device code is also an example of how to implement a disk device driver with more than one unit, which closely emulates the behaviour of the original trackdisk.device in the Kickstart ROM, right down to the undocumented (accidentally or what the &#@% why) behaviour and quirks (yeah, this is how the TD_ADDCHANGEINT and TD_REMCHANGEINT commands are really supposed to work: you better believe it and weep). Guess what, scsi.device is a trackdisk.device variation which so happens also supports an extra command called HD_SCSICMD. If you understand how trackfile.device implements the trackdisk.device functionality, you can understand how a scsi.device may be implemented.

Please let me know what you think about it. The code is complex and bound to have more than a few quirks of its own. But it might actually be useful either way

Last edited by Olaf Barthel; 17 November 2023 at 15:45.
Olaf Barthel is offline  
Old 17 November 2023, 20:53   #2
kamelito
Zone Friend
 
kamelito's Avatar
 
Join Date: May 2006
Location: France
Posts: 1,803
Kudos
kamelito is offline  
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Similar Threads
Thread Thread Starter Forum Replies Last Post
OS 3.2+ Request: additional format support for trackfile.device coldacid support.AmigaOS 2 27 December 2021 09:07
Trap Runner full source code phx Coders. Releases 14 12 April 2021 13:47
Celtic Heart full source code phx Coders. Releases 16 29 March 2019 16:29
AmigaOS 3.1 source code leak - official statement Cyborg News 71 09 January 2016 09:08
Love Dungeon Full Source Code jimmy2x2x Coders. Asm / Hardware 5 17 March 2015 22:44

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 15:18.

Top

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Page generated in 0.08164 seconds with 14 queries