1 /* RCSid: $Header: /home/rickd/projects/pmcc4/include/pmcc4_ioctls.h,v 2.0 2005/09/28 00:10:09 rickd PMCC4_3_1B $
2  */
3 
4 #ifndef _INC_PMCC4_IOCTLS_H_
5 #define _INC_PMCC4_IOCTLS_H_
6 
7 /*-----------------------------------------------------------------------------
8  * pmcc4_ioctls.h -
9  *
10  * Copyright (C) 2005  SBE, Inc.
11  *
12  *   This program is free software; you can redistribute it and/or modify
13  *   it under the terms of the GNU General Public License as published by
14  *   the Free Software Foundation; either version 2 of the License, or
15  *   (at your option) any later version.
16  *
17  *   This program is distributed in the hope that it will be useful,
18  *   but WITHOUT ANY WARRANTY; without even the implied warranty of
19  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
20  *   GNU General Public License for more details.
21  *
22  * For further information, contact via email: support@sbei.com
23  * SBE, Inc.  San Ramon, California  U.S.A.
24  *-----------------------------------------------------------------------------
25  * RCS info:
26  * RCS revision: $Revision: 2.0 $
27  * Last changed on $Date: 2005/09/28 00:10:09 $
28  * Changed by $Author: rickd $
29  *-----------------------------------------------------------------------------
30  * $Log: pmcc4_ioctls.h,v $
31  * Revision 2.0  2005/09/28 00:10:09  rickd
32  * Add GNU license info. Switch Ioctls to sbe_ioc.h usage.
33  *
34  * Revision 1.2  2005/04/28 23:43:03  rickd
35  * Add RCS tracking heading.
36  *
37  *-----------------------------------------------------------------------------
38  */
39 
40 #include "sbew_ioc.h"
41 
42 enum
43 {
44     // C4_GET_PORT = 0,
45     // C4_SET_PORT,
46     // C4_GET_CHAN,
47     // C4_SET_CHAN,
48     C4_DEL_CHAN = 0,
49     // C4_CREATE_CHAN,
50     // C4_GET_CHAN_STATS,
51     // C4_RESET,
52     // C4_DEBUG,
53     C4_RESET_STATS,
54     C4_LOOP_PORT,
55     C4_RW_FRMR,
56     C4_RW_MSYC,
57     C4_RW_PLD
58 };
59 
60 #define C4_GET_PORT          SBE_IOC_PORT_GET
61 #define C4_SET_PORT          SBE_IOC_PORT_SET
62 #define C4_GET_CHAN          SBE_IOC_CHAN_GET
63 #define C4_SET_CHAN          SBE_IOC_CHAN_SET
64 // #define C4_DEL_CHAN          XXX
65 #define C4_CREATE_CHAN       SBE_IOC_CHAN_NEW
66 #define C4_GET_CHAN_STATS    SBE_IOC_CHAN_GET_STAT
67 #define C4_RESET             SBE_IOC_RESET_DEV
68 #define C4_DEBUG             SBE_IOC_LOGLEVEL
69 // #define C4_RESET_STATS       XXX
70 // #define C4_LOOP_PORT         XXX
71 // #define C4_RW_FRMR           XXX
72 // #define C4_RW_MSYC           XXX
73 // #define C4_RW_PLD            XXX
74 
75 struct c4_chan_stats_wrap
76 {
77     int         channum;
78     struct sbecom_chan_stats stats;
79 };
80 
81 #endif   /* _INC_PMCC4_IOCTLS_H_ */
82