From 5deb3317cb51ac52de922bb55f8492624018906d Mon Sep 17 00:00:00 2001 From: Roman Yeryomin Date: Thu, 13 Sep 2012 00:40:35 +0300 Subject: Add realtek target files Signed-off-by: Roman Yeryomin --- .../linux/realtek/files/include/net/rtl/rtk_vlan.h | 38 ++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 target/linux/realtek/files/include/net/rtl/rtk_vlan.h (limited to 'target/linux/realtek/files/include/net/rtl/rtk_vlan.h') diff --git a/target/linux/realtek/files/include/net/rtl/rtk_vlan.h b/target/linux/realtek/files/include/net/rtl/rtk_vlan.h new file mode 100644 index 000000000..71764b61f --- /dev/null +++ b/target/linux/realtek/files/include/net/rtl/rtk_vlan.h @@ -0,0 +1,38 @@ +/* + * Headler file of Realtek VLAN + * + * $Id: rtk_vlan.h,v 1.3 2009/06/01 07:00:27 davidhsu Exp $ + */ + +#ifndef _RTK_VLAN_H +#define _RTK_VLAN_H +#include "rtl_types.h" + +struct vlan_info { + int global_vlan; // 0/1 - global vlan disable/enable + int is_lan; // 1: eth-lan/wlan port, 0: wan port + int vlan; // 0/1: disable/enable vlan + int tag; // 0/1: disable/enable tagging + int id; // 1~4090: vlan id + int pri; // 0~7: priority; + int cfi; // 0/1: cfi +}; + +struct _vlan_tag { + unsigned short tpid; // protocol id + unsigned short pci; // priority:3, cfi:1, id:12 +}; + +struct vlan_tag { + union + { + unsigned long v; + struct _vlan_tag f; + }; +}; + +#if defined(CONFIG_RTL_HW_STP) +uint32 rtl865x_getVlanPortMask(uint32 vid); +#endif + +#endif // _RTK_VLAN_H -- cgit v1.2.3