17 November 2023, 15:37 | #1 |
Registered User
Join Date: Aug 2010
Location: Germany
Posts: 548
|
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. |
17 November 2023, 20:53 | #2 |
Zone Friend
Join Date: May 2006
Location: France
Posts: 1,895
|
Kudos
|
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 |
|
|