First checkin of new created control utility for Eicon.Diehl driver.
diehlctrl is obsolete.
This commit is contained in:
parent
b9fe29fe77
commit
4f87f79cf1
|
@ -0,0 +1,76 @@
|
|||
# $Id: Makefile.in,v 1.1 1999/01/01 17:27:54 armin Exp $
|
||||
#
|
||||
# Makefile for eiconctrl
|
||||
# (C) 1997 Fritz Elfert
|
||||
# (C) 1998,99 Armin Schindler
|
||||
#
|
||||
#
|
||||
SHELL = /bin/sh
|
||||
CFLAGS = -Wall -O2
|
||||
INCLUDES = -I. -I@CONFIG_KERNELDIR@/include -I@CONFIG_KERNELDIR@/drivers/isdn/eicon
|
||||
DEFS =
|
||||
LDFLAGS = -L../lib @LIBS@ -lncurses
|
||||
PROGRAM = eiconctrl
|
||||
MODULES = eiconctrl.o
|
||||
MANPAGE = eiconctrl.8
|
||||
INSTALL = @INSTALL@
|
||||
SBINDIR = @CONFIG_SBINDIR@
|
||||
DATADIR = @CONFIG_DATADIR@
|
||||
MANDIR = @CONFIG_MANDIR@
|
||||
MAN8DIR = $(MANDIR)/man8
|
||||
INSTALL_PROGRAM = $(INSTALL) -o 0 -g 0 -m 0750
|
||||
INSTALL_DATA = $(INSTALL) -o 0 -g 0 -m 0644
|
||||
INSTALL_MAN = $(INSTALL) -o 0 -g 0 -m 0644
|
||||
CC = @CC@
|
||||
COPTS =
|
||||
|
||||
ifeq ("@CONFIG_EICONCTRL_DEBUG@","y")
|
||||
COPTS += -D__DEBUGVAR__
|
||||
endif
|
||||
|
||||
.SUFFIXES:
|
||||
.SUFFIXES: .c .o
|
||||
|
||||
%.o: %.c Makefile
|
||||
$(CC) $(CFLAGS) $(INCLUDES) $(DEFS) $(COPTS) -c -o $@ $<
|
||||
|
||||
all: $(PROGRAM)
|
||||
|
||||
config:
|
||||
@./configure
|
||||
|
||||
Makefile: Makefile.in config.status
|
||||
./config.status
|
||||
|
||||
config.status: configure
|
||||
./config.status --recheck
|
||||
|
||||
$(PROGRAM): $(MODULES)
|
||||
$(CC) $(CFLAGS) $(INCLUDES) $(DEFS) $? $(LDFLAGS) -o $@
|
||||
|
||||
install-data:
|
||||
mkdir -p $(DESTDIR)$(DATADIR)
|
||||
$(INSTALL_DATA) firmware/dspdload.bin $(DESTDIR)$(DATADIR)/dspdload.bin
|
||||
$(INSTALL_DATA) firmware/te_etsi.sm $(DESTDIR)$(DATADIR)/te_etsi.sm
|
||||
$(INSTALL_DATA) firmware/te_etsi.pm $(DESTDIR)$(DATADIR)/te_etsi.pm
|
||||
$(INSTALL_DATA) firmware/te_1tr6.sm $(DESTDIR)$(DATADIR)/te_1tr6.sm
|
||||
$(INSTALL_DATA) firmware/te_1tr6.pm $(DESTDIR)$(DATADIR)/te_1tr6.pm
|
||||
|
||||
install-man: $(PROGRAM).man
|
||||
mkdir -p $(DESTDIR)$(MAN8DIR)
|
||||
$(INSTALL_MAN) $< $(DESTDIR)$(MAN8DIR)/$(MANPAGE)
|
||||
|
||||
install: $(PROGRAM) install-man install-data
|
||||
$(INSTALL_PROGRAM) $(PROGRAM) $(DESTDIR)$(SBINDIR)/$(PROGRAM)
|
||||
|
||||
install-strip: $(PROGRAM)
|
||||
$(INSTALL_PROGRAM) -s $(PROGRAM) $(DESTDIR)$(SBINDIR)/$(PROGRAM)
|
||||
|
||||
uninstall:
|
||||
rm -f $(DESTDIR)$(SBINDIR)/$(PROGRAM) $(DESTDIR)$(MAN8DIR)/$(MANPAGE)
|
||||
|
||||
clean:
|
||||
rm -f *.o *~ $(PROGRAM)
|
||||
|
||||
distclean: clean
|
||||
rm -f config.status config.cache config.log Makefile eiconctrl.man
|
|
@ -0,0 +1 @@
|
|||
sinclude(../etc/ackernel.m4)dnl
|
File diff suppressed because it is too large
Load Diff
|
@ -0,0 +1,73 @@
|
|||
dnl Process this file with autoconf to produce a configure script.
|
||||
AC_INIT(eiconctrl.c)
|
||||
AC_PREFIX_DEFAULT("/usr")
|
||||
|
||||
I4LVERSION=${I4LVERSION:-"?.?"}
|
||||
CONFIG_DATADIR=${CONFIG_DATADIR:-"/usr/lib/isdn"}
|
||||
CONFIG_SBINDIR=${CONFIG_SBINDIR:-"/sbin"}
|
||||
CONFIG_MANDIR=${CONFIG_MANDIR:-"/usr/man"}
|
||||
CONFIG_EICONCTRL_DEBUG=${CONFIG_EICONCTRL_DEBUG:-"n"}
|
||||
CONFIG_KERNELDIR=`eval echo ${CONFIG_KERNELDIR:-"/usr/src/linux"}`
|
||||
MANDATE=`grep CHECKIN eiconctrl.man.in | awk '{print $4}'`
|
||||
|
||||
dnl Checks for programs.
|
||||
AC_PROG_INSTALL
|
||||
AC_PROG_CC
|
||||
|
||||
dnl Checks for libraries.
|
||||
|
||||
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/include/linux/isdn.h,,
|
||||
AC_MSG_ERROR("$CONFIG_KERNELDIR/include/linux/isdn.h missing. Kernel installed?")
|
||||
)
|
||||
AC_CHECK_HEADERS($CONFIG_KERNELDIR/drivers/isdn/eicon/eicon.h,,
|
||||
AC_MSG_ERROR("$CONFIG_KERNELDIR/drivers/isdn/eicon/eicon.h missing. Kernel installed?")
|
||||
)
|
||||
|
||||
dnl Checks for typedefs, structures, and compiler characteristics.
|
||||
|
||||
dnl Checks for library functions.
|
||||
AC_PROG_GCC_TRADITIONAL
|
||||
AC_FUNC_MMAP
|
||||
|
||||
dnl Optional firmware directory
|
||||
AC_ARG_WITH(firmware,
|
||||
[ --with-firmware=DIR Set dir where firmware istalled. [/usr/lib/isdn]],
|
||||
CONFIG_DATADIR="${withval}"
|
||||
AC_DEFINE(CONFIG_DATADIR,"${withval}"),
|
||||
)
|
||||
|
||||
dnl Optional sbin directory
|
||||
AC_ARG_WITH(sbin,
|
||||
[ --with-sbin=DIR Set dir where binary is istalled. [/sbin]],
|
||||
CONFIG_SBINDIR="${withval}"
|
||||
AC_DEFINE(CONFIG_SBINDIR,"${withval}"),
|
||||
)
|
||||
|
||||
dnl Optional man directory
|
||||
AC_ARG_WITH(man,
|
||||
[ --with-man=DIR Set manpage dir. [/usr/man]],
|
||||
CONFIG_MANDIR="${withval}"
|
||||
AC_DEFINE(CONFIG_MANDIR,"${withval}"),
|
||||
)
|
||||
|
||||
dnl Check, if user wants dump option for debugging
|
||||
AC_ARG_ENABLE(dump,
|
||||
[ --enable-dump Enable dump feature for debugging [no]],
|
||||
CONFIG_EICONCTRL_DEBUG="y"
|
||||
)
|
||||
|
||||
AC_SUBST(INSTALL)
|
||||
AC_SUBST(MANDATE)
|
||||
AC_SUBST(CONFIG_EICONCTRL_DEBUG)
|
||||
AC_SUBST(CONFIG_DATADIR)
|
||||
AC_SUBST(CONFIG_KERNELDIR)
|
||||
AC_SUBST(CONFIG_SBINDIR)
|
||||
AC_SUBST(CONFIG_MANDIR)
|
||||
AC_SUBST(I4LVERSION)
|
||||
AC_OUTPUT(Makefile eiconctrl.man)
|
File diff suppressed because it is too large
Load Diff
|
@ -0,0 +1,160 @@
|
|||
.\" $Id: eiconctrl.man.in,v 1.1 1999/01/01 17:27:59 armin Exp $
|
||||
.\"
|
||||
.\" CHECKIN $Date: 1999/01/01 17:27:59 $
|
||||
.\"
|
||||
.\" Process this file with
|
||||
.\" groff -man -Tascii eiconctrl.1 for ASCII output, or
|
||||
.\" groff -man -Tps eiconctrl.1 for PostScript output
|
||||
.\"
|
||||
.TH EICONCTRL 8 "@MANDATE@" isdn4k-utils-@I4LVERSION@ "Linux System Administration"
|
||||
.SH NAME
|
||||
eiconctrl \- configure Eicon.Diehl active ISDN adaptor
|
||||
.SH SYNOPSIS
|
||||
.B eiconctrl [-v] [-d
|
||||
.IB Driver-Id ]
|
||||
.I action options
|
||||
.B ...
|
||||
.SH DESCRIPTION
|
||||
.B eiconctrl
|
||||
is used to setup the Eicon.Diehl
|
||||
.SM ISDN
|
||||
device driver and for downloading the firmware into the
|
||||
.SM ISDN
|
||||
card.
|
||||
.LP
|
||||
The use of
|
||||
.I eiconctrl
|
||||
makes sense, if you are using an active Eicon.Diehl ISDN card only.
|
||||
.LP
|
||||
.SH OPTIONS
|
||||
.TP
|
||||
.BI -v
|
||||
verbose during downloading the firmware.
|
||||
.TP
|
||||
.BI "-d " Driver-Id
|
||||
selects the S0/S2M interface named by
|
||||
.IR Driver-Id .
|
||||
Driver-Ids are defined during driver initialisation. See
|
||||
.BR README.eicon
|
||||
for a description of the syntax to be used for modularised and
|
||||
monolithic driver versions.
|
||||
This option
|
||||
.B must
|
||||
be used to identify the S0/S2M interface if more than one S0/S2M interface is
|
||||
existent. If a single card is used, it may be omitted.
|
||||
If using more than one ISA-Bus-type card, support for the other cards
|
||||
is enabled with the
|
||||
.B add
|
||||
action of eiconctrl. PCI-Bus-type cards will be automatically added
|
||||
during driver initialisation. Ids may
|
||||
.B not
|
||||
start with
|
||||
.B digits
|
||||
or small
|
||||
.BR x ,
|
||||
because these values are misinterpreted
|
||||
as numeric parameters by
|
||||
.BR insmod .
|
||||
For loading the module, always the
|
||||
newest
|
||||
.B modutils
|
||||
package should be used to avoid problems during load.
|
||||
.LP
|
||||
The following
|
||||
.I actions
|
||||
may be given to
|
||||
.BR eiconctrl .
|
||||
.TP
|
||||
.BI "irq [" "interrupt" ]
|
||||
sets the irq number to use (only ISA).
|
||||
If the interrupt value is omitted, the current setting will be printed.
|
||||
.TP
|
||||
.BI "load " boot-code " " firmware
|
||||
Only
|
||||
.B ISA-Bus-type
|
||||
cards.
|
||||
Downloads the firmware into the card and starts operation. The firmware
|
||||
name
|
||||
.B must
|
||||
be given
|
||||
.B without
|
||||
extension, since the card-type is determined automatically and according
|
||||
to this, the appropriate extension is appended by the program. The
|
||||
following extensions are used for various card-types:
|
||||
Diehl-S:
|
||||
.B .bin
|
||||
Diehl-SX:
|
||||
.B .sx
|
||||
Diehl-SCOM:
|
||||
.B .sy
|
||||
Diehl-Quadro:
|
||||
.B .sq
|
||||
Diehl-PRI
|
||||
.B .p
|
||||
Using this command, after loading the diehl-module into kernel-space the
|
||||
first real access to the hardware is done. Therefore the
|
||||
.B irq
|
||||
action above, should be used before, if the hardware settings are different
|
||||
from the default settings.
|
||||
Usually the images are located in
|
||||
.IR @DATADIR@ .
|
||||
The boot-code is named
|
||||
.IR prload.bin .
|
||||
.TP
|
||||
.BI "loadpci " protocol " " [options]
|
||||
Only
|
||||
.B PCI-Bus-type
|
||||
cards.
|
||||
Downloads the protocol- and dsp-code into the card and starts operation.
|
||||
.LP
|
||||
.RS
|
||||
.BR protocol
|
||||
.br
|
||||
.BR etsi " Euro-ISDN E-DSS1 (default)"
|
||||
.br
|
||||
.BR 1tr6 " German ISDN Protocol"
|
||||
.br
|
||||
.RE
|
||||
.LP
|
||||
.RS
|
||||
.BR options
|
||||
.br
|
||||
.BR -l[channel#] " channel allocation policy"
|
||||
.br
|
||||
.BR -c[1|2] " CRC4 Multiframe usage [off|on]"
|
||||
.br
|
||||
.BR -tTEI " use the fixed TEI"
|
||||
.br
|
||||
.BR -h " no HSCX 30 mode (PRI only)"
|
||||
.br
|
||||
.BR -n " NT2 mode"
|
||||
.br
|
||||
.BR -p " leased line D channel"
|
||||
.br
|
||||
.BR -s[1|2] " LAPD layer 2 session strategy"
|
||||
.br
|
||||
.BR -o " allow disordered info elements"
|
||||
.br
|
||||
.BR -z " switch to loopback mode"
|
||||
.br
|
||||
.RE
|
||||
.LP
|
||||
.TP
|
||||
.I manage
|
||||
Starts Management-Tool.
|
||||
.LP
|
||||
.SH EXAMPLE
|
||||
.TP
|
||||
.BI eiconctrl " loadpci etsi"
|
||||
loads and starts S0 type PCI adapter with protocol E-DSS1.
|
||||
.TP
|
||||
.BI eiconctrl " loadpci etsi -s2 -n"
|
||||
loads and starts S2M type PCI adapter with protocol E-DSS1.
|
||||
.LP
|
||||
.SH BUGS
|
||||
No bugs so far.
|
||||
.SH AUTHOR
|
||||
\(co 1999 by Armin Schindler <mac@topmail.de>
|
||||
.LP
|
||||
.SH SEE ALSO
|
||||
.BR isdnctrl "(8), " isdnctrl "(4), " ttyI "(4), " isdn_cause "(7), " isdninfo (4).
|
|
@ -0,0 +1,2 @@
|
|||
#!/bin/sh
|
||||
exit 0
|
Loading…
Reference in New Issue