Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
bed428ed
Commit
bed428ed
authored
Jun 06, 2002
by
Kai Germaschewski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ISDN: LED support for netjet driver
(by Guy Ellis)
parent
20ed6956
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
1 deletion
+21
-1
drivers/isdn/hisax/netjet.c
drivers/isdn/hisax/netjet.c
+21
-1
No files found.
drivers/isdn/hisax/netjet.c
View file @
bed428ed
...
...
@@ -8,7 +8,9 @@
* This software may be used and distributed according to the terms
* of the GNU General Public License, incorporated herein by reference.
*
* Thanks to Traverse Technologie Australia for documents and information
* Thanks to Traverse Technologies Australia for documents and information
*
* 16-Apr-2002 - led code added - Guy Ellis (guy@traverse.com.au)
*
*/
...
...
@@ -133,6 +135,7 @@ void
mode_tiger
(
struct
BCState
*
bcs
,
int
mode
,
int
bc
)
{
struct
IsdnCardState
*
cs
=
bcs
->
cs
;
u_char
led
;
if
(
cs
->
debug
&
L1_DEB_HSCX
)
debugl1
(
cs
,
"Tiger mode %d bchan %d/%d"
,
...
...
@@ -154,6 +157,15 @@ mode_tiger(struct BCState *bcs, int mode, int bc)
cs
->
hw
.
njet
.
dmactrl
);
byteout
(
cs
->
hw
.
njet
.
base
+
NETJET_IRQMASK0
,
0
);
}
if
(
cs
->
typ
==
ISDN_CTYPE_NETJET_S
)
{
// led off
led
=
bc
&
0x01
;
led
=
0x01
<<
(
6
+
led
);
// convert to mask
led
=
~
led
;
cs
->
hw
.
njet
.
auxd
&=
led
;
byteout
(
cs
->
hw
.
njet
.
auxa
,
cs
->
hw
.
njet
.
auxd
);
}
break
;
case
(
L1_MODE_TRANS
):
break
;
...
...
@@ -179,6 +191,14 @@ mode_tiger(struct BCState *bcs, int mode, int bc)
bcs
->
hw
.
tiger
.
sendp
=
bcs
->
hw
.
tiger
.
send
;
bcs
->
hw
.
tiger
.
free
=
NETJET_DMA_TXSIZE
;
test_and_set_bit
(
BC_FLG_EMPTY
,
&
bcs
->
Flag
);
if
(
cs
->
typ
==
ISDN_CTYPE_NETJET_S
)
{
// led on
led
=
bc
&
0x01
;
led
=
0x01
<<
(
6
+
led
);
// convert to mask
cs
->
hw
.
njet
.
auxd
|=
led
;
byteout
(
cs
->
hw
.
njet
.
auxa
,
cs
->
hw
.
njet
.
auxd
);
}
break
;
}
if
(
cs
->
debug
&
L1_DEB_HSCX
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment