mirror of
https://github.com/logicog/RTLPlayground.git
synced 2026-08-30 14:52:51 +08:00
Console: Add Ingress type & VLAN show table
Added new `vlan show` command to dump current VLAN settings. Supports printing PVID & ingress filtering per port. Added new `ingress [p]<mode>` command to setup ingress filtering. Added wrappers for enabling/disabling vlan filtering. Currently not configurable, but state in console is read via ASIC registers. Full VLAN dump & web support of new commands will be added later.
This commit is contained in:
+2
-1
@@ -95,6 +95,7 @@ extern __xdata struct dhcp_state dhcp_state;
|
||||
__xdata volatile uint8_t sbuf_ptr;
|
||||
__xdata uint8_t sbuf[SBUF_SIZE];
|
||||
|
||||
// Registry data in sfr is in *big endian* order, so sfr_data[0] is the MSB and sfr_data[3] the LSB
|
||||
__xdata uint8_t sfr_data[4];
|
||||
|
||||
extern __xdata uint8_t gpio_last_value[8];
|
||||
@@ -462,7 +463,7 @@ void reg_bit_clear(uint16_t reg_addr, char bit)
|
||||
|
||||
|
||||
/*
|
||||
* This sets a bit in the 32bit wide switch register reg_addr
|
||||
* This tests a bit in the 32bit wide switch register reg_addr
|
||||
*/
|
||||
uint8_t reg_bit_test(uint16_t reg_addr, char bit)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user