Orange Pi5 kernel

Deprecated Linux kernel 5.10.110 for OrangePi 5/5B/5+ boards

3 Commits   0 Branches   0 Tags
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  1) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  2)  * Copyright 2014 Cisco Systems, Inc.  All rights reserved.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  3)  *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  4)  * This program is free software; you may redistribute it and/or modify
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  5)  * it under the terms of the GNU General Public License as published by
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  6)  * the Free Software Foundation; version 2 of the License.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  7)  *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  8)  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  9)  * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10)  * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11)  * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12)  * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13)  * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14)  * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15)  * SOFTWARE.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16)  */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18) #ifndef _VNIC_RESOURCE_H_
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19) #define _VNIC_RESOURCE_H_
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 20) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 21) #define VNIC_RES_MAGIC		0x766E6963L	/* 'vnic' */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 22) #define VNIC_RES_VERSION	0x00000000L
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 23) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 24) /* vNIC resource types */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 25) enum vnic_res_type {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 26) 	RES_TYPE_EOL,			/* End-of-list */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 27) 	RES_TYPE_WQ,			/* Work queues */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 28) 	RES_TYPE_RQ,			/* Receive queues */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 29) 	RES_TYPE_CQ,			/* Completion queues */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 30) 	RES_TYPE_RSVD1,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 31) 	RES_TYPE_NIC_CFG,		/* Enet NIC config registers */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 32) 	RES_TYPE_RSVD2,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 33) 	RES_TYPE_RSVD3,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 34) 	RES_TYPE_RSVD4,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 35) 	RES_TYPE_RSVD5,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 36) 	RES_TYPE_INTR_CTRL,		/* Interrupt ctrl table */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 37) 	RES_TYPE_INTR_TABLE,		/* MSI/MSI-X Interrupt table */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 38) 	RES_TYPE_INTR_PBA,		/* MSI/MSI-X PBA table */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 39) 	RES_TYPE_INTR_PBA_LEGACY,	/* Legacy intr status */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 40) 	RES_TYPE_RSVD6,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 41) 	RES_TYPE_RSVD7,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 42) 	RES_TYPE_DEVCMD,		/* Device command region */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 43) 	RES_TYPE_PASS_THRU_PAGE,	/* Pass-thru page */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 44) 	RES_TYPE_SUBVNIC,		/* subvnic resource type */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 45) 	RES_TYPE_MQ_WQ,			/* MQ Work queues */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 46) 	RES_TYPE_MQ_RQ,			/* MQ Receive queues */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 47) 	RES_TYPE_MQ_CQ,			/* MQ Completion queues */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 48) 	RES_TYPE_DEPRECATED1,		/* Old version of devcmd 2 */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 49) 	RES_TYPE_DEPRECATED2,		/* Old version of devcmd 2 */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 50) 	RES_TYPE_DEVCMD2,		/* Device control region */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 51) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 52) 	RES_TYPE_MAX,			/* Count of resource types */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 53) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 54) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 55) struct vnic_resource_header {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 56) 	u32 magic;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 57) 	u32 version;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 58) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 59) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 60) struct vnic_resource {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 61) 	u8 type;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 62) 	u8 bar;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 63) 	u8 pad[2];
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 64) 	u32 bar_offset;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 65) 	u32 count;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 66) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 67) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 68) #endif /* _VNIC_RESOURCE_H_ */