mirror of
https://github.com/Atmosphere-NX/Atmosphere-libs.git
synced 2025-06-28 05:52:39 +02:00
usb: fix wrong command id for AppendConfigurationData
This commit is contained in:
parent
570e5ceccb
commit
89b7a83d3b
@ -165,6 +165,15 @@ namespace ams::usb {
|
|||||||
UsbEndpointAddressMask_DirDevicetoHost = (0x1 << 7),
|
UsbEndpointAddressMask_DirDevicetoHost = (0x1 << 7),
|
||||||
};
|
};
|
||||||
|
|
||||||
|
enum UsbEndpointAttributeMask {
|
||||||
|
UsbEndpointAttributeMask_XferType = (0x3 << 0),
|
||||||
|
|
||||||
|
UsbEndpointAttributeMask_XferTypeControl = (0x0 << 0),
|
||||||
|
UsbEndpointAttributeMask_XferTypeIsoc = (0x1 << 0),
|
||||||
|
UsbEndpointAttributeMask_XferTypeBulk = (0x2 << 0),
|
||||||
|
UsbEndpointAttributeMask_XferTypeInt = (0x3 << 0),
|
||||||
|
};
|
||||||
|
|
||||||
enum UsbEndpointDirection {
|
enum UsbEndpointDirection {
|
||||||
UsbEndpointDirection_Invalid = 0,
|
UsbEndpointDirection_Invalid = 0,
|
||||||
UsbEndpointDirection_ToDevice = 1,
|
UsbEndpointDirection_ToDevice = 1,
|
||||||
|
@ -103,7 +103,7 @@ namespace ams::usb {
|
|||||||
Result RemoteDsInterface::AppendConfigurationData(u8 bInterfaceNumber, usb::UsbDeviceSpeed device_speed, const sf::InBuffer &data) {
|
Result RemoteDsInterface::AppendConfigurationData(u8 bInterfaceNumber, usb::UsbDeviceSpeed device_speed, const sf::InBuffer &data) {
|
||||||
if (hos::GetVersion() >= hos::Version_11_0_0) {
|
if (hos::GetVersion() >= hos::Version_11_0_0) {
|
||||||
serviceAssumeDomain(std::addressof(m_srv));
|
serviceAssumeDomain(std::addressof(m_srv));
|
||||||
return serviceDispatchIn(std::addressof(m_srv), 12, device_speed,
|
return serviceDispatchIn(std::addressof(m_srv), 10, device_speed,
|
||||||
.buffer_attrs = { SfBufferAttr_HipcMapAlias | SfBufferAttr_In },
|
.buffer_attrs = { SfBufferAttr_HipcMapAlias | SfBufferAttr_In },
|
||||||
.buffers = { { data.GetPointer(), data.GetSize() } },
|
.buffers = { { data.GetPointer(), data.GetSize() } },
|
||||||
);
|
);
|
||||||
@ -114,7 +114,7 @@ namespace ams::usb {
|
|||||||
} in = { bInterfaceNumber, device_speed };
|
} in = { bInterfaceNumber, device_speed };
|
||||||
|
|
||||||
serviceAssumeDomain(std::addressof(m_srv));
|
serviceAssumeDomain(std::addressof(m_srv));
|
||||||
return serviceDispatchIn(std::addressof(m_srv), 10, in,
|
return serviceDispatchIn(std::addressof(m_srv), 12, in,
|
||||||
.buffer_attrs = { SfBufferAttr_HipcMapAlias | SfBufferAttr_In },
|
.buffer_attrs = { SfBufferAttr_HipcMapAlias | SfBufferAttr_In },
|
||||||
.buffers = { { data.GetPointer(), data.GetSize() } },
|
.buffers = { { data.GetPointer(), data.GetSize() } },
|
||||||
);
|
);
|
||||||
|
Loading…
Reference in New Issue
Block a user