xref: /dpdk/drivers/net/dpaa2/dpaa2_ethdev.h (revision c147eae0)
1*c147eae0SHemant Agrawal /*-
2*c147eae0SHemant Agrawal  *   BSD LICENSE
3*c147eae0SHemant Agrawal  *
4*c147eae0SHemant Agrawal  *   Copyright (c) 2015-2016 Freescale Semiconductor, Inc. All rights reserved.
5*c147eae0SHemant Agrawal  *   Copyright (c) 2016 NXP. All rights reserved.
6*c147eae0SHemant Agrawal  *
7*c147eae0SHemant Agrawal  *   Redistribution and use in source and binary forms, with or without
8*c147eae0SHemant Agrawal  *   modification, are permitted provided that the following conditions
9*c147eae0SHemant Agrawal  *   are met:
10*c147eae0SHemant Agrawal  *
11*c147eae0SHemant Agrawal  *     * Redistributions of source code must retain the above copyright
12*c147eae0SHemant Agrawal  *       notice, this list of conditions and the following disclaimer.
13*c147eae0SHemant Agrawal  *     * Redistributions in binary form must reproduce the above copyright
14*c147eae0SHemant Agrawal  *       notice, this list of conditions and the following disclaimer in
15*c147eae0SHemant Agrawal  *       the documentation and/or other materials provided with the
16*c147eae0SHemant Agrawal  *       distribution.
17*c147eae0SHemant Agrawal  *     * Neither the name of Freescale Semiconductor, Inc nor the names of its
18*c147eae0SHemant Agrawal  *       contributors may be used to endorse or promote products derived
19*c147eae0SHemant Agrawal  *       from this software without specific prior written permission.
20*c147eae0SHemant Agrawal  *
21*c147eae0SHemant Agrawal  *   THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
22*c147eae0SHemant Agrawal  *   "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
23*c147eae0SHemant Agrawal  *   LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
24*c147eae0SHemant Agrawal  *   A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
25*c147eae0SHemant Agrawal  *   OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
26*c147eae0SHemant Agrawal  *   SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
27*c147eae0SHemant Agrawal  *   LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
28*c147eae0SHemant Agrawal  *   DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
29*c147eae0SHemant Agrawal  *   THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
30*c147eae0SHemant Agrawal  *   (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
31*c147eae0SHemant Agrawal  *   OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32*c147eae0SHemant Agrawal  */
33*c147eae0SHemant Agrawal 
34*c147eae0SHemant Agrawal #ifndef _DPAA2_ETHDEV_H
35*c147eae0SHemant Agrawal #define _DPAA2_ETHDEV_H
36*c147eae0SHemant Agrawal 
37*c147eae0SHemant Agrawal struct dpaa2_dev_priv {
38*c147eae0SHemant Agrawal 	void *hw;
39*c147eae0SHemant Agrawal 	int32_t hw_id;
40*c147eae0SHemant Agrawal 	uint16_t token;
41*c147eae0SHemant Agrawal 
42*c147eae0SHemant Agrawal 	uint8_t flags; /*dpaa2 config flags */
43*c147eae0SHemant Agrawal };
44*c147eae0SHemant Agrawal #endif /* _DPAA2_ETHDEV_H */
45