usb_template_mtp.c (194228) | usb_template_mtp.c (194677) |
---|---|
1#include <sys/cdefs.h> | 1#include <sys/cdefs.h> |
2__FBSDID("$FreeBSD: head/sys/dev/usb/template/usb_template_mtp.c 194228 2009-06-15 01:02:43Z thompsa $"); | 2__FBSDID("$FreeBSD: head/sys/dev/usb/template/usb_template_mtp.c 194677 2009-06-23 02:19:59Z 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: --- 22 unchanged lines hidden (view full) --- 33 * 34 * NOTE: It is common practice that MTP devices use some dummy 35 * descriptor cludges to be automatically detected by the host 36 * operating system. These descriptors are documented in the LibMTP 37 * library at sourceforge.net. The alternative is to supply the host 38 * operating system the VID and PID of your device. 39 */ 40 | 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: --- 22 unchanged lines hidden (view full) --- 33 * 34 * NOTE: It is common practice that MTP devices use some dummy 35 * descriptor cludges to be automatically detected by the host 36 * operating system. These descriptors are documented in the LibMTP 37 * library at sourceforge.net. The alternative is to supply the host 38 * operating system the VID and PID of your device. 39 */ 40 |
41#include <dev/usb/usb.h> 42#include <dev/usb/usb_mfunc.h> | 41#include <sys/stdint.h> 42#include <sys/stddef.h> 43#include <sys/param.h> 44#include <sys/queue.h> 45#include <sys/types.h> 46#include <sys/systm.h> 47#include <sys/kernel.h> 48#include <sys/bus.h> 49#include <sys/linker_set.h> 50#include <sys/module.h> 51#include <sys/lock.h> 52#include <sys/mutex.h> 53#include <sys/condvar.h> 54#include <sys/sysctl.h> 55#include <sys/sx.h> 56#include <sys/unistd.h> 57#include <sys/callout.h> 58#include <sys/malloc.h> 59#include <sys/priv.h> |
43 | 60 |
44#include <dev/usb/usb_core.h> 45 | 61#include 62#include <dev/usb/usbdi.h> |
46#include <dev/usb/template/usb_template.h> 47 48#define MTP_BREQUEST 0x08 49 50enum { 51 STRING_LANG_INDEX, 52 STRING_MTP_DATA_INDEX, 53 STRING_MTP_CONFIG_INDEX, --- 209 unchanged lines hidden --- | 63#include <dev/usb/template/usb_template.h> 64 65#define MTP_BREQUEST 0x08 66 67enum { 68 STRING_LANG_INDEX, 69 STRING_MTP_DATA_INDEX, 70 STRING_MTP_CONFIG_INDEX, --- 209 unchanged lines hidden --- |