diff options
| author | drochner <drochner@NetBSD.org> | 2003-07-11 10:15:56 +0000 |
|---|---|---|
| committer | drochner <drochner@NetBSD.org> | 2003-07-11 10:15:56 +0000 |
| commit | 037daa02c226012760e902811007b90c8ab714f5 (patch) | |
| tree | 9605eb9537df6dbdaf8ce7e2b11b3bc865a38189 /sys/dev/ic | |
| parent | f15957a93688319aeebb15cef865d86ecf6b76d4 (diff) | |
fixed botched prototype,
while being here clean up whitespace
Diffstat (limited to 'sys/dev/ic')
| -rw-r--r-- | sys/dev/ic/isic_l1.h | 40 |
1 files changed, 20 insertions, 20 deletions
diff --git a/sys/dev/ic/isic_l1.h b/sys/dev/ic/isic_l1.h index 14fca7a27b6..1a0dafd43d7 100644 --- a/sys/dev/ic/isic_l1.h +++ b/sys/dev/ic/isic_l1.h @@ -1,4 +1,4 @@ -/* $NetBSD: isic_l1.h,v 1.14 2003/07/08 10:06:31 itojun Exp $ */ +/* $NetBSD: isic_l1.h,v 1.15 2003/07/11 10:15:56 drochner Exp $ */ /* * Copyright (c) 1997, 2000 Hellmuth Michaelis. All rights reserved. @@ -96,7 +96,7 @@ struct isic_attach_args { typedef struct { int channel; /* which channel is this*/ - + u_char hscx_mask; /* HSCX interrupt mask */ int bprot; /* B channel protocol */ @@ -114,7 +114,7 @@ typedef struct struct mbuf *in_mbuf; /* rx input buffer */ u_char *in_cbptr; /* curr buffer pointer */ int in_len; /* rx input buffer len */ - + /* transmit data to ISDN */ struct ifqueue tx_queue; /* transmitter queue */ @@ -124,10 +124,10 @@ typedef struct struct mbuf *out_mbuf_head; /* first mbuf in possible chain */ struct mbuf *out_mbuf_cur; /* current mbuf in possbl chain */ unsigned char *out_mbuf_cur_ptr; /* data pointer into mbuf */ - int out_mbuf_cur_len; /* remaining bytes in mbuf */ - + int out_mbuf_cur_len; /* remaining bytes in mbuf */ + /* link between b channel and driver */ - + isdn_link_t isdn_linktab; /* b channel driver data */ const struct isdn_l4_driver_functions *l4_driver; /* layer 4 driver */ @@ -136,9 +136,9 @@ typedef struct /* statistics */ /* RSTA */ - + int stat_VFR; /* HSCX RSTA Valid FRame */ - int stat_RDO; /* HSCX RSTA Rx Data Overflow */ + int stat_RDO; /* HSCX RSTA Rx Data Overflow */ int stat_CRC; /* HSCX RSTA CRC */ int stat_RAB; /* HSCX RSTA Rx message ABorted */ @@ -146,7 +146,7 @@ typedef struct int stat_XDU; /* HSCX EXIR tx data underrun */ int stat_RFO; /* HSCX EXIR rx frame overflow */ - + } l1_bchan_state_t; /*---------------------------------------------------------------------------* @@ -231,18 +231,18 @@ struct isic_softc int sc_freeflag; /* m_freem mbuf if set */ struct mbuf *sc_obuf2; /* pointer to an mbuf with TX frame */ - int sc_freeflag2; /* m_freem mbuf if set */ - + int sc_freeflag2; /* m_freem mbuf if set */ + int sc_isac_version; /* version number of ISAC */ int sc_hscx_version; /* version number of HSCX */ int sc_ipac_version; /* version number of IPAC */ - + int sc_I430state; /* I.430 state F3 .... F8 */ - int sc_I430T3; /* I.430 Timer T3 running */ + int sc_I430T3; /* I.430 Timer T3 running */ struct callout sc_T3_callout; - - int sc_I430T4; /* Timer T4 running */ + + int sc_I430T4; /* Timer T4 running */ struct callout sc_T4_callout; int sc_driver_specific; /* used for LED values */ @@ -258,14 +258,14 @@ struct isic_softc int sc_ipac; /* flag, running on ipac */ int sc_bfifolen; /* length of b channel fifos */ - + #define ISIC_WHAT_ISAC 0 #define ISIC_WHAT_HSCXA 1 #define ISIC_WHAT_HSCXB 2 #define ISIC_WHAT_IPAC 3 u_int8_t (*readreg) __P((struct isic_softc *, int, bus_size_t)); - void (*writereg) __P((struct isic_softc *, int, bus_size_t)); + void (*writereg) __P((struct isic_softc *, int, bus_size_t, u_int8_t)); void (*readfifo) __P((struct isic_softc *, int, void *, size_t)); void (*writefifo) __P((struct isic_softc *, int what, @@ -299,7 +299,7 @@ enum I430states { ST_F6, /* F6 Synchronized */ ST_F7, /* F7 Activated */ ST_F8, /* F8 Lost Framing */ - ST_ILL, /* Illegal State */ + ST_ILL, /* Illegal State */ N_STATES }; @@ -313,8 +313,8 @@ enum I430events { EV_RSY, /* receiving any signal */ EV_INFO2, /* receiving INFO2 */ EV_INFO48, /* receiving INFO4 pri 8/9 */ - EV_INFO410, /* receiving INFO4 pri 10/11 */ - EV_DR, /* Deactivate Request */ + EV_INFO410, /* receiving INFO4 pri 10/11 */ + EV_DR, /* Deactivate Request */ EV_PU, /* Power UP */ EV_DIS, /* Disconnected (only 2085) */ EV_EI, /* Error Indication */ |
