(C) 1998 AROS - The Amiga Research OS
1. If DOS is running, add the device to DOS's list of devices immediately. 2. Otherwise, save the information for later use by DOS, possibly as a boot device.
This allows device drivers to add devices into the systems disk device list at any time, without having to worry about whether DOS is available.
If a device is added before DOS is running, then it is possible for the device to be used as a boot device. This allows for the user to choose which device he/she wishes to boot from, and even which OS they may wish to boot from.
The bootstrap will attempt to boot from the highest priority device on the Expansion eb_BootNode list, and if that fails continue through the list until it can succeed.
Floppy disk devices should always be given the highest priority, to allow a user to prevent a hard disk or network boot by inserting a floppy disk.
AddBootNode() will also perform a second bit of magic, that if there is no filesystem specified for this device, (ie dn_SegList, dn_Task and dn_Handler are all NULL), then the standard DOS filesystem will be used for this device.
+5 - unit 0 on the floppy disk. The floppy should be the highest priority. 0 - standard hard disk priority -5 - recommended for a network disk -128 - don't bother trying
ADNF_STARTPROC (bit 0)- if set this will cause AddBootNode() to start a filesystem handler for the device node from the information contained in the deviceNode packet. This bit is only useful when there is no running handler for this task (ie dn_Task is NULL).