Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
L
lede-mikrotik
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
External wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Johannes Rudolph
lede-mikrotik
Commits
fa7a83df
Commit
fa7a83df
authored
13 years ago
by
Gabor Juhos
Browse files
Options
Downloads
Patches
Plain Diff
generic: ar8216: allow to use more ports
SVN-Revision: 31010
parent
2ddbcb98
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
target/linux/generic/files/drivers/net/phy/ar8216.c
+3
-2
3 additions, 2 deletions
target/linux/generic/files/drivers/net/phy/ar8216.c
with
3 additions
and
2 deletions
target/linux/generic/files/drivers/net/phy/ar8216.c
+
3
−
2
View file @
fa7a83df
...
@@ -35,6 +35,7 @@
...
@@ -35,6 +35,7 @@
/* size of the vlan table */
/* size of the vlan table */
#define AR8X16_MAX_VLANS 128
#define AR8X16_MAX_VLANS 128
#define AR8X16_PROBE_RETRIES 10
#define AR8X16_PROBE_RETRIES 10
#define AR8X16_MAX_PORTS 8
struct
ar8216_priv
;
struct
ar8216_priv
;
...
@@ -75,7 +76,7 @@ struct ar8216_priv {
...
@@ -75,7 +76,7 @@ struct ar8216_priv {
u16
vlan_id
[
AR8X16_MAX_VLANS
];
u16
vlan_id
[
AR8X16_MAX_VLANS
];
u8
vlan_table
[
AR8X16_MAX_VLANS
];
u8
vlan_table
[
AR8X16_MAX_VLANS
];
u8
vlan_tagged
;
u8
vlan_tagged
;
u16
pvid
[
AR8
2
16_
NUM
_PORTS
];
u16
pvid
[
AR8
X
16_
MAX
_PORTS
];
};
};
#define to_ar8216(_dev) container_of(_dev, struct ar8216_priv, dev)
#define to_ar8216(_dev) container_of(_dev, struct ar8216_priv, dev)
...
@@ -736,7 +737,7 @@ static int
...
@@ -736,7 +737,7 @@ static int
ar8216_sw_hw_apply
(
struct
switch_dev
*
dev
)
ar8216_sw_hw_apply
(
struct
switch_dev
*
dev
)
{
{
struct
ar8216_priv
*
priv
=
to_ar8216
(
dev
);
struct
ar8216_priv
*
priv
=
to_ar8216
(
dev
);
u8
portmask
[
AR8
2
16_
NUM
_PORTS
];
u8
portmask
[
AR8
X
16_
MAX
_PORTS
];
int
i
,
j
;
int
i
,
j
;
mutex_lock
(
&
priv
->
reg_mutex
);
mutex_lock
(
&
priv
->
reg_mutex
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment