summaryrefslogtreecommitdiffstats
path: root/sys/dev/usb/template/usb_template_msc.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/usb/template/usb_template_msc.c')
-rw-r--r--sys/dev/usb/template/usb_template_msc.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/sys/dev/usb/template/usb_template_msc.c b/sys/dev/usb/template/usb_template_msc.c
index 0e043fb..8f2e7ba 100644
--- a/sys/dev/usb/template/usb_template_msc.c
+++ b/sys/dev/usb/template/usb_template_msc.c
@@ -97,12 +97,12 @@ USB_MAKE_STRING_DESC(STRING_MSC_SERIAL, string_msc_serial);
static usb2_temp_get_string_desc_t msc_get_string_desc;
-static const struct usb2_temp_packet_size bulk_mps = {
+static const struct usb_temp_packet_size bulk_mps = {
.mps[USB_SPEED_FULL] = 64,
.mps[USB_SPEED_HIGH] = 512,
};
-static const struct usb2_temp_endpoint_desc bulk_in_ep = {
+static const struct usb_temp_endpoint_desc bulk_in_ep = {
.pPacketSize = &bulk_mps,
#ifdef USB_HIP_IN_EP_0
.bEndpointAddress = USB_HIP_IN_EP_0,
@@ -112,7 +112,7 @@ static const struct usb2_temp_endpoint_desc bulk_in_ep = {
.bmAttributes = UE_BULK,
};
-static const struct usb2_temp_endpoint_desc bulk_out_ep = {
+static const struct usb_temp_endpoint_desc bulk_out_ep = {
.pPacketSize = &bulk_mps,
#ifdef USB_HIP_OUT_EP_0
.bEndpointAddress = USB_HIP_OUT_EP_0,
@@ -122,13 +122,13 @@ static const struct usb2_temp_endpoint_desc bulk_out_ep = {
.bmAttributes = UE_BULK,
};
-static const struct usb2_temp_endpoint_desc *msc_data_endpoints[] = {
+static const struct usb_temp_endpoint_desc *msc_data_endpoints[] = {
&bulk_in_ep,
&bulk_out_ep,
NULL,
};
-static const struct usb2_temp_interface_desc msc_data_interface = {
+static const struct usb_temp_interface_desc msc_data_interface = {
.ppEndpoints = msc_data_endpoints,
.bInterfaceClass = UICLASS_MASS,
.bInterfaceSubClass = UISUBCLASS_SCSI,
@@ -136,24 +136,24 @@ static const struct usb2_temp_interface_desc msc_data_interface = {
.iInterface = STRING_MSC_DATA_INDEX,
};
-static const struct usb2_temp_interface_desc *msc_interfaces[] = {
+static const struct usb_temp_interface_desc *msc_interfaces[] = {
&msc_data_interface,
NULL,
};
-static const struct usb2_temp_config_desc msc_config_desc = {
+static const struct usb_temp_config_desc msc_config_desc = {
.ppIfaceDesc = msc_interfaces,
.bmAttributes = UC_BUS_POWERED,
.bMaxPower = 25, /* 50 mA */
.iConfiguration = STRING_MSC_CONFIG_INDEX,
};
-static const struct usb2_temp_config_desc *msc_configs[] = {
+static const struct usb_temp_config_desc *msc_configs[] = {
&msc_config_desc,
NULL,
};
-const struct usb2_temp_device_desc usb2_template_msc = {
+const struct usb_temp_device_desc usb2_template_msc = {
.getStringDesc = &msc_get_string_desc,
.ppConfigDesc = msc_configs,
.idVendor = 0x0001,
OpenPOWER on IntegriCloud