First changes to compile utils without /usr/src/linux/drivers/isdn

capiconn
Karsten Keil 2002-07-19 19:03:58 +00:00
parent ac13d33d5c
commit 6bebcfad40
53 changed files with 39927 additions and 13414 deletions

View File

@ -5,7 +5,7 @@
.EXPORT_ALL_VARIABLES:
export I4LVERSION = 3.1
export I4LVERSION = 3.2p1
all: do-it-all

View File

@ -6,7 +6,7 @@
#
SHELL = /bin/sh
CFLAGS = -Wall -O2
INCLUDES = -I. -I@CONFIG_KERNELDIR@/include -I@CONFIG_KERNELDIR@/drivers/isdn/act2000
INCLUDES = -I.
DEFS =
LDFLAGS = -L../lib @LIBS@
PROGRAM = actctrl

1
act2000/aclocal.m4 vendored
View File

@ -1 +0,0 @@
sinclude(../etc/ackernel.m4)dnl

60
act2000/act2000.h Normal file
View File

@ -0,0 +1,60 @@
/* API only version generated from kernel drivers/isdn/act2000/act2000.h */
/* $Id$
*
* ISDN lowlevel-module for the IBM ISDN-S0 Active 2000.
*
* Author Fritz Elfert
* Copyright by Fritz Elfert <fritz@isdn4linux.de>
*
* This software may be used and distributed according to the terms
* of the GNU General Public License, incorporated herein by reference.
*
* Thanks to Friedemann Baitinger and IBM Germany
*
*/
#ifndef act2000_h
#define act2000_h
#define ACT2000_IOCTL_SETPORT 1
#define ACT2000_IOCTL_GETPORT 2
#define ACT2000_IOCTL_SETIRQ 3
#define ACT2000_IOCTL_GETIRQ 4
#define ACT2000_IOCTL_SETBUS 5
#define ACT2000_IOCTL_GETBUS 6
#define ACT2000_IOCTL_SETPROTO 7
#define ACT2000_IOCTL_GETPROTO 8
#define ACT2000_IOCTL_SETMSN 9
#define ACT2000_IOCTL_GETMSN 10
#define ACT2000_IOCTL_LOADBOOT 11
#define ACT2000_IOCTL_ADDCARD 12
#define ACT2000_IOCTL_TEST 98
#define ACT2000_IOCTL_DEBUGVAR 99
#define ACT2000_BUS_ISA 1
#define ACT2000_BUS_MCA 2
#define ACT2000_BUS_PCMCIA 3
/* Struct for adding new cards */
typedef struct act2000_cdef {
int bus;
int port;
int irq;
char id[10];
} act2000_cdef;
/* Struct for downloading firmware */
typedef struct act2000_ddef {
int length; /* Length of code */
char *buffer; /* Ptr. to code */
} act2000_ddef;
typedef struct act2000_fwid {
char isdn[4];
char revlen[2];
char revision[504];
} act2000_fwid;
#endif /* act2000_h */

4140
act2000/configure vendored

File diff suppressed because it is too large Load Diff

View File

@ -7,7 +7,6 @@ I4LVERSION=${I4LVERSION:-"?.?"}
CONFIG_DATADIR=${CONFIG_DATADIR:-"/usr/lib/isdn"}
CONFIG_MANDIR=`eval echo ${CONFIG_MANDIR:-"/usr/man"}`
CONFIG_SBINDIR=`eval echo ${CONFIG_SBINDIR:-"/sbin"}`
CONFIG_KERNELDIR=`eval echo ${CONFIG_KERNELDIR:-"/usr/src/linux"}`
MANDATE=`grep CHECKIN actctrl.man.in | awk '{print $4}'`
dnl Checks for programs.
@ -20,12 +19,6 @@ dnl Checks for header files.
AC_HEADER_STDC
AC_CHECK_HEADERS(fcntl.h sys/ioctl.h unistd.h)
dnl Find current kernel source
AC_FIND_KERNEL
AC_CHECK_HEADERS($CONFIG_KERNELDIR/drivers/isdn/act2000/act2000.h,,
[AC_MSG_ERROR([Not found. You MUST specify a correct path to linux source!])]
)
dnl Checks for typedefs, structures, and compiler characteristics.
dnl Checks for library functions.

View File

@ -5,9 +5,9 @@
#
#
SHELL = /bin/sh
CFLAGS = -Wall -O2 -I.
CFLAGS = -Wall -O2
LDFLAGS = -L../lib @LIBS@
INCLUDES = -I@CONFIG_KERNELDIR@/include
INCLUDES = -I.
PROGRAMS = avmcapictrl
MODULES = avmcapictrl.o
MANPAGES = avmcapictrl.8

1
avmb1/aclocal.m4 vendored
View File

@ -1 +0,0 @@
sinclude(../etc/ackernel.m4)dnl

3864
avmb1/configure vendored

File diff suppressed because it is too large Load Diff

View File

@ -11,7 +11,6 @@ I4LVERSION=${I4LVERSION:-"?.?"}
CONFIG_DATADIR=${CONFIG_DATADIR:-"/usr/lib/isdn"}
CONFIG_MANDIR=`eval echo ${CONFIG_MANDIR:-"/usr/man"}`
CONFIG_SBINDIR=`eval echo ${CONFIG_SBINDIR:-"/sbin"}`
CONFIG_KERNELDIR=`eval echo ${CONFIG_KERNELDIR:-"/usr/src/linux"}`
MANDATE=`grep CHECKIN avmcapictrl.man.in | awk '{print $4}'`
dnl Checks for libraries.
@ -19,13 +18,6 @@ dnl Checks for libraries.
dnl Checks for header files.
AC_HEADER_STDC
AC_CHECK_HEADERS(fcntl.h sys/ioctl.h unistd.h)
dnl Check for kernel stuff
AC_FIND_KERNEL
OLD_CPPFLAGS="$CPPFLAGS"
CPPFLAGS="-I$CONFIG_KERNELDIR/include $CPPFLAGS"
AC_CHECK_HEADERS(linux/isdn.h linux/b1lli.h linux/capi.h linux/kernelcapi.h,,
[AC_MSG_ERROR([Missing $ac_hdr. Kernel source installed?])])
CPPFLAGS="$OLD_CPPFLAGS"
dnl Checks for typedefs, structures, and compiler characteristics.
@ -60,5 +52,4 @@ AC_SUBST(I4LVERSION)
AC_SUBST(CONFIG_SBINDIR)
AC_SUBST(CONFIG_DATADIR)
AC_SUBST(CONFIG_MANDIR)
AC_SUBST(CONFIG_KERNELDIR)
AC_OUTPUT(Makefile avmcapictrl.man)

View File

@ -6,7 +6,7 @@
#
SHELL = /bin/sh
CFLAGS = -Wall -O2
INCLUDES = -I. -I@CONFIG_KERNELDIR@/include
INCLUDES = -I.
DEFS =
LDFLAGS = -L../lib @LIBS@
PROGRAM = divertctrl

View File

@ -1 +0,0 @@
sinclude(../etc/ackernel.m4)dnl

4215
divertctrl/configure vendored

File diff suppressed because it is too large Load Diff

View File

@ -17,8 +17,6 @@ AC_HEADER_STDC
AC_CHECK_HEADERS(fcntl.h sys/ioctl.h unistd.h)
AC_CHECK_HEADERS(linux/isdn.h)
dnl Find current kernel source
AC_FIND_KERNEL
dnl Checks for typedefs, structures, and compiler characteristics.
@ -36,7 +34,6 @@ AC_SUBST(MANDATE)
AC_SUBST(I4LCONFDIR)
AC_SUBST(I4LVERSION)
AC_SUBST(INSTALL)
AC_SUBST(CONFIG_KERNELDIR)
AC_SUBST(CONFIG_SBINDIR)
AC_SUBST(CONFIG_MANDIR)
AC_OUTPUT(Makefile divertctrl.man)

View File

@ -6,7 +6,7 @@
#
#
SHELL = /bin/sh
CFLAGS = -Wall -O2 -I. -I@CONFIG_KERNELDIR@/include
CFLAGS = -Wall -O2 -I.
LDFLAGS = -L../lib @LIBS@
PROGRAMS =
MODULES = hisaxctrl.o

1
hisax/aclocal.m4 vendored
View File

@ -1 +0,0 @@
sinclude(../etc/ackernel.m4)dnl

3850
hisax/configure vendored

File diff suppressed because it is too large Load Diff

View File

@ -7,7 +7,6 @@ I4LVERSION=${I4LVERSION:-"?.?"}
CONFIG_SBINDIR=${CONFIG_SBINDIR:-"/sbin"}
CONFIG_DATADIR=${CONFIG_DATADIR:-"/usr/lib/isdn"}
CONFIG_MANDIR=${CONFIG_MANDIR:-"/usr/man"}
CONFIG_KERNELDIR=`eval echo ${CONFIG_KERNELDIR:-"/usr/src/linux"}`
CONFIG_TELESCTRL=${CONFIG_TELESCTRL:-"n"}
CONFIG_HISAXCTRL=${CONFIG_HISAXCTRL:-"n"}
MANDATE=`grep CHECKIN hisaxctrl.man.in | awk '{print $4}'`
@ -23,10 +22,6 @@ AC_HEADER_STDC
AC_CHECK_HEADERS(fcntl.h sys/ioctl.h unistd.h)
dnl Find current kernel source
AC_FIND_KERNEL
AC_CHECK_FILE($CONFIG_KERNELDIR/include/linux/isdn.h,,
[AC_MSG_ERROR([$CONFIG_KERNELDIR/include/linux/isdn.h missing. Kernel installed?])]
)
dnl Checks for typedefs, structures, and compiler characteristics.
@ -62,6 +57,5 @@ AC_SUBST(I4LVERSION)
AC_SUBST(CONFIG_SBINDIR)
AC_SUBST(CONFIG_DATADIR)
AC_SUBST(CONFIG_MANDIR)
AC_SUBST(CONFIG_KERNELDIR)
AC_SUBST(CONFIG_HISAXCTRL)
AC_OUTPUT(Makefile hisaxctrl.man)

View File

@ -6,7 +6,7 @@
#
SHELL = /bin/sh
CFLAGS = -Wall -O2
INCLUDES = -I. -I@CONFIG_KERNELDIR@/include -I@CONFIG_KERNELDIR@/drivers/isdn/icn
INCLUDES = -I.
DEFS =
LDFLAGS = -L../lib @LIBS@
PROGRAM = icnctrl

1
icn/aclocal.m4 vendored
View File

@ -1 +0,0 @@
sinclude(../etc/ackernel.m4)dnl

4207
icn/configure vendored

File diff suppressed because it is too large Load Diff

View File

@ -7,7 +7,6 @@ CONFIG_DATADIR=${CONFIG_DATADIR:-"/usr/lib/isdn"}
CONFIG_SBINDIR=${CONFIG_SBINDIR:-"/sbin"}
CONFIG_MANDIR=${CONFIG_MANDIR:-"/usr/man"}
CONFIG_ICNCTRL_DEBUG=${CONFIG_ICNCTRL_DEBUG:-"n"}
CONFIG_KERNELDIR=`eval echo ${CONFIG_KERNELDIR:-"/usr/src/linux"}`
MANDATE=`grep CHECKIN icnctrl.man.in | awk '{print $4}'`
dnl Checks for programs.
@ -20,16 +19,6 @@ dnl Checks for header files.
AC_HEADER_STDC
AC_CHECK_HEADERS(fcntl.h sys/ioctl.h unistd.h)
dnl Find current kernel source
AC_FIND_KERNEL
AC_CHECK_FILE($CONFIG_KERNELDIR/include/linux/isdn.h,,
[AC_MSG_ERROR([$CONFIG_KERNELDIR/include/linux/isdn.h missing. Kernel installed?])]
)
AC_CHECK_HEADERS($CONFIG_KERNELDIR/drivers/isdn/icn/icn.h,,
[AC_MSG_ERROR([$CONFIG_KERNELDIR/drivers/isdn/icn/icn.h missing. Kernel installed?])]
)
dnl Checks for typedefs, structures, and compiler characteristics.
dnl Checks for library functions.
@ -67,7 +56,6 @@ AC_SUBST(INSTALL)
AC_SUBST(MANDATE)
AC_SUBST(CONFIG_ICNCTRL_DEBUG)
AC_SUBST(CONFIG_DATADIR)
AC_SUBST(CONFIG_KERNELDIR)
AC_SUBST(CONFIG_SBINDIR)
AC_SUBST(CONFIG_MANDIR)
AC_SUBST(I4LVERSION)

35
icn/icn.h Normal file
View File

@ -0,0 +1,35 @@
/* API only generated from: */
/* $Id$
*
* ISDN lowlevel-module for the ICN active ISDN-Card.
*
* Copyright 1994 by Fritz Elfert (fritz@isdn4linux.de)
*
* This software may be used and distributed according to the terms
* of the GNU General Public License, incorporated herein by reference.
*
*/
#ifndef icn_h
#define icn_h
#define ICN_IOCTL_SETMMIO 0
#define ICN_IOCTL_GETMMIO 1
#define ICN_IOCTL_SETPORT 2
#define ICN_IOCTL_GETPORT 3
#define ICN_IOCTL_LOADBOOT 4
#define ICN_IOCTL_LOADPROTO 5
#define ICN_IOCTL_LEASEDCFG 6
#define ICN_IOCTL_GETDOUBLE 7
#define ICN_IOCTL_DEBUGVAR 8
#define ICN_IOCTL_ADDCARD 9
/* Struct for adding new cards */
typedef struct icn_cdef {
int port;
char id1[10];
char id2[10];
} icn_cdef;
#endif /* icn_h */

View File

@ -8,7 +8,7 @@
#
SHELL = /bin/sh
CFLAGS = -Wall -O2
INCLUDES = -I. -I@CONFIG_KERNELDIR@/include
INCLUDES = -I.
LDFLAGS = -L../lib @LIBS@
PROGRAM = imon
MODULES = imon.o

1
imon/aclocal.m4 vendored
View File

@ -1 +0,0 @@
sinclude(../etc/ackernel.m4)dnl

5034
imon/configure vendored

File diff suppressed because it is too large Load Diff

View File

@ -6,7 +6,6 @@ AC_PREFIX_DEFAULT(/usr)
I4LVERSION=${I4LVERSION:-"?.?"}
CONFIG_MANDIR=`eval echo ${CONFIG_MANDIR:-"/usr/man"}`
CONFIG_SBINDIR=`eval echo ${CONFIG_SBINDIR:-"/sbin"}`
CONFIG_KERNELDIR=`eval echo ${CONFIG_KERNELDIR:-"/usr/src/linux"}`
MANDATE=`grep CHECKIN imon.man.in | awk '{print $4}'`
dnl Checks for programs.
@ -27,12 +26,6 @@ AC_CHECK_HEADERS(ncurses.h,,
[AC_CHECK_HEADERS(curses.h,,
[AC_MSG_ERROR([Missing \(n\)curses.h])])])])])
dnl Check for linux/isdn.h, give up if not found.
AC_FIND_KERNEL
AC_CHECK_FILE($CONFIG_KERNELDIR/include/linux/isdn.h,,
[AC_MSG_ERROR([Missing $CONFIG_KERNELDIR/include/linux/isdn.h. Kernel source installed?])]
)
dnl Checks for typedefs, structures, and compiler characteristics.
AC_HEADER_TIME
AC_STRUCT_TM
@ -57,7 +50,6 @@ AC_ARG_WITH(man,
AC_SUBST(INSTALL)
AC_SUBST(MANDATE)
AC_SUBST(CONFIG_KERNELDIR)
AC_SUBST(CONFIG_SBINDIR)
AC_SUBST(CONFIG_MANDIR)
AC_SUBST(I4LVERSION)

View File

@ -69,7 +69,6 @@ endif
DEBUG_FLAGS = @CONFIG_IPPPD_DEBUGFLAGS@
COMPILE_FLAGS =
COPTS = -I@CONFIG_KERNELDIR@/include
CFLAGS = -O2 -fomit-frame-pointer -Wall
VER = 2.2.0

1
ipppd/aclocal.m4 vendored
View File

@ -1 +0,0 @@
sinclude(../etc/ackernel.m4)dnl

5578
ipppd/configure vendored

File diff suppressed because it is too large Load Diff

View File

@ -7,7 +7,6 @@ MANDATE=`grep CHECKIN ipppd.man.in | awk '{print $4}'`
CONFIG_MANDIR=`eval echo ${CONFIG_MANDIR:-"/usr/man"}`
CONFIG_SBINDIR=`eval echo ${CONFIG_SBINDIR:-"/sbin"}`
CONFIG_RUNDIR=`eval echo ${CONFIG_RUNDIR:-"/var/run"}`
CONFIG_KERNELDIR=`eval echo ${CONFIG_KERNELDIR:-"/usr/src/linux"}`
CONFIG_IPPPD_MSCHAP=${CONFIG_IPPPD_MSCHAP:-"n"}
CONFIG_IPPPD_RADIUS=${CONFIG_IPPPD_RADIUS:-"n"}
CONFIG_RADIUS_WTMP_LOGGING=${CONFIG_RADIUS_WTMP_LOGGING:-"n"}
@ -16,9 +15,6 @@ dnl Checks for programs.
AC_PROG_INSTALL
AC_PROG_CC
dnl Check for kernel
AC_FIND_KERNEL
dnl Checks for libraries.
AC_CHECK_LIB(bsd, daemon,HAVE_LIBBSD=1; AC_DEFINE(HAVE_LIBBSD),
[AC_MSG_WARN(Could not find libbsd, build disabled)])

View File

@ -13,7 +13,7 @@ INSTALL_DIR = $(INSTALL) -m 755 -o 0 -g 0 -d
PPPSTATSRCS = ipppstats.c
PPPSTATOBJS = ipppstats.o
CFLAGS = -fomit-frame-pointer -O2 -I@CONFIG_KERNELDIR@/include
CFLAGS = -fomit-frame-pointer -O2
all: ipppstats

View File

@ -1 +0,0 @@
sinclude(../etc/ackernel.m4)dnl

4063
ipppstats/configure vendored

File diff suppressed because it is too large Load Diff

View File

@ -4,7 +4,6 @@ AC_INIT(ipppstats.c)
I4LVERSION=${I4LVERSION:-"?.?"}
CONFIG_SBINDIR=${CONFIG_SBINDIR:-"/sbin"}
CONFIG_MANDIR=${CONFIG_MANDIR:-"/usr/man"}
CONFIG_KERNELDIR=`eval echo ${CONFIG_KERNELDIR:-"/usr/src/linux"}`
MANDATE=`grep CHECKIN ipppstats.man.in | awk '{print $4}'`
dnl Checks for programs.
@ -17,8 +16,6 @@ dnl Checks for libraries.
dnl Checks for header files.
AC_CHECK_HEADERS(fcntl.h sys/ioctl.h)
AC_FIND_KERNEL
dnl Checks for typedefs, structures, and compiler characteristics.
dnl Checks for library functions.
@ -45,5 +42,4 @@ AC_SUBST(I4LVERSION)
AC_SUBST(MANDATE)
AC_SUBST(CONFIG_SBINDIR)
AC_SUBST(CONFIG_MANDIR)
AC_SUBST(CONFIG_KERNELDIR)
AC_OUTPUT(Makefile ipppstats.man)

View File

@ -19,6 +19,9 @@
## Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
##
## $Log$
## Revision 1.202 2002/06/07 15:39:23 akool
## isdnlog-4.59: New TK-Providers added
##
## Revision 1.201 2002/04/22 19:07:49 akool
## isdnlog-4.58:
## - Patches from Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
@ -1520,7 +1523,7 @@ endif
CC = $(_CC)
INCLUDE = -I./isdnlog -I./connect -I./tools -I$(PREFIXDIR) -I$(LIBISDNDIR) -I@CONFIG_KERNELDIR@/include
INCLUDE = -I./isdnlog -I./connect -I./tools -I$(PREFIXDIR) -I$(LIBISDNDIR)
LIB = $(DBMLIB) -lm

1
isdnlog/aclocal.m4 vendored
View File

@ -141,4 +141,3 @@ AC_DEFUN(AC_CHECK_ORACLE, [
AC_SUBST(ORACLE)
])
sinclude(../etc/ackernel.m4)dnl

5694
isdnlog/configure vendored

File diff suppressed because it is too large Load Diff

View File

@ -29,7 +29,6 @@ AREAPREFIX=${CONFIG_AREA_PREFIX:-"0"}
CONFIG_LIB_AREACODE=${CONFIG_LIB_AREACODE:-"y"}
CONFIG_ISDNLOG_POSTGRESDIR=${CONFIG_ISDNLOG_POSTGRESDIR:-""}
CONFIG_ISDNLOG_MYSQLDIR=${CONFIG_ISDNLOG_MYSQLDIR:-""}
CONFIG_KERNELDIR=${CONFIG_KERNELDIR:-"/usr/src/linux"}
LIBISDNDIR="../lib"
bindir=${CONFIG_BINDIR:-"/usr/bin"}
sbindir=${CONFIG_SBINDIR:-"/sbin"}
@ -55,7 +54,6 @@ AREAPREFIX=`eval echo $AREAPREFIX`
CONFIG_LIB_AREACODE=`eval echo $CONFIG_LIB_AREACODE`
CONFIG_ISDNLOG_POSTGRESDIR=`eval echo $CONFIG_ISDNLOG_POSTGRESDIR`
CONFIG_ISDNLOG_MYSQLDIR=`eval echo $CONFIG_ISDNLOG_MYSQLDIR`
CONFIG_KERNELDIR=`eval echo $CONFIG_KERNELDIR`
bindir=`eval echo $bindir`
sbindir=`eval echo $sbindir`
mandir=`eval echo $mandir`
@ -149,9 +147,6 @@ AC_CHECK_ORACLE
dnl TODO: replace main by a funcion within libdbmalloc
#AC_CHECK_LIB(dbmalloc, main)
dnl Check for kernel
AC_FIND_KERNEL
dnl Checks for header files.
AC_HEADER_STDC
AC_HEADER_SYS_WAIT
@ -187,8 +182,6 @@ AC_TYPE_SIZE_T
AC_HEADER_TIME
AC_STRUCT_TM
dnl AC_FIND_KERNEL
dnl Checks for C library functions.
AC_PROG_GCC_TRADITIONAL
AC_FUNC_MEMCMP
@ -244,7 +237,6 @@ AC_SUBST(AREAPREFIX)
AC_SUBST(AREACODE)
AC_SUBST(NATION)
AC_SUBST(NATION_MACRO)
AC_SUBST(CONFIG_KERNELDIR)
AC_SUBST(I4LVERSION)
AC_SUBST(DATADIR)
AC_SUBST(RELOADCMD)

View File

@ -6,7 +6,7 @@
#
SHELL = /bin/sh
CFLAGS = -Wall -O2
INCLUDES = -I. -I@CONFIG_KERNELDIR@/include -I@CONFIG_KERNELDIR@/drivers/isdn/isdnloop
INCLUDES = -I.
DEFS =
LDFLAGS = -L../lib @LIBS@
PROGRAM = loopctrl

1
loop/aclocal.m4 vendored
View File

@ -1 +0,0 @@
sinclude(../etc/ackernel.m4)dnl

4214
loop/configure vendored

File diff suppressed because it is too large Load Diff

View File

@ -17,8 +17,6 @@ AC_HEADER_STDC
AC_CHECK_HEADERS(fcntl.h sys/ioctl.h unistd.h)
AC_CHECK_HEADERS(linux/isdn.h)
dnl Find current kernel source
AC_FIND_KERNEL
dnl Checks for typedefs, structures, and compiler characteristics.
@ -36,7 +34,6 @@ AC_SUBST(MANDATE)
AC_SUBST(I4LCONFDIR)
AC_SUBST(I4LVERSION)
AC_SUBST(INSTALL)
AC_SUBST(CONFIG_KERNELDIR)
AC_SUBST(CONFIG_SBINDIR)
AC_SUBST(CONFIG_MANDIR)
AC_OUTPUT(Makefile loopctrl.man)

33
loop/isdnloop.h Normal file
View File

@ -0,0 +1,33 @@
/* API only version generated from kernel drivers/isdn/isdnloop/isdnloop.h */
/* $Id$
*
* Loopback lowlevel module for testing of linklevel.
*
* Copyright 1997 by Fritz Elfert (fritz@isdn4linux.de)
*
* This software may be used and distributed according to the terms
* of the GNU General Public License, incorporated herein by reference.
*
*/
#ifndef isdnloop_h
#define isdnloop_h
#define ISDNLOOP_IOCTL_DEBUGVAR 0
#define ISDNLOOP_IOCTL_ADDCARD 1
#define ISDNLOOP_IOCTL_LEASEDCFG 2
#define ISDNLOOP_IOCTL_STARTUP 3
/* Struct for adding new cards */
typedef struct isdnloop_cdef {
char id1[10];
} isdnloop_cdef;
/* Struct for configuring cards */
typedef struct isdnloop_sdef {
int ptype;
char num[3][20];
} isdnloop_sdef;
#endif /* isdnloop_h */

View File

@ -6,7 +6,7 @@
#
SHELL = /bin/sh
CFLAGS = -Wall -Wstrict-prototypes -O2 -g
INCLUDES = -I. -DDEBUG -I@CONFIG_KERNELDIR@/drivers/isdn/pcbit
INCLUDES = -I. -DDEBUG
LDFLAGS = -L../lib @LIBS@
PROGRAM = pcbitctl
MODULES = pcbitctl.o convhexbin.o

1
pcbit/aclocal.m4 vendored
View File

@ -1 +0,0 @@
sinclude(../etc/ackernel.m4)dnl

3835
pcbit/configure vendored

File diff suppressed because it is too large Load Diff

View File

@ -5,7 +5,6 @@ AC_PREFIX_DEFAULT(/usr)
I4LVERSION=${I4LVERSION:-"?.?"}
CONFIG_SBINDIR=${CONFIG_SBINDIR:-"/sbin"}
CONFIG_MANDIR=${CONFIG_MANDIR:-"/usr/man"}
CONFIG_KERNELDIR=`eval echo ${CONFIG_KERNELDIR:-"/usr/src/linux"}`
MANDATE=`grep CHECKIN pcbitctl.man.in | awk '{print $4}'`
dnl Checks for programs.
AC_PROG_CC
@ -18,10 +17,6 @@ AC_HEADER_STDC
AC_CHECK_HEADERS(fcntl.h sys/ioctl.h unistd.h)
dnl Find current kernel source
AC_FIND_KERNEL
AC_CHECK_FILE($CONFIG_KERNELDIR/include/linux/isdn.h,,
[AC_MSG_ERROR([$CONFIG_KERNELDIR/include/linux/isdn.h missing. Kernel installed?])]
)
dnl Checks for typedefs, structures, and compiler characteristics.
@ -45,7 +40,6 @@ AC_ARG_WITH(man,
AC_SUBST(INSTALL)
AC_SUBST(CONFIG_MANDIR)
AC_SUBST(CONFIG_KERNELDIR)
AC_SUBST(CONFIG_SBINDIR)
AC_SUBST(MANDATE)
AC_SUBST(CONFIG_MANDIR)

71
pcbit/pcbit.h Normal file
View File

@ -0,0 +1,71 @@
/* API only version generated from kernel drivers/isdn/pcbit/pcbit.h */
/*
* PCBIT-D device driver definitions
*
* Copyright (C) 1996 Universidade de Lisboa
*
* Written by Pedro Roque Marques (roque@di.fc.ul.pt)
*
* This software may be used and distributed according to the terms of
* the GNU General Public License, incorporated herein by reference.
*/
#ifndef PCBIT_H
#define PCBIT_H
#define MAX_PCBIT_CARDS 4
#define BLOCK_TIMER
/* isdn_ctrl only allows a long sized argument */
struct pcbit_ioctl {
union {
struct byte_op {
ushort addr;
ushort value;
} rdp_byte;
unsigned long l2_status;
} info;
};
#define PCBIT_IOCTL_GETSTAT 0x01 /* layer2 status */
#define PCBIT_IOCTL_LWMODE 0x02 /* linear write mode */
#define PCBIT_IOCTL_STRLOAD 0x03 /* start load mode */
#define PCBIT_IOCTL_ENDLOAD 0x04 /* end load mode */
#define PCBIT_IOCTL_SETBYTE 0x05 /* set byte */
#define PCBIT_IOCTL_GETBYTE 0x06 /* get byte */
#define PCBIT_IOCTL_RUNNING 0x07 /* set protocol running */
#define PCBIT_IOCTL_WATCH188 0x08 /* set watch 188 */
#define PCBIT_IOCTL_PING188 0x09 /* ping 188 */
#define PCBIT_IOCTL_FWMODE 0x0A /* firmware write mode */
#define PCBIT_IOCTL_STOP 0x0B /* stop protocol */
#define PCBIT_IOCTL_APION 0x0C /* issue API_ON */
#define PCBIT_GETSTAT (PCBIT_IOCTL_GETSTAT + IIOCDRVCTL)
#define PCBIT_LWMODE (PCBIT_IOCTL_LWMODE + IIOCDRVCTL)
#define PCBIT_STRLOAD (PCBIT_IOCTL_STRLOAD + IIOCDRVCTL)
#define PCBIT_ENDLOAD (PCBIT_IOCTL_ENDLOAD + IIOCDRVCTL)
#define PCBIT_SETBYTE (PCBIT_IOCTL_SETBYTE + IIOCDRVCTL)
#define PCBIT_GETBYTE (PCBIT_IOCTL_GETBYTE + IIOCDRVCTL)
#define PCBIT_RUNNING (PCBIT_IOCTL_RUNNING + IIOCDRVCTL)
#define PCBIT_WATCH188 (PCBIT_IOCTL_WATCH188 + IIOCDRVCTL)
#define PCBIT_PING188 (PCBIT_IOCTL_PING188 + IIOCDRVCTL)
#define PCBIT_FWMODE (PCBIT_IOCTL_FWMODE + IIOCDRVCTL)
#define PCBIT_STOP (PCBIT_IOCTL_STOP + IIOCDRVCTL)
#define PCBIT_APION (PCBIT_IOCTL_APION + IIOCDRVCTL)
#define MAXSUPERLINE 3000
#define L2_DOWN 0
#define L2_LOADING 1
#define L2_LWMODE 2
#define L2_FWMODE 3
#define L2_STARTING 4
#define L2_RUNNING 5
#define L2_ERROR 6
#endif

View File

@ -58,7 +58,6 @@ NORMAL_UNINSTALL = :
PRE_UNINSTALL = :
POST_UNINSTALL = :
CC = @CC@
CONFIG_KERNELDIR = @CONFIG_KERNELDIR@
CONFIG_MANDIR = @CONFIG_MANDIR@
CONFIG_SBINDIR = @CONFIG_SBINDIR@
CPP = @CPP@
@ -72,7 +71,7 @@ CLEANFILES = *~ comperr
MAINTAINERCLEANFILES = configure aclocal.m4 Makefile.in config.h.in stamp-h.in comperr
INCLUDES = -I../capi20 -I$(CONFIG_KERNELDIR)/drivers/isdn/avmb1 $(all_includes)
INCLUDES = -I../capi20 $(all_includes)
CFLAGS = -Wall -O2
LDFLAGS = -L../capi20/.libs -L../capi20 $(all_libraries)
LDADD = -lcapi20

2
rcapid/aclocal.m4 vendored
View File

@ -10,8 +10,6 @@ dnl but WITHOUT ANY WARRANTY, to the extent permitted by law; without
dnl even the implied warranty of MERCHANTABILITY or FITNESS FOR A
dnl PARTICULAR PURPOSE.
sinclude(../etc/ackernel.m4)dnl
# Do all the work for Automake. This macro actually does too much --
# some checks are only needed if your package does certain things.
# But this isn't really a big deal.

4330
rcapid/configure vendored

File diff suppressed because it is too large Load Diff

View File

@ -3,7 +3,6 @@ AC_INIT(rcapid.c)
AM_INIT_AUTOMAKE(rcapid, 1.2)
AC_PREFIX_DEFAULT(/usr)
CONFIG_KERNELDIR=`eval echo ${CONFIG_KERNELDIR:-"/usr/src/linux"}`
CONFIG_SBINDIR=${CONFIG_SBINDIR:-"/sbin"}
CONFIG_MANDIR=${CONFIG_MANDIR:-"/usr/man"}
@ -39,9 +38,6 @@ AC_ARG_WITH(man,
AC_DEFINE(CONFIG_MANDIR,"${withval}"),
)
AC_FIND_KERNEL
AC_SUBST(CONFIG_KERNELDIR)
AC_SUBST(CONFIG_SBINDIR)
AC_SUBST(CONFIG_MANDIR)
AC_SUBST(INSTALL)