3 * - Common Driver Interface
6 * \file tpl_drv_common.h
7 * \brief Common Driver Interface Definitions
14 * \brief Common IOCtl Calls
17 /// \brief Driver Type - Return an ::eTplDrv_Type value
19 /// \brief Get driver identifier - (char *dest[4])
21 /// \brief Get driver version - (int *ver)
23 /// \brief Get a IOCtl from a symbolic name
29 * \brief Driver Types returned by DRV_IOCTL_TYPE
32 DRV_TYPE_NULL, //!< NULL Type - Custom Interface
33 DRV_TYPE_MISC, //!< Miscelanious Compilant - Supports the core calls
34 DRV_TYPE_TERMINAL, //!< Terminal
35 DRV_TYPE_VIDEO, //!< Video - LFB
36 DRV_TYPE_SOUND, //!< Audio
37 DRV_TYPE_DISK, //!< Disk
38 DRV_TYPE_KEYBOARD, //!< Keyboard
39 DRV_TYPE_MOUSE, //!< Mouse
40 DRV_TYPE_JOYSTICK, //!< Joystick / Gamepad
41 DRV_TYPE_NETWORK //!< Network Device
46 * \fn int GetIOCtlId(int Class, char *Name)
47 * \brief Transforms a symbolic name into an ID
48 * \param Class ::eTplDrv_Type type to use
49 * \param Name Symbolic name to resolve
51 * This function is designed to be used by device drivers to implement
52 * ::eTplDrv_IOCtl.DRV_IOCTL_LOOKUP easily given that they conform to
53 * the standard interfaces (::eTplDrv_Type except DRV_TYPE_MISC) and do
54 * not add their own call numbers.
56 extern int GetIOCtlId(int Class, char *Name);