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
f39b0e05
Commit
f39b0e05
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] niccy region handling cleanups
parent
4fdb04b7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
12 deletions
+7
-12
drivers/isdn/hisax/niccy.c
drivers/isdn/hisax/niccy.c
+7
-12
No files found.
drivers/isdn/hisax/niccy.c
View file @
f39b0e05
...
...
@@ -258,16 +258,15 @@ setup_niccy(struct IsdnCard *card)
cs
->
hw
.
niccy
.
cfg_reg
=
0
;
cs
->
subtyp
=
NICCY_PNP
;
cs
->
irq
=
card
->
para
[
0
];
if
(
check_region
((
cs
->
hw
.
niccy
.
isac
),
2
))
{
if
(
!
request_region
(
cs
->
hw
.
niccy
.
isac
,
2
,
"niccy data"
))
{
printk
(
KERN_WARNING
"HiSax: %s data port %x-%x already in use
\n
"
,
CardType
[
card
->
typ
],
cs
->
hw
.
niccy
.
isac
,
cs
->
hw
.
niccy
.
isac
+
1
);
return
(
0
);
}
else
request_region
(
cs
->
hw
.
niccy
.
isac
,
2
,
"niccy data"
);
if
(
check_region
((
cs
->
hw
.
niccy
.
isac_ale
),
2
))
{
}
if
(
!
request_region
(
cs
->
hw
.
niccy
.
isac_ale
,
2
,
"niccy addr"
))
{
printk
(
KERN_WARNING
"HiSax: %s address port %x-%x already in use
\n
"
,
CardType
[
card
->
typ
],
...
...
@@ -275,8 +274,7 @@ setup_niccy(struct IsdnCard *card)
cs
->
hw
.
niccy
.
isac_ale
+
1
);
release_region
(
cs
->
hw
.
niccy
.
isac
,
2
);
return
(
0
);
}
else
request_region
(
cs
->
hw
.
niccy
.
isac_ale
,
2
,
"niccy addr"
);
}
}
else
{
#if CONFIG_PCI
u_int
pci_ioaddr
;
...
...
@@ -315,16 +313,15 @@ setup_niccy(struct IsdnCard *card)
cs
->
hw
.
niccy
.
isac_ale
=
pci_ioaddr
+
ISAC_PCI_ADDR
;
cs
->
hw
.
niccy
.
hscx
=
pci_ioaddr
+
HSCX_PCI_DATA
;
cs
->
hw
.
niccy
.
hscx_ale
=
pci_ioaddr
+
HSCX_PCI_ADDR
;
if
(
check_region
((
cs
->
hw
.
niccy
.
isac
),
4
))
{
if
(
!
request_region
(
cs
->
hw
.
niccy
.
isac
,
4
,
"niccy"
))
{
printk
(
KERN_WARNING
"HiSax: %s data port %x-%x already in use
\n
"
,
CardType
[
card
->
typ
],
cs
->
hw
.
niccy
.
isac
,
cs
->
hw
.
niccy
.
isac
+
4
);
return
(
0
);
}
else
request_region
(
cs
->
hw
.
niccy
.
isac
,
4
,
"niccy"
);
if
(
check_region
(
cs
->
hw
.
niccy
.
cfg_reg
,
0x40
))
{
}
if
(
!
request_region
(
cs
->
hw
.
niccy
.
cfg_reg
,
0x40
,
"niccy pci"
))
{
printk
(
KERN_WARNING
"HiSax: %s pci port %x-%x already in use
\n
"
,
CardType
[
card
->
typ
],
...
...
@@ -332,8 +329,6 @@ setup_niccy(struct IsdnCard *card)
cs
->
hw
.
niccy
.
cfg_reg
+
0x40
);
release_region
(
cs
->
hw
.
niccy
.
isac
,
4
);
return
(
0
);
}
else
{
request_region
(
cs
->
hw
.
niccy
.
cfg_reg
,
0x40
,
"niccy pci"
);
}
#else
printk
(
KERN_WARNING
"Niccy: io0 0 and NO_PCI_BIOS
\n
"
);
...
...
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