usb: Revert usage of uchar.h

This commit is contained in:
Cacodemon345
2023-05-10 17:19:35 +06:00
parent d0845ccade
commit 98ebfce460
7 changed files with 13 additions and 7 deletions

View File

@@ -20,7 +20,6 @@
#include <stdlib.h>
#include <string.h>
#include <wchar.h>
#include <uchar.h>
#define HAVE_STDARG_H
#include <86box/86box.h>
#include <86box/timer.h>

View File

@@ -23,7 +23,6 @@
#include <stdlib.h>
#include <string.h>
#include <wchar.h>
#include <uchar.h>
#define HAVE_STDARG_H
#include <86box/86box.h>
#include "cpu.h"

View File

@@ -20,7 +20,6 @@
#include <stdlib.h>
#include <string.h>
#include <wchar.h>
#include <uchar.h>
#define HAVE_STDARG_H
#include <86box/86box.h>
#include <86box/device.h>

View File

@@ -20,7 +20,6 @@
#include <stdlib.h>
#include <string.h>
#include <wchar.h>
#include <uchar.h>
#define HAVE_STDARG_H
#include <86box/86box.h>
#include <86box/mem.h>

View File

@@ -26,7 +26,6 @@
#include <stdlib.h>
#include <string.h>
#include <wchar.h>
#include <uchar.h>
#define HAVE_STDARG_H
#include <86box/86box.h>
#include "cpu.h"

View File

@@ -92,6 +92,18 @@ typedef struct
uint8_t bDescriptorType;
} usb_desc_base_t;
enum usb_desc_setup_req_types
{
USB_SETUP_TYPE_DEVICE = 0x0,
USB_SETUP_TYPE_INTERFACE = 0x1,
USB_SETUP_TYPE_ENDPOING = 0x2,
USB_SETUP_TYPE_OTHER = 0x3,
};
#define USB_SETUP_TYPE_MAX 0x1F
#define USB_SETUP_DEV_TO_HOST 0x80
typedef struct
{
uint8_t bmRequestType;
@@ -137,7 +149,7 @@ typedef struct
typedef struct
{
usb_desc_base_t base;
char16_t bString[];
uint16_t bString[];
} usb_desc_string_t;
typedef struct

View File

@@ -22,7 +22,6 @@
#include <string.h>
#include <stdbool.h>
#include <wchar.h>
#include <uchar.h>
#include <assert.h>
#define HAVE_STDARG_H
#include <86box/86box.h>