1#include <sys/cdefs.h> |
2__FBSDID("$FreeBSD: head/sys/dev/usb/template/usb_template_msc.c 194228 2009-06-15 01:02:43Z thompsa $"); |
3 4/*- 5 * Copyright (c) 2008 Hans Petter Selasky <hselasky@FreeBSD.org> 6 * All rights reserved. 7 * 8 * Redistribution and use in source and binary forms, with or without 9 * modification, are permitted provided that the following conditions 10 * are met: --- 79 unchanged lines hidden (view full) --- 90USB_MAKE_STRING_DESC(STRING_MSC_DATA, string_msc_data); 91USB_MAKE_STRING_DESC(STRING_MSC_CONFIG, string_msc_config); 92USB_MAKE_STRING_DESC(STRING_MSC_VENDOR, string_msc_vendor); 93USB_MAKE_STRING_DESC(STRING_MSC_PRODUCT, string_msc_product); 94USB_MAKE_STRING_DESC(STRING_MSC_SERIAL, string_msc_serial); 95 96/* prototypes */ 97 |
98static usb_temp_get_string_desc_t msc_get_string_desc; |
99 100static const struct usb_temp_packet_size bulk_mps = { 101 .mps[USB_SPEED_FULL] = 64, 102 .mps[USB_SPEED_HIGH] = 512, 103}; 104 105static const struct usb_temp_endpoint_desc bulk_in_ep = { 106 .pPacketSize = &bulk_mps, --- 41 unchanged lines hidden (view full) --- 148 .iConfiguration = STRING_MSC_CONFIG_INDEX, 149}; 150 151static const struct usb_temp_config_desc *msc_configs[] = { 152 &msc_config_desc, 153 NULL, 154}; 155 |
156const struct usb_temp_device_desc usb_template_msc = { |
157 .getStringDesc = &msc_get_string_desc, 158 .ppConfigDesc = msc_configs, 159 .idVendor = 0x0001, 160 .idProduct = 0x0001, 161 .bcdDevice = 0x0100, 162 .bDeviceClass = UDCLASS_COMM, 163 .bDeviceSubClass = 0, 164 .bDeviceProtocol = 0, --- 35 unchanged lines hidden --- |