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
79d00d1d
Commit
79d00d1d
authored
Nov 23, 2002
by
Kai Germaschewski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ISDN: Update eicon driver for removal of pcibios_*
Fairly obviously, but untested.
parent
6caf77e6
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
150 additions
and
283 deletions
+150
-283
drivers/isdn/eicon/divas.h
drivers/isdn/eicon/divas.h
+1
-2
drivers/isdn/eicon/lincfg.c
drivers/isdn/eicon/lincfg.c
+138
-267
drivers/isdn/eicon/linio.c
drivers/isdn/eicon/linio.c
+10
-12
drivers/isdn/eicon/uxio.h
drivers/isdn/eicon/uxio.h
+1
-2
No files found.
drivers/isdn/eicon/divas.h
View file @
79d00d1d
...
...
@@ -103,8 +103,7 @@ typedef struct
int
card_id
;
/* unique id assigned to this card */
int
card_type
;
/* use DIA_CARD_TYPE_xxx above */
int
bus_type
;
/* use DIA_BUS_TYPE_xxx above */
int
bus_num
;
/* bus number (instance number of bus type) */
int
func_num
;
/* adapter function number (PCI register) */
struct
pci_dev
*
pdev
;
int
slot
;
/* slot number in bus */
unsigned
char
irq
;
/* IRQ number */
int
reset_base
;
/* Reset register for I/O mapped cards */
...
...
drivers/isdn/eicon/lincfg.c
View file @
79d00d1d
This diff is collapsed.
Click to expand it.
drivers/isdn/eicon/linio.c
View file @
79d00d1d
...
...
@@ -13,6 +13,7 @@
#include <linux/config.h>
#include <linux/init.h>
#include <linux/kernel.h>
#include <linux/interrupt.h>
#include <linux/smp_lock.h>
#include <asm/io.h>
#include <asm/system.h>
...
...
@@ -67,8 +68,7 @@ int UxCardHandleGet(ux_diva_card_t **card, dia_card_t *cfg)
switch
(
cfg
->
bus_type
)
{
case
DIA_BUS_TYPE_PCI
:
c
->
bus_num
=
cfg
->
bus_num
;
c
->
func_num
=
cfg
->
func_num
;
c
->
pdev
=
cfg
->
pdev
;
c
->
io_base
=
cfg
->
io_base
;
c
->
reset_base
=
cfg
->
reset_base
;
c
->
card_type
=
cfg
->
card_type
;
...
...
@@ -625,16 +625,15 @@ void UxIsrRemove(ux_diva_card_t *card, void *dev_id)
void
UxPciConfigWrite
(
ux_diva_card_t
*
card
,
int
size
,
int
offset
,
void
*
value
)
{
switch
(
size
)
{
switch
(
size
)
{
case
sizeof
(
byte
):
pci
bios_write_config_byte
(
card
->
bus_num
,
card
->
func_num
,
offset
,
*
(
byte
*
)
value
);
pci
_write_config_byte
(
card
->
pdev
,
offset
,
*
(
byte
*
)
value
);
break
;
case
sizeof
(
word
):
pci
bios_write_config_word
(
card
->
bus_num
,
card
->
func_num
,
offset
,
*
(
word
*
)
value
);
pci
_write_config_word
(
card
->
pdev
,
offset
,
*
(
word
*
)
value
);
break
;
case
sizeof
(
dword
):
pci
bios_write_config_dword
(
card
->
bus_num
,
card
->
func_num
,
offset
,
*
(
dword
*
)
value
);
pci
_write_config_dword
(
card
->
pdev
,
offset
,
*
(
dword
*
)
value
);
break
;
default:
printk
(
KERN_WARNING
"Divas: Invalid size in UxPciConfigWrite
\n
"
);
...
...
@@ -643,16 +642,15 @@ void UxPciConfigWrite(ux_diva_card_t *card, int size, int offset, void *value)
void
UxPciConfigRead
(
ux_diva_card_t
*
card
,
int
size
,
int
offset
,
void
*
value
)
{
switch
(
size
)
{
switch
(
size
)
{
case
sizeof
(
byte
):
pci
bios_read_config_byte
(
card
->
bus_num
,
card
->
func_num
,
offset
,
(
byte
*
)
value
);
pci
_read_config_byte
(
card
->
pdev
,
offset
,
(
byte
*
)
value
);
break
;
case
sizeof
(
word
):
pci
bios_read_config_word
(
card
->
bus_num
,
card
->
func_num
,
offset
,
(
word
*
)
value
);
pci
_read_config_word
(
card
->
pdev
,
offset
,
(
word
*
)
value
);
break
;
case
sizeof
(
dword
):
pci
bios_read_config_dword
(
card
->
bus_num
,
card
->
func_num
,
offset
,
(
unsigned
int
*
)
value
);
pci
_read_config_dword
(
card
->
pdev
,
offset
,
(
unsigned
int
*
)
value
);
break
;
default:
printk
(
KERN_WARNING
"Divas: Invalid size in UxPciConfigRead
\n
"
);
...
...
drivers/isdn/eicon/uxio.h
View file @
79d00d1d
...
...
@@ -28,8 +28,7 @@ struct ux_diva_card_s
int
reset_base
;
int
card_type
;
byte
*
mapped
;
int
bus_num
;
int
func_num
;
struct
pci_dev
*
pdev
;
int
slot
;
int
irq
;
byte
*
pDRAM
;
...
...
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