From 315a052ddf51773fd0b0c03fabc2ff32ad634b43 Mon Sep 17 00:00:00 2001 From: Pablo Curiel Date: Sat, 11 Nov 2023 21:50:02 +0100 Subject: [PATCH] usb: bump ABI version. --- host/README.md | 2 +- host/nxdt_host.py | 2 +- source/core/usb.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/host/README.md b/host/README.md index 8ee2475..eb5828e 100644 --- a/host/README.md +++ b/host/README.md @@ -1,6 +1,6 @@ # nxdumptool USB Application Binary Interface (ABI) Technical Specification -This Markdown document aims to explain the technical details behind the ABI used by nxdumptool to communicate with a USB host device connected to the console. As of this writing (November 11th, 2023), the current ABI version is `1.1`. +This Markdown document aims to explain the technical details behind the ABI used by nxdumptool to communicate with a USB host device connected to the console. As of this writing (November 11th, 2023), the current ABI version is `1.2`. In order to avoid unnecessary clutter, this document assumes the reader is already familiar with homebrew launching on the Nintendo Switch, as well as USB concepts such as device/configuration/interface/endpoint descriptors and bulk mode transfers. Shall this not be the case, a small list of helpful resources is available at the end of this document. diff --git a/host/nxdt_host.py b/host/nxdt_host.py index 0b466b4..2287e44 100644 --- a/host/nxdt_host.py +++ b/host/nxdt_host.py @@ -96,7 +96,7 @@ USB_MAGIC_WORD = b'NXDT' # Supported USB ABI version. USB_ABI_VERSION_MAJOR = 1 -USB_ABI_VERSION_MINOR = 1 +USB_ABI_VERSION_MINOR = 2 # USB command header size. USB_CMD_HEADER_SIZE = 0x10 diff --git a/source/core/usb.c b/source/core/usb.c index dc29efd..b6e4340 100644 --- a/source/core/usb.c +++ b/source/core/usb.c @@ -26,7 +26,7 @@ #include "usb.h" #define USB_ABI_VERSION_MAJOR 1 -#define USB_ABI_VERSION_MINOR 1 +#define USB_ABI_VERSION_MINOR 2 #define USB_ABI_VERSION ((USB_ABI_VERSION_MAJOR << 4) | USB_ABI_VERSION_MINOR) #define USB_CMD_HEADER_MAGIC 0x4E584454 /* "NXDT". */