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
a2ca0fc7
Commit
a2ca0fc7
authored
May 30, 2002
by
Dave Jones
Committed by
Linus Torvalds
May 30, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] avm_a1 check_region -> request_region cleanup
parent
479c0422
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
21 deletions
+7
-21
drivers/isdn/hisax/avm_a1.c
drivers/isdn/hisax/avm_a1.c
+7
-21
No files found.
drivers/isdn/hisax/avm_a1.c
View file @
a2ca0fc7
...
@@ -196,17 +196,15 @@ setup_avm_a1(struct IsdnCard *card)
...
@@ -196,17 +196,15 @@ setup_avm_a1(struct IsdnCard *card)
cs
->
hw
.
avm
.
hscxfifo
[
0
]
=
card
->
para
[
1
];
cs
->
hw
.
avm
.
hscxfifo
[
0
]
=
card
->
para
[
1
];
cs
->
hw
.
avm
.
hscxfifo
[
1
]
=
card
->
para
[
1
]
+
0x800
;
cs
->
hw
.
avm
.
hscxfifo
[
1
]
=
card
->
para
[
1
]
+
0x800
;
cs
->
irq
=
card
->
para
[
0
];
cs
->
irq
=
card
->
para
[
0
];
if
(
check_region
((
cs
->
hw
.
avm
.
cfg_reg
),
8
))
{
if
(
!
request_region
(
cs
->
hw
.
avm
.
cfg_reg
,
8
,
"avm cfg"
))
{
printk
(
KERN_WARNING
printk
(
KERN_WARNING
"HiSax: %s config port %x-%x already in use
\n
"
,
"HiSax: %s config port %x-%x already in use
\n
"
,
CardType
[
card
->
typ
],
CardType
[
card
->
typ
],
cs
->
hw
.
avm
.
cfg_reg
,
cs
->
hw
.
avm
.
cfg_reg
,
cs
->
hw
.
avm
.
cfg_reg
+
8
);
cs
->
hw
.
avm
.
cfg_reg
+
8
);
return
(
0
);
return
(
0
);
}
else
{
request_region
(
cs
->
hw
.
avm
.
cfg_reg
,
8
,
"avm cfg"
);
}
}
if
(
check_region
((
cs
->
hw
.
avm
.
isac
+
32
),
32
))
{
if
(
!
request_region
(
cs
->
hw
.
avm
.
isac
+
32
,
32
,
"HiSax isac"
))
{
printk
(
KERN_WARNING
printk
(
KERN_WARNING
"HiSax: %s isac ports %x-%x already in use
\n
"
,
"HiSax: %s isac ports %x-%x already in use
\n
"
,
CardType
[
cs
->
typ
],
CardType
[
cs
->
typ
],
...
@@ -214,20 +212,16 @@ setup_avm_a1(struct IsdnCard *card)
...
@@ -214,20 +212,16 @@ setup_avm_a1(struct IsdnCard *card)
cs
->
hw
.
avm
.
isac
+
64
);
cs
->
hw
.
avm
.
isac
+
64
);
release_ioregs
(
cs
,
0
);
release_ioregs
(
cs
,
0
);
return
(
0
);
return
(
0
);
}
else
{
request_region
(
cs
->
hw
.
avm
.
isac
+
32
,
32
,
"HiSax isac"
);
}
}
if
(
check_region
((
cs
->
hw
.
avm
.
isacfifo
),
1
))
{
if
(
!
request_region
(
cs
->
hw
.
avm
.
isacfifo
,
1
,
"HiSax isac fifo"
))
{
printk
(
KERN_WARNING
printk
(
KERN_WARNING
"HiSax: %s isac fifo port %x already in use
\n
"
,
"HiSax: %s isac fifo port %x already in use
\n
"
,
CardType
[
cs
->
typ
],
CardType
[
cs
->
typ
],
cs
->
hw
.
avm
.
isacfifo
);
cs
->
hw
.
avm
.
isacfifo
);
release_ioregs
(
cs
,
1
);
release_ioregs
(
cs
,
1
);
return
(
0
);
return
(
0
);
}
else
{
request_region
(
cs
->
hw
.
avm
.
isacfifo
,
1
,
"HiSax isac fifo"
);
}
}
if
(
check_region
((
cs
->
hw
.
avm
.
hscx
[
0
])
+
32
,
32
))
{
if
(
!
request_region
(
cs
->
hw
.
avm
.
hscx
[
0
]
+
32
,
32
,
"HiSax hscx A"
))
{
printk
(
KERN_WARNING
printk
(
KERN_WARNING
"HiSax: %s hscx A ports %x-%x already in use
\n
"
,
"HiSax: %s hscx A ports %x-%x already in use
\n
"
,
CardType
[
cs
->
typ
],
CardType
[
cs
->
typ
],
...
@@ -235,20 +229,16 @@ setup_avm_a1(struct IsdnCard *card)
...
@@ -235,20 +229,16 @@ setup_avm_a1(struct IsdnCard *card)
cs
->
hw
.
avm
.
hscx
[
0
]
+
64
);
cs
->
hw
.
avm
.
hscx
[
0
]
+
64
);
release_ioregs
(
cs
,
3
);
release_ioregs
(
cs
,
3
);
return
(
0
);
return
(
0
);
}
else
{
request_region
(
cs
->
hw
.
avm
.
hscx
[
0
]
+
32
,
32
,
"HiSax hscx A"
);
}
}
if
(
check_region
(
cs
->
hw
.
avm
.
hscxfifo
[
0
],
1
))
{
if
(
!
request_region
(
cs
->
hw
.
avm
.
hscxfifo
[
0
],
1
,
"HiSax hscx A fifo"
))
{
printk
(
KERN_WARNING
printk
(
KERN_WARNING
"HiSax: %s hscx A fifo port %x already in use
\n
"
,
"HiSax: %s hscx A fifo port %x already in use
\n
"
,
CardType
[
cs
->
typ
],
CardType
[
cs
->
typ
],
cs
->
hw
.
avm
.
hscxfifo
[
0
]);
cs
->
hw
.
avm
.
hscxfifo
[
0
]);
release_ioregs
(
cs
,
7
);
release_ioregs
(
cs
,
7
);
return
(
0
);
return
(
0
);
}
else
{
request_region
(
cs
->
hw
.
avm
.
hscxfifo
[
0
],
1
,
"HiSax hscx A fifo"
);
}
}
if
(
check_region
(
cs
->
hw
.
avm
.
hscx
[
1
]
+
32
,
32
))
{
if
(
!
request_region
(
cs
->
hw
.
avm
.
hscx
[
1
]
+
32
,
32
,
"HiSax hscx B"
))
{
printk
(
KERN_WARNING
printk
(
KERN_WARNING
"HiSax: %s hscx B ports %x-%x already in use
\n
"
,
"HiSax: %s hscx B ports %x-%x already in use
\n
"
,
CardType
[
cs
->
typ
],
CardType
[
cs
->
typ
],
...
@@ -256,18 +246,14 @@ setup_avm_a1(struct IsdnCard *card)
...
@@ -256,18 +246,14 @@ setup_avm_a1(struct IsdnCard *card)
cs
->
hw
.
avm
.
hscx
[
1
]
+
64
);
cs
->
hw
.
avm
.
hscx
[
1
]
+
64
);
release_ioregs
(
cs
,
0xf
);
release_ioregs
(
cs
,
0xf
);
return
(
0
);
return
(
0
);
}
else
{
request_region
(
cs
->
hw
.
avm
.
hscx
[
1
]
+
32
,
32
,
"HiSax hscx B"
);
}
}
if
(
check_region
(
cs
->
hw
.
avm
.
hscxfifo
[
1
],
1
))
{
if
(
!
request_region
(
cs
->
hw
.
avm
.
hscxfifo
[
1
],
1
,
"HiSax hscx B fifo"
))
{
printk
(
KERN_WARNING
printk
(
KERN_WARNING
"HiSax: %s hscx B fifo port %x already in use
\n
"
,
"HiSax: %s hscx B fifo port %x already in use
\n
"
,
CardType
[
cs
->
typ
],
CardType
[
cs
->
typ
],
cs
->
hw
.
avm
.
hscxfifo
[
1
]);
cs
->
hw
.
avm
.
hscxfifo
[
1
]);
release_ioregs
(
cs
,
0x1f
);
release_ioregs
(
cs
,
0x1f
);
return
(
0
);
return
(
0
);
}
else
{
request_region
(
cs
->
hw
.
avm
.
hscxfifo
[
1
],
1
,
"HiSax hscx B fifo"
);
}
}
save_flags
(
flags
);
save_flags
(
flags
);
byteout
(
cs
->
hw
.
avm
.
cfg_reg
,
0x0
);
byteout
(
cs
->
hw
.
avm
.
cfg_reg
,
0x0
);
...
...
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