From 6c347dd09c0e09df91ffc26fb93c930157701ae1 Mon Sep 17 00:00:00 2001 From: hm Date: Thu, 26 Oct 2000 07:00:05 +0000 Subject: [PATCH] Add infrastructure for Cologne Chip HFC-S PCI driver. --- sys/i4b/layer1/i4b_l1.h | 5 ++++- usr.sbin/i4b/isdnd/controller.c | 3 ++- usr.sbin/i4b/isdndebug/main.c | 39 +++++++++++++++++---------------- 3 files changed, 26 insertions(+), 21 deletions(-) diff --git a/sys/i4b/layer1/i4b_l1.h b/sys/i4b/layer1/i4b_l1.h index 76c11bfe2792..55d6860c4064 100644 --- a/sys/i4b/layer1/i4b_l1.h +++ b/sys/i4b/layer1/i4b_l1.h @@ -31,7 +31,7 @@ * * $FreeBSD$ * - * last edit-date: [Fri Jun 2 14:37:10 2000] + * last edit-date: [Thu Oct 26 08:42:44 2000] * *---------------------------------------------------------------------------*/ @@ -70,6 +70,7 @@ #define FLAG_TELES_S0_163C 25 #define FLAG_ACER_P10 26 #define FLAG_TELEINT_NO_1 27 +#define FLAG_CCD_HFCS_PCI 28 #define SEC_DELAY 1000000 /* one second DELAY for DELAY*/ @@ -83,11 +84,13 @@ #define L0UNIT(du) ((du) & 0xff) #define L0DRVRUNIT(d, u) ( (((d) << 8) & 0xff00) | ((u) & 0xff)) + #define L0ISICUNIT(u) ( (((L1DRVR_ISIC) << 8) & 0xff00) | ((u) & 0xff)) #define L0IWICUNIT(u) ( (((L1DRVR_IWIC) << 8) & 0xff00) | ((u) & 0xff)) #define L0IFPIUNIT(u) ( (((L1DRVR_IFPI) << 8) & 0xff00) | ((u) & 0xff)) #define L0IHFCUNIT(u) ( (((L1DRVR_IHFC) << 8) & 0xff00) | ((u) & 0xff)) #define L0IFPNPUNIT(u) ( (((L1DRVR_IFPNP) << 8) & 0xff00) | ((u) & 0xff)) +#define L0ICCHPUNIT(u) ( (((L1DRVR_ICCHP) << 8) & 0xff00) | ((u) & 0xff)) /* jump table for the multiplex functions */ struct i4b_l1mux_func { diff --git a/usr.sbin/i4b/isdnd/controller.c b/usr.sbin/i4b/isdnd/controller.c index 3da8274bf434..2c45bf607e92 100644 --- a/usr.sbin/i4b/isdnd/controller.c +++ b/usr.sbin/i4b/isdnd/controller.c @@ -31,7 +31,7 @@ * * $FreeBSD$ * - * last edit-date: [Mon Oct 9 14:37:34 2000] + * last edit-date: [Thu Oct 26 08:39:21 2000] * *---------------------------------------------------------------------------*/ @@ -74,6 +74,7 @@ name_of_controller(int ctrl_type, int card_type) "Teles S0/16.3c PnP", "AcerISDN P10 PnP", "TELEINT ISDN SPEED No. 1" + "Cologne Chip HFC-S PCI based" }; static char *daic_card[] = { diff --git a/usr.sbin/i4b/isdndebug/main.c b/usr.sbin/i4b/isdndebug/main.c index f96b2136c336..89a89101335d 100644 --- a/usr.sbin/i4b/isdndebug/main.c +++ b/usr.sbin/i4b/isdndebug/main.c @@ -31,7 +31,7 @@ * * $FreeBSD$ * - * last edit-date: [Mon Jul 24 14:25:33 2000] + * last edit-date: [Thu Oct 26 08:50:30 2000] * *---------------------------------------------------------------------------*/ @@ -542,24 +542,25 @@ void printl1(unsigned long val) { printf("\nLayer 1: %s = 0x%lX\n", bin_str(val, 32), val); - printf(" |||| |||| |||| ||||\n"), - printf(" |||| |||| |||| |||+- general error messages\n"); - printf(" |||| |||| |||| ||+-- PH primitives exchanged\n"); - printf(" |||| |||| |||| |+--- B channel actions\n"); - printf(" |||| |||| |||| +---- HSCX error messages\n"); - printf(" |||| |||| |||+------ HSCX IRQ messages\n"); - printf(" |||| |||| ||+------- ISAC error messages\n"); - printf(" |||| |||| |+-------- ISAC messages\n"); - printf(" |||| |||| +--------- ISAC setup messages\n"); - printf(" |||| |||+----------- FSM general messages\n"); - printf(" |||| ||+------------ FSM error messages\n"); - printf(" |||| |+------------- timer general messages\n"); - printf(" |||| +-------------- timer error messages\n"); - printf(" |||+---------------- HSCX data xfer errors msgs\n"); - printf(" ||+----------------- ISAC CICO messages\n"); - printf(" |+------------------ silent messages (soft-HDLC)\n"); - printf(" +------------------- error messages (soft-HDLC)\n"); - printf(" ++++-++++-++++-++++--------------------- unassigned\n"); + printf(" | |||| |||| |||| ||||\n"), + printf(" | |||| |||| |||| |||+- general error messages\n"); + printf(" | |||| |||| |||| ||+-- PH primitives exchanged\n"); + printf(" | |||| |||| |||| |+--- B channel actions\n"); + printf(" | |||| |||| |||| +---- HSCX error messages\n"); + printf(" | |||| |||| |||+------ HSCX IRQ messages\n"); + printf(" | |||| |||| ||+------- ISAC error messages\n"); + printf(" | |||| |||| |+-------- ISAC messages\n"); + printf(" | |||| |||| +--------- ISAC setup messages\n"); + printf(" | |||| |||+----------- FSM general messages\n"); + printf(" | |||| ||+------------ FSM error messages\n"); + printf(" | |||| |+------------- timer general messages\n"); + printf(" | |||| +-------------- timer error messages\n"); + printf(" | |||+---------------- HSCX data xfer errors msgs\n"); + printf(" | ||+----------------- ISAC CICO messages\n"); + printf(" | |+------------------ silent messages (soft-HDLC)\n"); + printf(" | +------------------- error messages (soft-HDLC)\n"); + printf(" +--------------------- HFC-S PCI debug messages\n"); + printf(" ++++-++++-++++-+++---------------------- unassigned\n"); } /*---------------------------------------------------------------------------*