X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=Kernel%2Finclude%2Ftpl_drv_terminal.h;h=ee50392b79620e14d027603407abe6e6bc4421d7;hb=827e4de5670d327f0379a80fdf2348c1e38f5434;hp=fa90c865b676794e9fbaa3cf98b90b49792b45a3;hpb=1e7db40300bc594cf708bb6082a6e05a268da946;p=tpg%2Facess2.git diff --git a/Kernel/include/tpl_drv_terminal.h b/Kernel/include/tpl_drv_terminal.h index fa90c865..ee50392b 100644 --- a/Kernel/include/tpl_drv_terminal.h +++ b/Kernel/include/tpl_drv_terminal.h @@ -59,7 +59,13 @@ enum eTplTerminal_IOCtl { * \note The id field of \a info is not for use with ::TERM_IOCTL_MODETYPE * This field is just for indexing the mode to get its information. */ - TERM_IOCTL_QUERYMODE + TERM_IOCTL_QUERYMODE, + + /** + * ioctl(...) + * \brief Forces the current terminal to be shown + */ + TERM_IOCTL_FORCESHOW }; /** @@ -97,13 +103,20 @@ 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, + /** * \brief OpenGL 2D/3D * Writes to the terminal file will send 3D commands * Reads will return UTF-32 characters * \note May or may not stay in the spec */ - TERM_MODE_OPENGL, + TERM_MODE_3D, /** * \brief Number of terminal modes @@ -111,5 +124,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 +}; #endif