Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
openwrt
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
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
Freifunk Luebeck
openwrt
Commits
3890a38f
Commit
3890a38f
authored
16 years ago
by
Gabor Juhos
Browse files
Options
Downloads
Patches
Plain Diff
NFS-101U/WU: add PCI irq map and change vlan map
SVN-Revision: 14021
parent
c09e052d
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
target/linux/adm5120/files/arch/mips/adm5120/cellvision/nfs-101.c
+15
-4
15 additions, 4 deletions
...inux/adm5120/files/arch/mips/adm5120/cellvision/nfs-101.c
with
15 additions
and
4 deletions
target/linux/adm5120/files/arch/mips/adm5120/cellvision/nfs-101.c
+
15
−
4
View file @
3890a38f
/*
* Cellvision/SparkLAN NFS-101U/WU support
*
* Copyright (C) 2007-200
8
Gabor Juhos <juhosg@openwrt.org>
* Copyright (C) 2007-200
9
Gabor Juhos <juhosg@openwrt.org>
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 as published
...
...
@@ -11,8 +11,16 @@
#include
"cellvision.h"
static
u8
nfs101_vlans
[
6
]
__initdata
=
{
/* TODO: not tested */
0x41
,
0x42
,
0x44
,
0x48
,
0x50
,
0x00
static
struct
adm5120_pci_irq
nfs101_pci_irqs
[]
__initdata
=
{
/* FIXME: not tested */
PCIIRQ
(
2
,
0
,
1
,
ADM5120_IRQ_PCI0
),
PCIIRQ
(
3
,
0
,
2
,
ADM5120_IRQ_PCI2
),
PCIIRQ
(
3
,
3
,
1
,
ADM5120_IRQ_PCI1
)
};
static
u8
nfs101_vlans
[
6
]
__initdata
=
{
/* FIXME: not tested */
0x5f
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
};
static
void
__init
nfs101_setup
(
void
)
...
...
@@ -22,7 +30,10 @@ static void __init nfs101_setup(void)
adm5120_add_device_uart
(
0
);
adm5120_add_device_uart
(
1
);
adm5120_add_device_switch
(
5
,
nfs101_vlans
);
adm5120_add_device_switch
(
1
,
nfs101_vlans
);
adm5120_pci_set_irq_map
(
ARRAY_SIZE
(
nfs101_pci_irqs
),
nfs101_pci_irqs
);
}
MIPS_MACHINE
(
MACH_ADM5120_NFS101U
,
"Cellvision NFS-101U/101WU"
,
nfs101_setup
);
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