X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=Kernel%2Finclude%2Ftpl_drv_terminal.h;h=b32b83d5267849e6df5f04d7f0e20efbf5b782a5;hb=425494c449d668bf4728eef3a45f890432fd9999;hp=21ba2909d2aff054652934d53b0bc2ef457f937d;hpb=0dbc91f0676576b954aa95dafdb434ce19bc805c;p=tpg%2Facess2.git diff --git a/Kernel/include/tpl_drv_terminal.h b/Kernel/include/tpl_drv_terminal.h index 21ba2909..b32b83d5 100644 --- a/Kernel/include/tpl_drv_terminal.h +++ b/Kernel/include/tpl_drv_terminal.h @@ -65,7 +65,14 @@ enum eTplTerminal_IOCtl { * ioctl(...) * \brief Forces the current terminal to be shown */ - TERM_IOCTL_FORCESHOW + TERM_IOCTL_FORCESHOW, + + /** + * ioctl(...) + * \brief Returns the current text cursor position + * \return Cursor position (as X+Y*Width) + */ + TERM_IOCTL_GETCURSOR }; /** @@ -103,6 +110,11 @@ enum eTplTerminal_Modes { */ TERM_MODE_FB, + /** + * \brief 32bpp 2D Accellerated mode + * Writes to the terminal file will be read as a command stream + * defined in ::eTplTerminal_2D_Commands + */ TERM_MODE_2DACCEL, /** @@ -119,17 +131,27 @@ enum eTplTerminal_Modes { NUM_TERM_MODES }; +/** + * \brief 2D Command IDs + * \todo Complete this structure + * + * Command IDs for when the terminal type is eTplTerminal_Modes.TERM_MODE_2DACCEL + */ enum eTplTerminal_2D_Commands { + /** + * \brief No Operation - Used for padding + */ TERM_2DCMD_NOP, /** * (Uint16 X, Y, W, H, Uint32 Data[]) + * \brief Blits a bitmap to the display * \param X,Y Coordinates of Top-Left corner * \param W,H Dimensions * \param Data 32-bpp pixel data */ - TERM_2DCMD_PUSH, + TERM_2DCMD_PUSH }; #endif