1 /******************************************************************************
3 ** FILE NAME : ifx_atm.h
9 ** DESCRIPTION : Global ATM driver header file
10 ** COPYRIGHT : Copyright (c) 2006
11 ** Infineon Technologies AG
12 ** Am Campeon 1-12, 85579 Neubiberg, Germany
14 ** This program is free software; you can redistribute it and/or modify
15 ** it under the terms of the GNU General Public License as published by
16 ** the Free Software Foundation; either version 2 of the License, or
17 ** (at your option) any later version.
20 ** $Date $Author $Comment
21 ** 07 JUL 2009 Xu Liang Init Version
22 *******************************************************************************/
30 \defgroup IFX_ATM UEIP Project - ATM driver module
31 \brief UEIP Project - ATM driver module, support Danube, Amazon-SE, AR9, VR9.
35 \defgroup IFX_ATM_IOCTL IOCTL Commands
37 \brief IOCTL Commands used by user application.
41 \defgroup IFX_ATM_STRUCT Structures
43 \brief Structures used by user application.
49 \brief ATM driver header file
55 * ####################################
57 * ####################################
61 \addtogroup IFX_ATM_STRUCT
70 __u32 ifHCInOctets_h
; /*!< byte counter of ingress cells (upper 32 bits, total 64 bits) */
71 __u32 ifHCInOctets_l
; /*!< byte counter of ingress cells (lower 32 bits, total 64 bits) */
72 __u32 ifHCOutOctets_h
; /*!< byte counter of egress cells (upper 32 bits, total 64 bits) */
73 __u32 ifHCOutOctets_l
; /*!< byte counter of egress cells (lower 32 bits, total 64 bits) */
74 __u32 ifInErrors
; /*!< counter of error ingress cells */
75 __u32 ifInUnknownProtos
; /*!< counter of unknown ingress cells */
76 __u32 ifOutErrors
; /*!< counter of error egress cells */
80 __u32 ifHCInOctets_h
; /*!< byte counter of ingress packets (upper 32 bits, total 64 bits) */
81 __u32 ifHCInOctets_l
; /*!< byte counter of ingress packets (lower 32 bits, total 64 bits) */
82 __u32 ifHCOutOctets_h
; /*!< byte counter of egress packets (upper 32 bits, total 64 bits) */
83 __u32 ifHCOutOctets_l
; /*!< byte counter of egress packets (lower 32 bits, total 64 bits) */
84 __u32 ifInUcastPkts
; /*!< counter of ingress packets */
85 __u32 ifOutUcastPkts
; /*!< counter of egress packets */
86 __u32 ifInErrors
; /*!< counter of error ingress packets */
87 __u32 ifInDiscards
; /*!< counter of dropped ingress packets */
88 __u32 ifOutErros
; /*!< counter of error egress packets */
89 __u32 ifOutDiscards
; /*!< counter of dropped egress packets */
93 __u32 aal5VccCrcErrors
; /*!< counter of ingress packets with CRC error */
94 __u32 aal5VccSarTimeOuts
; /*!< counter of ingress packets with Re-assemble timeout */ //no timer support yet
95 __u32 aal5VccOverSizedSDUs
; /*!< counter of oversized ingress packets */
99 int vpi
; /*!< VPI of the VCC to get MIB counters */
100 int vci
; /*!< VCI of the VCC to get MIB counters */
101 atm_aal5_vcc_t mib_vcc
; /*!< structure to get MIB counters */
109 * ####################################
111 * ####################################
115 \addtogroup IFX_ATM_IOCTL
123 \brief ATM IOCTL Magic Number
125 #define PPE_ATM_IOC_MAGIC 'o'
127 \brief ATM IOCTL Command - Get Cell Level MIB Counters
129 This command is obsolete. User can get cell level MIB from DSL API.
130 This command uses structure "atm_cell_ifEntry_t" as parameter for output of MIB counters.
132 #define PPE_ATM_MIB_CELL _IOW(PPE_ATM_IOC_MAGIC, 0, atm_cell_ifEntry_t)
134 \brief ATM IOCTL Command - Get AAL5 Level MIB Counters
136 Get AAL5 packet counters.
137 This command uses structure "atm_aal5_ifEntry_t" as parameter for output of MIB counters.
139 #define PPE_ATM_MIB_AAL5 _IOW(PPE_ATM_IOC_MAGIC, 1, atm_aal5_ifEntry_t)
141 \brief ATM IOCTL Command - Get Per PVC MIB Counters
143 Get AAL5 packet counters for each PVC.
144 This command uses structure "atm_aal5_vcc_x_t" as parameter for input of VPI/VCI information and output of MIB counters.
146 #define PPE_ATM_MIB_VCC _IOWR(PPE_ATM_IOC_MAGIC, 2, atm_aal5_vcc_x_t)
148 \brief Total Number of ATM IOCTL Commands
150 #define PPE_ATM_IOC_MAXNR 3
157 * ####################################
159 * ####################################
163 struct port_cell_info
{
164 unsigned int port_num
;
165 unsigned int tx_link_rate
[2];