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
ff7182ec
Commit
ff7182ec
authored
Oct 06, 2002
by
Kai Germaschewski
Browse files
Options
Browse Files
Download
Plain Diff
ISDN: Hand merged.
parents
994b6e06
04d72911
Changes
15
Hide whitespace changes
Inline
Side-by-side
Showing
15 changed files
with
56 additions
and
56 deletions
+56
-56
drivers/isdn/eicon/Divas_mod.c
drivers/isdn/eicon/Divas_mod.c
+5
-1
drivers/isdn/eicon/adapter.h
drivers/isdn/eicon/adapter.h
+1
-2
drivers/isdn/eicon/common.c
drivers/isdn/eicon/common.c
+1
-6
drivers/isdn/eicon/eicon.h
drivers/isdn/eicon/eicon.h
+7
-7
drivers/isdn/eicon/eicon_dsp.h
drivers/isdn/eicon/eicon_dsp.h
+1
-1
drivers/isdn/eicon/eicon_idi.c
drivers/isdn/eicon/eicon_idi.c
+2
-2
drivers/isdn/eicon/eicon_idi.h
drivers/isdn/eicon/eicon_idi.h
+1
-1
drivers/isdn/eicon/eicon_io.c
drivers/isdn/eicon/eicon_io.c
+1
-1
drivers/isdn/eicon/eicon_isa.c
drivers/isdn/eicon/eicon_isa.c
+2
-2
drivers/isdn/eicon/eicon_isa.h
drivers/isdn/eicon/eicon_isa.h
+1
-1
drivers/isdn/eicon/eicon_mod.c
drivers/isdn/eicon/eicon_mod.c
+15
-12
drivers/isdn/eicon/eicon_pci.c
drivers/isdn/eicon/eicon_pci.c
+2
-2
drivers/isdn/eicon/eicon_pci.h
drivers/isdn/eicon/eicon_pci.h
+1
-1
drivers/isdn/eicon/linio.c
drivers/isdn/eicon/linio.c
+7
-9
drivers/isdn/eicon/linsys.c
drivers/isdn/eicon/linsys.c
+9
-8
No files found.
drivers/isdn/eicon/Divas_mod.c
View file @
ff7182ec
...
@@ -10,7 +10,7 @@
...
@@ -10,7 +10,7 @@
#undef N_DATA
#undef N_DATA
#include <linux/kernel.h>
#include <linux/kernel.h>
#include <linux/tqueue.h>
#include <linux/module.h>
#include <linux/module.h>
#include <linux/pci.h>
#include <linux/pci.h>
#include <linux/ioport.h>
#include <linux/ioport.h>
...
@@ -25,6 +25,8 @@ MODULE_DESCRIPTION("ISDN4Linux: Driver for Eicon Diva Server cards");
...
@@ -25,6 +25,8 @@ MODULE_DESCRIPTION("ISDN4Linux: Driver for Eicon Diva Server cards");
MODULE_AUTHOR
(
"Armin Schindler"
);
MODULE_AUTHOR
(
"Armin Schindler"
);
MODULE_LICENSE
(
"GPL"
);
MODULE_LICENSE
(
"GPL"
);
void
DivasInitDpc
(
void
);
#ifdef MODULE
#ifdef MODULE
#include "idi.h"
#include "idi.h"
void
DIVA_DIDD_Write
(
DESCRIPTOR
*
,
int
);
void
DIVA_DIDD_Write
(
DESCRIPTOR
*
,
int
);
...
@@ -47,6 +49,8 @@ divas_init(void)
...
@@ -47,6 +49,8 @@ divas_init(void)
return
-
ENODEV
;
return
-
ENODEV
;
#endif
#endif
DivasInitDpc
();
if
(
pci_present
())
if
(
pci_present
())
{
{
if
(
DivasCardsDiscover
()
<
0
)
if
(
DivasCardsDiscover
()
<
0
)
...
...
drivers/isdn/eicon/adapter.h
View file @
ff7182ec
...
@@ -176,8 +176,7 @@ extern void DivasLogAdd(void *buffer, int length);
...
@@ -176,8 +176,7 @@ extern void DivasLogAdd(void *buffer, int length);
/*------------------------------------------------------------------*/
/*------------------------------------------------------------------*/
int
DivasDpcSchedule
(
void
);
int
DivasDpcSchedule
(
void
);
void
DivasDoDpc
(
void
*
);
void
DivasDoDpc
(
unsigned
long
);
void
DivasDoRequestDpc
(
void
*
pData
);
int
DivasScheduleRequestDpc
(
void
);
int
DivasScheduleRequestDpc
(
void
);
/* table of IDI request functions */
/* table of IDI request functions */
...
...
drivers/isdn/eicon/common.c
View file @
ff7182ec
...
@@ -801,7 +801,7 @@ void DivaDoCardDpc(card_t *card)
...
@@ -801,7 +801,7 @@ void DivaDoCardDpc(card_t *card)
}
}
void
DivasDoDpc
(
void
*
pData
)
void
DivasDoDpc
(
unsigned
long
dummy
)
{
{
card_t
*
card
=
DivasCards
;
card_t
*
card
=
DivasCards
;
int
i
=
DivasCardNext
;
int
i
=
DivasCardNext
;
...
@@ -814,11 +814,6 @@ void DivasDoDpc(void *pData)
...
@@ -814,11 +814,6 @@ void DivasDoDpc(void *pData)
}
}
}
}
void
DivasDoRequestDpc
(
void
*
pData
)
{
DivasDoDpc
(
pData
);
}
/*
/*
* DivasGetNum
* DivasGetNum
* Returns the number of active adapters
* Returns the number of active adapters
...
...
drivers/isdn/eicon/eicon.h
View file @
ff7182ec
/* $Id: eicon.h,v 1.
23.6.5 2001/09/23 22:24:37 kai
Exp $
/* $Id: eicon.h,v 1.
1.4.1.2.3 2002/10/01 11:29:13 armin
Exp $
*
*
* ISDN low-level module for Eicon active ISDN-Cards.
* ISDN low-level module for Eicon active ISDN-Cards.
*
*
...
@@ -321,9 +321,9 @@ typedef struct eicon_card {
...
@@ -321,9 +321,9 @@ typedef struct eicon_card {
struct
sk_buff_head
sackq
;
/* Data-Ack-Message queue */
struct
sk_buff_head
sackq
;
/* Data-Ack-Message queue */
struct
sk_buff_head
statq
;
/* Status-Message queue */
struct
sk_buff_head
statq
;
/* Status-Message queue */
int
statq_entries
;
int
statq_entries
;
struct
work_struct
snd_tq
;
/* Task struct for xmit bh */
struct
tasklet_struct
snd_tq
;
/* Task struct for xmit bh */
struct
work_struct
rcv_tq
;
/* Task struct for rcv bh */
struct
tasklet_struct
rcv_tq
;
/* Task struct for rcv bh */
struct
work_struct
ack_tq
;
/* Task struct for ack bh */
struct
tasklet_struct
ack_tq
;
/* Task struct for ack bh */
eicon_chan
*
IdTable
[
256
];
/* Table to find entity */
eicon_chan
*
IdTable
[
256
];
/* Table to find entity */
__u16
ref_in
;
__u16
ref_in
;
__u16
ref_out
;
__u16
ref_out
;
...
@@ -349,17 +349,17 @@ extern char *eicon_ctype_name[];
...
@@ -349,17 +349,17 @@ extern char *eicon_ctype_name[];
extern
__inline__
void
eicon_schedule_tx
(
eicon_card
*
card
)
extern
__inline__
void
eicon_schedule_tx
(
eicon_card
*
card
)
{
{
schedule_work
(
&
card
->
snd_tq
);
tasklet_schedule
(
&
card
->
snd_tq
);
}
}
extern
__inline__
void
eicon_schedule_rx
(
eicon_card
*
card
)
extern
__inline__
void
eicon_schedule_rx
(
eicon_card
*
card
)
{
{
schedule_work
(
&
card
->
rcv_tq
);
tasklet_schedule
(
&
card
->
rcv_tq
);
}
}
extern
__inline__
void
eicon_schedule_ack
(
eicon_card
*
card
)
extern
__inline__
void
eicon_schedule_ack
(
eicon_card
*
card
)
{
{
schedule_work
(
&
card
->
ack_tq
);
tasklet_schedule
(
&
card
->
ack_tq
);
}
}
extern
int
eicon_addcard
(
int
,
int
,
int
,
char
*
,
int
);
extern
int
eicon_addcard
(
int
,
int
,
int
,
char
*
,
int
);
...
...
drivers/isdn/eicon/eicon_dsp.h
View file @
ff7182ec
/* $Id: eicon_dsp.h,v 1.
7.6.1 2001/09/23 22:24:37 kai
Exp $
/* $Id: eicon_dsp.h,v 1.
1.4.1.2.2 2002/10/01 11:29:13 armin
Exp $
*
*
* ISDN lowlevel-module for Eicon active cards.
* ISDN lowlevel-module for Eicon active cards.
* DSP definitions
* DSP definitions
...
...
drivers/isdn/eicon/eicon_idi.c
View file @
ff7182ec
/* $Id: eicon_idi.c,v 1.
41.6.4 2001/11/06 20:58:29 kai
Exp $
/* $Id: eicon_idi.c,v 1.
1.4.1.2.4 2002/10/01 11:29:13 armin
Exp $
*
*
* ISDN lowlevel-module for Eicon active cards.
* ISDN lowlevel-module for Eicon active cards.
* IDI interface
* IDI interface
...
@@ -24,7 +24,7 @@
...
@@ -24,7 +24,7 @@
#undef EICON_FULL_SERVICE_OKTETT
#undef EICON_FULL_SERVICE_OKTETT
char
*
eicon_idi_revision
=
"$Revision: 1.
41.6
.4 $"
;
char
*
eicon_idi_revision
=
"$Revision: 1.
1.4.1.2
.4 $"
;
eicon_manifbuf
*
manbuf
;
eicon_manifbuf
*
manbuf
;
...
...
drivers/isdn/eicon/eicon_idi.h
View file @
ff7182ec
/* $Id: eicon_idi.h,v 1.1
1.6.1 2001/09/23 22:24:37 kai
Exp $
/* $Id: eicon_idi.h,v 1.1
.4.1.2.2 2002/10/01 11:29:13 armin
Exp $
*
*
* ISDN lowlevel-module for the Eicon active cards.
* ISDN lowlevel-module for the Eicon active cards.
* IDI-Interface
* IDI-Interface
...
...
drivers/isdn/eicon/eicon_io.c
View file @
ff7182ec
/* $Id: eicon_io.c,v 1.1
3.6.2 2001/09/23 22:24:37 kai
Exp $
/* $Id: eicon_io.c,v 1.1
.4.1.2.2 2002/10/01 11:29:13 armin
Exp $
*
*
* ISDN low-level module for Eicon active ISDN-Cards.
* ISDN low-level module for Eicon active ISDN-Cards.
* Code for communicating with hardware.
* Code for communicating with hardware.
...
...
drivers/isdn/eicon/eicon_isa.c
View file @
ff7182ec
/* $Id: eicon_isa.c,v 1.1
6.6.2 2001/11/06 20:58:29 kai
Exp $
/* $Id: eicon_isa.c,v 1.1
.4.1.2.3 2002/10/01 11:29:13 armin
Exp $
*
*
* ISDN low-level module for Eicon active ISDN-Cards.
* ISDN low-level module for Eicon active ISDN-Cards.
* Hardware-specific code for old ISA cards.
* Hardware-specific code for old ISA cards.
...
@@ -20,7 +20,7 @@
...
@@ -20,7 +20,7 @@
#define release_shmem release_region
#define release_shmem release_region
#define request_shmem request_region
#define request_shmem request_region
char
*
eicon_isa_revision
=
"$Revision: 1.1
6.6.2
$"
;
char
*
eicon_isa_revision
=
"$Revision: 1.1
.4.1.2.3
$"
;
#undef EICON_MCA_DEBUG
#undef EICON_MCA_DEBUG
...
...
drivers/isdn/eicon/eicon_isa.h
View file @
ff7182ec
/* $Id: eicon_isa.h,v 1.1
0.6.1 2001/09/23 22:24:37 kai
Exp $
/* $Id: eicon_isa.h,v 1.1
.4.1.2.2 2002/10/01 11:29:13 armin
Exp $
*
*
* ISDN low-level module for Eicon active ISDN-Cards.
* ISDN low-level module for Eicon active ISDN-Cards.
*
*
...
...
drivers/isdn/eicon/eicon_mod.c
View file @
ff7182ec
/* $Id: eicon_mod.c,v 1.
37.6.6 2001/09/23 22:24:37 kai
Exp $
/* $Id: eicon_mod.c,v 1.
1.4.1.2.4 2002/10/01 11:29:13 armin
Exp $
*
*
* ISDN lowlevel-module for Eicon active cards.
* ISDN lowlevel-module for Eicon active cards.
*
*
...
@@ -44,7 +44,7 @@
...
@@ -44,7 +44,7 @@
static
eicon_card
*
cards
=
(
eicon_card
*
)
NULL
;
/* glob. var , contains
static
eicon_card
*
cards
=
(
eicon_card
*
)
NULL
;
/* glob. var , contains
start of card-list */
start of card-list */
static
char
*
eicon_revision
=
"$Revision: 1.
37.6.6
$"
;
static
char
*
eicon_revision
=
"$Revision: 1.
1.4.1.2.4
$"
;
extern
char
*
eicon_pci_revision
;
extern
char
*
eicon_pci_revision
;
extern
char
*
eicon_isa_revision
;
extern
char
*
eicon_isa_revision
;
...
@@ -142,8 +142,10 @@ eicon_findnpcicard(int driverid)
...
@@ -142,8 +142,10 @@ eicon_findnpcicard(int driverid)
#endif
/* CONFIG_PCI */
#endif
/* CONFIG_PCI */
static
void
static
void
eicon_rcv_dispatch
(
struct
eicon_card
*
card
)
eicon_rcv_dispatch
(
unsigned
long
context
)
{
{
struct
eicon_card
*
card
=
(
struct
eicon_card
*
)
context
;
switch
(
card
->
bus
)
{
switch
(
card
->
bus
)
{
case
EICON_BUS_ISA
:
case
EICON_BUS_ISA
:
case
EICON_BUS_MCA
:
case
EICON_BUS_MCA
:
...
@@ -152,13 +154,15 @@ eicon_rcv_dispatch(struct eicon_card *card)
...
@@ -152,13 +154,15 @@ eicon_rcv_dispatch(struct eicon_card *card)
break
;
break
;
default:
default:
eicon_log
(
card
,
1
,
eicon_log
(
card
,
1
,
"eicon_
ack
_dispatch: Illegal bustype %d
\n
"
,
card
->
bus
);
"eicon_
rcv
_dispatch: Illegal bustype %d
\n
"
,
card
->
bus
);
}
}
}
}
static
void
static
void
eicon_ack_dispatch
(
struct
eicon_card
*
card
)
eicon_ack_dispatch
(
unsigned
long
context
)
{
{
struct
eicon_card
*
card
=
(
struct
eicon_card
*
)
context
;
switch
(
card
->
bus
)
{
switch
(
card
->
bus
)
{
case
EICON_BUS_ISA
:
case
EICON_BUS_ISA
:
case
EICON_BUS_MCA
:
case
EICON_BUS_MCA
:
...
@@ -172,8 +176,10 @@ eicon_ack_dispatch(struct eicon_card *card)
...
@@ -172,8 +176,10 @@ eicon_ack_dispatch(struct eicon_card *card)
}
}
static
void
static
void
eicon_transmit
(
struct
eicon_card
*
card
)
eicon_transmit
(
unsigned
long
context
)
{
{
struct
eicon_card
*
card
=
(
struct
eicon_card
*
)
context
;
switch
(
card
->
bus
)
{
switch
(
card
->
bus
)
{
case
EICON_BUS_ISA
:
case
EICON_BUS_ISA
:
case
EICON_BUS_MCA
:
case
EICON_BUS_MCA
:
...
@@ -868,12 +874,9 @@ eicon_alloccard(int Type, int membase, int irq, char *id, int card_id)
...
@@ -868,12 +874,9 @@ eicon_alloccard(int Type, int membase, int irq, char *id, int card_id)
skb_queue_head_init
(
&
card
->
sackq
);
skb_queue_head_init
(
&
card
->
sackq
);
skb_queue_head_init
(
&
card
->
statq
);
skb_queue_head_init
(
&
card
->
statq
);
card
->
statq_entries
=
0
;
card
->
statq_entries
=
0
;
card
->
snd_tq
.
routine
=
(
void
*
)
(
void
*
)
eicon_transmit
;
tasklet_init
(
&
card
->
snd_tq
,
eicon_transmit
,
(
unsigned
long
)
card
);
card
->
snd_tq
.
data
=
card
;
tasklet_init
(
&
card
->
rcv_tq
,
eicon_rcv_dispatch
,
(
unsigned
long
)
card
);
card
->
rcv_tq
.
routine
=
(
void
*
)
(
void
*
)
eicon_rcv_dispatch
;
tasklet_init
(
&
card
->
ack_tq
,
eicon_ack_dispatch
,
(
unsigned
long
)
card
);
card
->
rcv_tq
.
data
=
card
;
card
->
ack_tq
.
routine
=
(
void
*
)
(
void
*
)
eicon_ack_dispatch
;
card
->
ack_tq
.
data
=
card
;
card
->
interface
.
maxbufsize
=
4000
;
card
->
interface
.
maxbufsize
=
4000
;
card
->
interface
.
command
=
if_command
;
card
->
interface
.
command
=
if_command
;
card
->
interface
.
writebuf_skb
=
if_sendbuf
;
card
->
interface
.
writebuf_skb
=
if_sendbuf
;
...
...
drivers/isdn/eicon/eicon_pci.c
View file @
ff7182ec
/* $Id: eicon_pci.c,v 1.1
5.6.3 2001/09/23 22:24:37 kai
Exp $
/* $Id: eicon_pci.c,v 1.1
.4.1.2.3 2002/10/01 11:29:13 armin
Exp $
*
*
* ISDN low-level module for Eicon active ISDN-Cards.
* ISDN low-level module for Eicon active ISDN-Cards.
* Hardware-specific code for PCI cards.
* Hardware-specific code for PCI cards.
...
@@ -24,7 +24,7 @@
...
@@ -24,7 +24,7 @@
#include "adapter.h"
#include "adapter.h"
#include "uxio.h"
#include "uxio.h"
char
*
eicon_pci_revision
=
"$Revision: 1.1
5.6
.3 $"
;
char
*
eicon_pci_revision
=
"$Revision: 1.1
.4.1.2
.3 $"
;
#if CONFIG_PCI
/* intire stuff is only for PCI */
#if CONFIG_PCI
/* intire stuff is only for PCI */
#ifdef CONFIG_ISDN_DRV_EICON_PCI
#ifdef CONFIG_ISDN_DRV_EICON_PCI
...
...
drivers/isdn/eicon/eicon_pci.h
View file @
ff7182ec
/* $Id: eicon_pci.h,v 1.
6.6.1 2001/09/23 22:24:37 kai
Exp $
/* $Id: eicon_pci.h,v 1.
1.4.1.2.2 2002/10/01 11:29:13 armin
Exp $
*
*
* ISDN low-level module for Eicon active ISDN-Cards (PCI part).
* ISDN low-level module for Eicon active ISDN-Cards (PCI part).
*
*
...
...
drivers/isdn/eicon/linio.c
View file @
ff7182ec
...
@@ -10,6 +10,10 @@
...
@@ -10,6 +10,10 @@
#define N_DATA
#define N_DATA
#include <linux/config.h>
#include <linux/init.h>
#include <linux/kernel.h>
#include <linux/smp_lock.h>
#include <asm/io.h>
#include <asm/io.h>
#include <asm/system.h>
#include <asm/system.h>
#include <linux/slab.h>
#include <linux/slab.h>
...
@@ -24,7 +28,7 @@ int log_on=0;
...
@@ -24,7 +28,7 @@ int log_on=0;
int
Divasdevflag
=
0
;
int
Divasdevflag
=
0
;
//
spinlock_t diva_lock = SPIN_LOCK_UNLOCKED;
spinlock_t
diva_lock
=
SPIN_LOCK_UNLOCKED
;
static
static
ux_diva_card_t
card_pool
[
MAX_CARDS
];
ux_diva_card_t
card_pool
[
MAX_CARDS
];
...
@@ -673,20 +677,14 @@ long UxCardLock(ux_diva_card_t *card)
...
@@ -673,20 +677,14 @@ long UxCardLock(ux_diva_card_t *card)
{
{
unsigned
long
flags
;
unsigned
long
flags
;
//
spin_lock_irqsave(&diva_lock, flags);
spin_lock_irqsave
(
&
diva_lock
,
flags
);
save_flags
(
flags
);
cli
();
return
flags
;
return
flags
;
}
}
void
UxCardUnlock
(
ux_diva_card_t
*
card
,
long
ipl
)
void
UxCardUnlock
(
ux_diva_card_t
*
card
,
long
ipl
)
{
{
//spin_unlock_irqrestore(&diva_lock, ipl);
spin_unlock_irqrestore
(
&
diva_lock
,
ipl
);
restore_flags
(
ipl
);
}
}
dword
UxTimeGet
(
void
)
dword
UxTimeGet
(
void
)
...
...
drivers/isdn/eicon/linsys.c
View file @
ff7182ec
...
@@ -24,6 +24,8 @@ struct pt_regs;
...
@@ -24,6 +24,8 @@ struct pt_regs;
#include "uxio.h"
#include "uxio.h"
static
struct
tasklet_struct
DivasTask
;
int
Divas4BRIInitPCI
(
card_t
*
card
,
dia_card_t
*
cfg
)
int
Divas4BRIInitPCI
(
card_t
*
card
,
dia_card_t
*
cfg
)
{
{
/* Use UxPciConfigWrite routines to initialise PCI config space */
/* Use UxPciConfigWrite routines to initialise PCI config space */
...
@@ -79,24 +81,23 @@ int DivasBRIInitPCI(card_t *card, dia_card_t *cfg)
...
@@ -79,24 +81,23 @@ int DivasBRIInitPCI(card_t *card, dia_card_t *cfg)
int
DivasDpcSchedule
(
void
)
int
DivasDpcSchedule
(
void
)
{
{
static
struct
work_struct
DivasTask
;
tasklet_schedule
(
&
DivasTask
);
INIT_WORK
(
&
DivasTask
,
DivasDoDpc
,
NULL
);
schedule_work
(
&
DivasTask
);
return
0
;
return
0
;
}
}
int
DivasScheduleRequestDpc
(
void
)
int
DivasScheduleRequestDpc
(
void
)
{
{
static
struct
work_struct
DivasTask
;
tasklet_schedule
(
&
DivasTask
);
INIT_WORK
(
&
DivasTask
,
DivasDoRequestDpc
,
NULL
);
schedule_work
(
&
DivasTask
);
return
0
;
return
0
;
}
}
void
DivasInitDpc
(
void
)
{
tasklet_init
(
&
DivasTask
,
DivasDoDpc
,
0
);
}
void
DivasLogAdd
(
void
*
buffer
,
int
length
)
void
DivasLogAdd
(
void
*
buffer
,
int
length
)
{
{
static
static
...
...
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