1/*
2 * Copyright (c) 2013-2019, Huawei Technologies Co., Ltd. All rights reserved.
3 * Copyright (c) 2020, Huawei Device Co., Ltd. All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without modification,
6 * are permitted provided that the following conditions are met:
7 *
8 * 1. Redistributions of source code must retain the above copyright notice, this list of
9 *    conditions and the following disclaimer.
10 *
11 * 2. Redistributions in binary form must reproduce the above copyright notice, this list
12 *    of conditions and the following disclaimer in the documentation and/or other materials
13 *    provided with the distribution.
14 *
15 * 3. Neither the name of the copyright holder nor the names of its contributors may be used
16 *    to endorse or promote products derived from this software without specific prior written
17 *    permission.
18 *
19 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
20 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
21 * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
22 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
23 * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
24 * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
25 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
26 * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
27 * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
28 * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
29 * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
30 */
31
32
33/*
34 * Notes: version manager
35 * 1. version large number means: new features update
36 * 	e.g. v0.01 > v1.00
37 * 2. version small number means: buglist fixed update
38 * 	e.g. v1.01 > v1.02
39 * 3. version time: update version date/time information
40 */
41static const char *usb_version[] = {
42	/*
43	 * "v0.01 2015-12-31 15:30",
44	 * "v1.00 2016-01-08 15:00",
45	 * "v1.01 2016-01-08 17:53", Add fmass sw check disconnect.
46	 * "v1.02 2016-01-14 21:18", Add irq lock/unlock for xfer queue.
47	 * "v1.03 2016-01-18 17:00", Add usbshell/usbtask name info.
48	 * "v1.04 2016-02-16 10:03", Modify fmass memory allocate.
49	 * "v1.05 2016-03-09 11:03", Modify usb memory allocate interface.
50	 * "v2.00 2016-03-18 18:30", Fixed the license problem of usb driver.
51	 * "v2.01 2016-03-24 11:00", Modify usb memory config by appalication & add hub port debounce.
52	 * "v2.02 2016-04-11 14:10", Fixed mac connect usbdev fail case which sync to xiongmai.
53	 * "v2.03 2016-04-19 20:10", Clear error/warning.
54	 * "v2.04 2016-06-27 16:32", Clear error/warning.
55	 * "v2.05 2016-07-05 20:49", Clear error/warning.
56	 * "v2.06 2016-07-07 10:47", Fixed a bug of umass that cause reading and writing failure.
57	 * "v2.07 2016-07-11 16:30", Update usbgadget-IF/dev-IF for fmass/fserial/fether.
58	 * "v2.08 2016-07-14 19:44", Reduce the SAI.
59	 * "v2.09 2016-08-20 10:12", Modify the mtx_assert.
60	 * "v2.10 2016-09-18 10:28", Fixed a bug of f_mass that can not be identify.
61	 * "v2.11 2017-02-08 10:59", Add the changes to support usb module cutting.
62	 * "v2.12 2017-06-12 16:00", Add USB device 3.0 driver.
63	 * "v2.12 2018-02-27 20:00", Modify that Multi device driven libraries become one.
64	 * "v2.13 2018-11-29 11:00", Add urndis host.
65	 * "v2.14 2018-12-04 15:30", Support dynamic switch device type.
66	 * "v3.01 2019-05-09 10:32", Composite architecture optimization, refer to the Nuttx framework.
67	 * "v3.02 2019-10-11 10:17", Serial architecture optimization, refer to the Nuttx framework.
68	 * "v3.03 2019-10-12 10:45", DFU architecture optimization, refer to the Nuttx framework.
69	 * "v3.04 2019-10-12 14:27", Device rndis architecture optimization, refer to the Nuttx framework.
70	 */
71	"v3.05 2019-11-20 10:40",   /* Add host uvc class, refer to OpenBSD. */
72};
73
74const char *
75fetach_usbversion(void)
76{
77	return (usb_version[0]);
78}
79
80