h6. [[OS SWI Calls]] h6(. » [[OS_ScreenMode]] h6((. » OS_ScreenMode 64 h2. OS_ScreenMode 64 h5. (SWI &65) |_<^{width:4em}. Entry | | |<^. R0 |<^. 64 | |<^. R1 |<^. Flags (reserved, should be zero) | |<^. R2 |<^. Pointer to GraphicsV Device driver name | |_<^{width:4em}. Exit | | |<^. R0 |<^. Allocated driver number | |\2<^. All other registers preserved | h4. Use The purpose of this call is to register a new [[GraphicsV]] Device driver with the system. This call should be made before the driver installs itself on the GraphicsV vector, so that the driver knows which driver ID to respond to. Once the driver has installed itself on GraphicsV and completed its hardware initialisation, it should call [[OS_ScreenMode 65]] to indicate that it is ready for use. h4. Notes The driver name pointed to be R2 must be null-terminated and must remain valid for the lifetime of the driver (i.e. until [[OS_ScreenMode 67]] is called). The name is intended to be used by the OS and applications as a unique identifier for the device; the following conventions should be used: * The name must not contain spaces or other non-printable characters. This makes it easy to use the driver name on the command line, in system variables, configuration files, etc. * In most cases the driver module name is an acceptable driver identifier. * If the same driver is able to support multiple devices, use a name of the format '<driver>#<id>' where <driver> is the driver name and <id> is a unique identifier for the device instance * Where possible the device id suffix must uniquely identify the same device on the same system across system reboots. ** For podules, the podule number should be sufficient ** For PCI devices, the PCI device handle should be sufficient ** For USB devices, using the usb device number is not recommended as USB devices may be connected/disconnected frequently or the number may be unstable across reboots due to device enumeration order. Instead some combination of the vendor & product ID or device name are recommended. h4. See also * [[OS_ScreenMode]] * [[OS_ScreenMode 65]] * [[OS_ScreenMode 67]] * [[GraphicsV]] h5. Other languages documentation [[OS_ScreenMode 64 (français)|Français]]