* ioctl(..., tJoystickNumValue *)\r
* \brief Set axis flags\r
* \note If \a Value is equal to -1 (all bits set), the value is not changed\r
+ * \todo Define flag values\r
*/\r
JOY_IOCTL_GETSETAXISFLAGS,\r
\r
* ioctl(..., tJoystickNumValue *)\r
* \brief Set Button Flags\r
* \note If \a Value is equal to -1 (all bits set), the value is not changed\r
+ * \todo Define flag values\r
*/\r
JOY_IOCTL_GETSETBUTTONFLAGS,\r
};\r
outb(0x60, leds);
}
+static const char *csaIOCTL_NAMES[] = {DRV_IOCTLNAMES, DRV_KEYBAORD_IOCTLNAMES, NULL};
+
/**
* \fn int KB_IOCtl(tVFS_Node *Node, int Id, void *Data)
* \brief Calls an IOCtl Command
{
switch(Id)
{
- case DRV_IOCTL_TYPE: return DRV_TYPE_KEYBOARD;
- case DRV_IOCTL_IDENT: memcpy(Data, "KB\0\0", 4); return 1;
- case DRV_IOCTL_VERSION: return 0x100;
- case DRV_IOCTL_LOOKUP: return 0;
-
+ BASE_IOCTLS(DRV_TYPE_KEYBOARD, "KB", 0x100, csaIOCTL_NAMES);
+
// Sets the Keyboard Callback
case KB_IOCTL_SETCALLBACK:
// Sanity Check