h6. [[Hardware Abstraction Layer]] h6(. [[HAL entry points from RISC OS]] h6((. » HAL_ControllerAddress h2. HAL_ControllerAddress h5. (HAL entry #60) <pre> void *HAL_ControllerAddress(unsigned ignored,unsigned controller) </pre> |_<. Entry | | | ignored |This parameter is ignored | | controller |See [[OS_Memory 9 Controller Numbers]] | |_<. Exit | | |/2^. - |On success, returns the logical address of the chosen controller. | |On failure, returns -1 (controller number not recognised) or zero (controller not present) | h4. Use Asks the HAL where various controllers might or might not be. Podule manager uses this information to determine at run time whether or not to bother doing anything. The ADFS, SerialDeviceDriver & ParallelDeviceDriver modules use it to get the 82C710 address for providing floppy/serial/parallel support. This HAL call is used in the implementation of SWI [[OS_Memory 9]]. User software should always prefer to use that SWI call instead of calling the HAL directly. OS_Memory 9 will convert a return value of -1 to an error, while a value of 0 will be returned directly. h6. Information source: Kernel.Docs.HAL.HAL_API, HAL.Tungsten.s.Boot, HAL.IOMD.s.Boot in CVS