#include <sys/stdint.h>
#include <sys/stddef.h>
#include <sys/param.h>
#include <sys/queue.h>
#include <sys/types.h>
#include <sys/systm.h>
#include <sys/kernel.h>
#include <sys/bus.h>
#include <sys/module.h>
#include <sys/lock.h>
#include <sys/mutex.h>
#include <sys/condvar.h>
#include <sys/sysctl.h>
#include <sys/sx.h>
#include <sys/unistd.h>
#include <sys/callout.h>
#include <sys/malloc.h>
#include <sys/priv.h>
#include <dev/usb/usb.h>
#include <dev/usb/usbdi.h>
#include <dev/usb/usb_core.h>
#include <dev/usb/usb_ioctl.h>
#include <dev/usb/usb_util.h>
#include <dev/usb/template/usb_template.h>
Go to the source code of this file.
◆ MSC_DEFAULT_CONFIGURATION
#define MSC_DEFAULT_CONFIGURATION "Default Config" |
◆ MSC_DEFAULT_INTERFACE
#define MSC_DEFAULT_INTERFACE "USB Mass Storage Interface" |
◆ MSC_DEFAULT_MANUFACTURER
◆ MSC_DEFAULT_PRODUCT
#define MSC_DEFAULT_PRODUCT "USB Memory Stick" |
◆ MSC_DEFAULT_PRODUCT_ID
#define MSC_DEFAULT_PRODUCT_ID 0x27df |
◆ MSC_DEFAULT_SERIAL_NUMBER
#define MSC_DEFAULT_SERIAL_NUMBER "March 2008" |
◆ MSC_DEFAULT_VENDOR_ID
◆ anonymous enum
Enumerator |
---|
MSC_LANG_INDEX | |
MSC_INTERFACE_INDEX | |
MSC_CONFIGURATION_INDEX | |
MSC_MANUFACTURER_INDEX | |
MSC_PRODUCT_INDEX | |
MSC_SERIAL_NUMBER_INDEX | |
MSC_MAX_INDEX | |
Definition at line 69 of file usb_template_msc.c.
◆ msc_get_string_desc()
static const void * msc_get_string_desc |
( |
uint16_t |
lang_id, |
|
|
uint8_t |
string_index |
|
) |
| |
|
static |
Definition at line 177 of file usb_template_msc.c.
References msc_configuration, MSC_CONFIGURATION_INDEX, msc_interface, MSC_INTERFACE_INDEX, MSC_LANG_INDEX, msc_manufacturer, MSC_MANUFACTURER_INDEX, MSC_MAX_INDEX, msc_product, MSC_PRODUCT_INDEX, msc_serial_number, MSC_SERIAL_NUMBER_INDEX, and usb_string_lang_en.
◆ msc_init()
static void msc_init |
( |
void *arg |
__unused | ) |
|
|
static |
Definition at line 201 of file usb_template_msc.c.
References usb_temp_device_desc::idProduct, usb_temp_device_desc::idVendor, msc_configuration, msc_ctx_list, MSC_DEFAULT_CONFIGURATION, MSC_DEFAULT_INTERFACE, MSC_DEFAULT_MANUFACTURER, MSC_DEFAULT_PRODUCT, MSC_DEFAULT_SERIAL_NUMBER, msc_interface, msc_manufacturer, msc_product, msc_serial_number, usb_make_str_desc(), USB_TEMP_MSC, usb_temp_sysctl(), and usb_template_msc.
◆ msc_uninit()
static void msc_uninit |
( |
void *arg |
__unused | ) |
|
|
static |
◆ SYSINIT()
◆ SYSUNINIT()
◆ bulk_in_ep
Initial value:= {
}
static const struct usb_temp_packet_size bulk_mps
Definition at line 104 of file usb_template_msc.c.
◆ bulk_mps
◆ bulk_out_ep
◆ msc_config_desc
Initial value:= {
.bmAttributes = 0,
.bMaxPower = 0,
}
static const struct usb_temp_interface_desc * msc_interfaces[]
@ MSC_CONFIGURATION_INDEX
Definition at line 143 of file usb_template_msc.c.
◆ msc_configs
Initial value:= {
NULL,
}
static const struct usb_temp_config_desc msc_config_desc
Definition at line 150 of file usb_template_msc.c.
◆ msc_configuration
◆ msc_ctx_list
struct sysctl_ctx_list msc_ctx_list |
|
static |
◆ msc_data_endpoints
Initial value:= {
NULL,
}
static const struct usb_temp_endpoint_desc bulk_out_ep
static const struct usb_temp_endpoint_desc bulk_in_ep
Definition at line 124 of file usb_template_msc.c.
◆ msc_data_interface
Initial value:= {
}
static const struct usb_temp_endpoint_desc * msc_data_endpoints[]
Definition at line 130 of file usb_template_msc.c.
◆ msc_get_string_desc
◆ msc_interface
◆ msc_interfaces
Initial value:= {
NULL,
}
static const struct usb_temp_interface_desc msc_data_interface
Definition at line 138 of file usb_template_msc.c.
◆ msc_manufacturer
◆ msc_product
◆ msc_serial_number
◆ usb_template_msc
Initial value:= {
.bcdDevice = 0x0100,
.bDeviceSubClass = 0,
.bDeviceProtocol = 0,
}
#define MSC_DEFAULT_VENDOR_ID
static const struct usb_temp_config_desc * msc_configs[]
@ MSC_SERIAL_NUMBER_INDEX
#define MSC_DEFAULT_PRODUCT_ID
static usb_temp_get_string_desc_t msc_get_string_desc
Definition at line 155 of file usb_template_msc.c.
Referenced by msc_init(), and usb_temp_setup_by_index().