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
Kirill Smelkov
linux
Commits
2fb1225e
Commit
2fb1225e
authored
Nov 19, 2002
by
Greg Kroah-Hartman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ISDN: Convert usages of pcibios_* functions to pci_*
parent
175ceea9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
15 deletions
+8
-15
drivers/isdn/hisax/bkm_a8.c
drivers/isdn/hisax/bkm_a8.c
+8
-15
No files found.
drivers/isdn/hisax/bkm_a8.c
View file @
2fb1225e
...
...
@@ -278,8 +278,6 @@ sct_alloc_io(u_int adr, u_int len)
static
struct
pci_dev
*
dev_a8
__initdata
=
NULL
;
static
u16
sub_vendor_id
__initdata
=
0
;
static
u16
sub_sys_id
__initdata
=
0
;
static
u_char
pci_bus
__initdata
=
0
;
static
u_char
pci_device_fn
__initdata
=
0
;
static
u_char
pci_irq
__initdata
=
0
;
#endif
/* CONFIG_PCI */
...
...
@@ -328,8 +326,6 @@ setup_sct_quadro(struct IsdnCard *card)
return
(
0
);
pci_ioaddr1
=
pci_resource_start
(
dev_a8
,
1
);
pci_irq
=
dev_a8
->
irq
;
pci_bus
=
dev_a8
->
bus
->
number
;
pci_device_fn
=
dev_a8
->
devfn
;
found
=
1
;
break
;
}
...
...
@@ -342,20 +338,17 @@ setup_sct_quadro(struct IsdnCard *card)
}
#ifdef ATTEMPT_PCI_REMAPPING
/* HACK: PLX revision 1 bug: PLX address bit 7 must not be set */
pcibios_read_config_byte
(
pci_bus
,
pci_device_fn
,
PCI_REVISION_ID
,
&
pci_rev_id
);
pci_read_config_byte
(
dev_a8
,
PCI_REVISION_ID
,
&
pci_rev_id
);
if
((
pci_ioaddr1
&
0x80
)
&&
(
pci_rev_id
==
1
))
{
printk
(
KERN_WARNING
"HiSax: %s (%s): PLX rev 1, remapping required!
\n
"
,
CardType
[
card
->
typ
],
sct_quadro_subtypes
[
cs
->
subtyp
]);
/* Restart PCI negotiation */
pcibios_write_config_dword
(
pci_bus
,
pci_device_fn
,
PCI_BASE_ADDRESS_1
,
(
u_int
)
-
1
);
pci_write_config_dword
(
dev_a8
,
PCI_BASE_ADDRESS_1
,
(
u_int
)
-
1
);
/* Move up by 0x80 byte */
pci_ioaddr1
+=
0x80
;
pci_ioaddr1
&=
PCI_BASE_ADDRESS_IO_MASK
;
pcibios_write_config_dword
(
pci_bus
,
pci_device_fn
,
PCI_BASE_ADDRESS_1
,
pci_ioaddr1
);
pci_write_config_dword
(
dev_a8
,
PCI_BASE_ADDRESS_1
,
pci_ioaddr1
);
dev_a8
->
resource
[
1
].
start
=
pci_ioaddr1
;
}
#endif
/* End HACK */
...
...
@@ -366,11 +359,11 @@ setup_sct_quadro(struct IsdnCard *card)
sct_quadro_subtypes
[
cs
->
subtyp
]);
return
(
0
);
}
pci
bios_read_config_dword
(
pci_bus
,
pci_device_fn
,
PCI_BASE_ADDRESS_1
,
&
pci_ioaddr1
);
pci
bios_read_config_dword
(
pci_bus
,
pci_device_fn
,
PCI_BASE_ADDRESS_2
,
&
pci_ioaddr2
);
pci
bios_read_config_dword
(
pci_bus
,
pci_device_fn
,
PCI_BASE_ADDRESS_3
,
&
pci_ioaddr3
);
pci
bios_read_config_dword
(
pci_bus
,
pci_device_fn
,
PCI_BASE_ADDRESS_4
,
&
pci_ioaddr4
);
pci
bios_read_config_dword
(
pci_bus
,
pci_device_fn
,
PCI_BASE_ADDRESS_5
,
&
pci_ioaddr5
);
pci
_read_config_dword
(
dev_a8
,
PCI_BASE_ADDRESS_1
,
&
pci_ioaddr1
);
pci
_read_config_dword
(
dev_a8
,
PCI_BASE_ADDRESS_2
,
&
pci_ioaddr2
);
pci
_read_config_dword
(
dev_a8
,
PCI_BASE_ADDRESS_3
,
&
pci_ioaddr3
);
pci
_read_config_dword
(
dev_a8
,
PCI_BASE_ADDRESS_4
,
&
pci_ioaddr4
);
pci
_read_config_dword
(
dev_a8
,
PCI_BASE_ADDRESS_5
,
&
pci_ioaddr5
);
if
(
!
pci_ioaddr1
||
!
pci_ioaddr2
||
!
pci_ioaddr3
||
!
pci_ioaddr4
||
!
pci_ioaddr5
)
{
printk
(
KERN_WARNING
"HiSax: %s (%s): No IO base address(es)
\n
"
,
CardType
[
card
->
typ
],
...
...
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