4 /*-----------------------------------------------------------------------------
7 * Copyright (C) 2005 SBE, Inc.
9 * This program is free software; you can redistribute it and/or modify
10 * it under the terms of the GNU General Public License as published by
11 * the Free Software Foundation; either version 2 of the License, or
12 * (at your option) any later version.
14 * This program is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 * GNU General Public License for more details.
19 * For further information, contact via email: support@sbei.com
20 * SBE, Inc. San Ramon, California U.S.A.
21 *-----------------------------------------------------------------------------
24 #include <linux/types.h>
28 #define SBE_DRVR_FAIL 0
29 #define SBE_DRVR_SUCCESS 1
31 /********************/
32 /* PMCC4 memory Map */
33 /********************/
35 #define COMET_OFFSET(x) (0x80000+(x)*0x10000)
36 #define EEPROM_OFFSET 0xC0000
37 #define CPLD_OFFSET 0xD0000
39 struct pmcc4_timeslot_param
41 u_int8_t card
; /* the card number */
42 u_int8_t port
; /* the port number */
47 * each byte in bitmask below represents one timeslot (bitmask[0] is
48 * for timeslot 0 and so on), each bit in the byte selects timeslot
49 * bits for this channel (0xff - whole timeslot, 0x7f - 56kbps mode)
54 struct c4_musycc_param
62 #define sbeE1RMAI 0x100
63 #define sbeYelAlm 0x04
64 #define sbeRedAlm 0x02
65 #define sbeAISAlm 0x01
67 #define sbeE1errSMF 0x02
73 * Device Driver interface, routines are for internal use only.
76 #include "pmcc4_private.h"
78 char *get_hdlc_name (hdlc_device
*);
84 void c4_cleanup (void);
85 status_t
c4_chan_up (ci_t
*, int channum
);
86 status_t
c4_del_chan_stats (int channum
);
87 status_t
c4_del_chan (int channum
);
88 status_t
c4_get_iidinfo (ci_t
* ci
, struct sbe_iid_info
* iip
);
89 int c4_is_chan_up (int channum
);
91 void *getuserbychan (int channum
);
92 void pci_flush_write (ci_t
* ci
);
93 void sbecom_set_loglevel (int debuglevel
);
94 char *sbeid_get_bdname (ci_t
* ci
);
95 void sbeid_set_bdtype (ci_t
* ci
);
96 void sbeid_set_hdwbid (ci_t
* ci
);
97 u_int32_t
sbeCrc (u_int8_t
*, u_int32_t
, u_int32_t
, u_int32_t
*);
99 void VMETRO_TRACE (void *); /* put data into 8 LEDs */
100 void VMETRO_TRIGGER (ci_t
*, int); /* Note: int = 0(default)
103 #if defined (SBE_ISR_TASKLET)
104 void musycc_intr_bh_tasklet (ci_t
*);
108 #endif /*** __KERNEL __ ***/
109 #endif /* _INC_PMCC4_H_ */