xref: /freebsd/sys/dev/bhnd/nvram/bhnd_nvram_data_tlvreg.h (revision 2ff63af9b88c7413b7d71715b5532625752a248e)
1*77cb4d3eSLandon J. Fuller /*-
2*77cb4d3eSLandon J. Fuller  * Copyright (c) 2015-2016 Landon Fuller <landonf@FreeBSD.org>
3*77cb4d3eSLandon J. Fuller  * All rights reserved.
4*77cb4d3eSLandon J. Fuller  *
5*77cb4d3eSLandon J. Fuller  * Redistribution and use in source and binary forms, with or without
6*77cb4d3eSLandon J. Fuller  * modification, are permitted provided that the following conditions
7*77cb4d3eSLandon J. Fuller  * are met:
8*77cb4d3eSLandon J. Fuller  * 1. Redistributions of source code must retain the above copyright
9*77cb4d3eSLandon J. Fuller  *    notice, this list of conditions and the following disclaimer,
10*77cb4d3eSLandon J. Fuller  *    without modification.
11*77cb4d3eSLandon J. Fuller  * 2. Redistributions in binary form must reproduce at minimum a disclaimer
12*77cb4d3eSLandon J. Fuller  *    similar to the "NO WARRANTY" disclaimer below ("Disclaimer") and any
13*77cb4d3eSLandon J. Fuller  *    redistribution must be conditioned upon including a substantially
14*77cb4d3eSLandon J. Fuller  *    similar Disclaimer requirement for further binary redistribution.
15*77cb4d3eSLandon J. Fuller  *
16*77cb4d3eSLandon J. Fuller  * NO WARRANTY
17*77cb4d3eSLandon J. Fuller  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
18*77cb4d3eSLandon J. Fuller  * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
19*77cb4d3eSLandon J. Fuller  * LIMITED TO, THE IMPLIED WARRANTIES OF NONINFRINGEMENT, MERCHANTIBILITY
20*77cb4d3eSLandon J. Fuller  * AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL
21*77cb4d3eSLandon J. Fuller  * THE COPYRIGHT HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY,
22*77cb4d3eSLandon J. Fuller  * OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
23*77cb4d3eSLandon J. Fuller  * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
24*77cb4d3eSLandon J. Fuller  * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
25*77cb4d3eSLandon J. Fuller  * IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
26*77cb4d3eSLandon J. Fuller  * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
27*77cb4d3eSLandon J. Fuller  * THE POSSIBILITY OF SUCH DAMAGES.
28*77cb4d3eSLandon J. Fuller  *
29*77cb4d3eSLandon J. Fuller  */
30*77cb4d3eSLandon J. Fuller 
31*77cb4d3eSLandon J. Fuller #ifndef _BHND_NVRAM_BHND_NVRAM_TLVREG_H_
32*77cb4d3eSLandon J. Fuller #define _BHND_NVRAM_BHND_NVRAM_TLVREG_H_
33*77cb4d3eSLandon J. Fuller 
34*77cb4d3eSLandon J. Fuller /* WGT634U-specific TLV encoding */
35*77cb4d3eSLandon J. Fuller #define	NVRAM_TLV_TF_U8_LEN		0x01	/**< type has 8-bit length */
36*77cb4d3eSLandon J. Fuller #define	NVRAM_TLV_TYPE_END		0x00	/**< end of table */
37*77cb4d3eSLandon J. Fuller #define	NVRAM_TLV_TYPE_ENV		0x01	/**< variable record */
38*77cb4d3eSLandon J. Fuller 
39*77cb4d3eSLandon J. Fuller #endif /* _BHND_NVRAM_BHND_NVRAM_TLVREG_H_ */
40