mirror of
https://github.com/reactos/reactos.git
synced 2025-07-05 11:31:20 +00:00
[DDK]
- atm.h : Introduce pragma once, apply consistent formatting and add some missing definitions. svn path=/branches/header-work/; revision=46799
This commit is contained in:
parent
3d615f92df
commit
f0e3db2b34
1 changed files with 281 additions and 267 deletions
|
@ -20,8 +20,7 @@
|
|||
*
|
||||
*/
|
||||
|
||||
#ifndef _ATM_H
|
||||
#define _ATM_H
|
||||
#pragma once
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
|
@ -53,7 +52,7 @@ typedef ULONG ATM_AAL_TYPE, *PATM_AAL_TYPE;
|
|||
#define ATM_ADDR_E164_START_CHAR L'+'
|
||||
#define ATM_ADDR_PUNCTUATION_CHAR L'.'
|
||||
|
||||
typedef enum {
|
||||
typedef enum _Q2931_IE_TYPE {
|
||||
IE_AALParameters,
|
||||
IE_TrafficDescriptor,
|
||||
IE_BroadbandBearerCapability,
|
||||
|
@ -137,21 +136,12 @@ struct _ATM_AAL0_INFO {
|
|||
UCHAR PayLoadTypeIdentifier;
|
||||
};
|
||||
|
||||
/* FIXME: Should the union be anonymous in C++ too? */
|
||||
typedef struct _ATM_AAL_OOB_INFO
|
||||
{
|
||||
typedef struct _ATM_AAL_OOB_INFO {
|
||||
ATM_AAL_TYPE AalType;
|
||||
#ifndef __cplusplus
|
||||
_ANONYMOUS_UNION
|
||||
#endif
|
||||
union {
|
||||
struct _ATM_AAL5_INFO ATM_AAL5_INFO;
|
||||
struct _ATM_AAL0_INFO ATM_AAL0_INFO;
|
||||
#ifndef __cplusplus
|
||||
} DUMMYUNIONNAME;
|
||||
#else
|
||||
} u;
|
||||
#endif
|
||||
};
|
||||
} ATM_AAL_OOB_INFO, *PATM_AAL_OOB_INFO;
|
||||
|
||||
typedef struct _ATM_ADDRESS {
|
||||
|
@ -160,6 +150,15 @@ typedef struct _ATM_ADDRESS {
|
|||
UCHAR Address[ATM_ADDRESS_LENGTH];
|
||||
} ATM_ADDRESS, *PATM_ADDRESS;
|
||||
|
||||
#define ATM_PHYS_RATE_SONET_STS3C 155520000
|
||||
#define ATM_PHYS_RATE_IBM_25 25600000
|
||||
|
||||
#define ATM_CELL_TRANSFER_CAPACITY_SONET_STS3C 149760000
|
||||
#define ATM_CELL_TRANSFER_CAPACITY_IBM_25 25125926
|
||||
|
||||
#define ATM_USER_DATA_RATE_SONET_155 1356317
|
||||
#define ATM_USER_DATA_RATE_IBM_25 227556
|
||||
|
||||
/* ATM_BHLI_IE.HighLayerInfoType constants */
|
||||
#define BHLI_ISO 0x00
|
||||
#define BHLI_UserSpecific 0x01
|
||||
|
@ -340,6 +339,17 @@ typedef ULONG ATM_SERVICE_CATEGORY, *PATM_SERVICE_CATEGORY;
|
|||
/* ATM_FLOW_PARAMETERS.Reserved1 constants */
|
||||
#define ATM_FLOW_PARAMS_RSVD1_MPP 0x01
|
||||
|
||||
#ifndef SAP_FIELD_ABSENT
|
||||
#define SAP_FIELD_ABSENT ((ULONG)0xfffffffe)
|
||||
#endif
|
||||
|
||||
#ifndef SAP_FIELD_ANY
|
||||
#define SAP_FIELD_ANY ((ULONG)0xffffffff)
|
||||
#endif
|
||||
|
||||
#define SAP_FIELD_ANY_AESA_SEL ((ULONG)0xfffffffa)
|
||||
#define SAP_FIELD_ANY_AESA_REST ((ULONG)0xfffffffb)
|
||||
|
||||
typedef struct _ATM_FLOW_PARAMETERS {
|
||||
ATM_SERVICE_CATEGORY ServiceCategory;
|
||||
ULONG AverageCellRate;
|
||||
|
@ -418,7 +428,6 @@ typedef struct _ATM_TRAFFIC_DESCRIPTOR {
|
|||
ULONG SustainableCellRateCLP01;
|
||||
ULONG MaximumBurstSizeCLP0;
|
||||
ULONG MaximumBurstSizeCLP01;
|
||||
BOOLEAN BestEffort;
|
||||
BOOLEAN Tagging;
|
||||
} ATM_TRAFFIC_DESCRIPTOR, *PATM_TRAFFIC_DESCRIPTOR;
|
||||
|
||||
|
@ -448,6 +457,7 @@ typedef struct _ATM_LIJ_CALLID_IE {
|
|||
/* Q2931_ADD_PVC.Flags constants */
|
||||
#define CO_FLAG_SIGNALING_VC 0x00000001
|
||||
#define CO_FLAG_NO_DEST_SAP 0x00000002
|
||||
#define CO_FLAG_NO_LOCAL_SAP 0x00000004
|
||||
|
||||
typedef struct _Q2931_ADD_PVC {
|
||||
ATM_ADDRESS CalledParty;
|
||||
|
@ -467,6 +477,12 @@ typedef struct _Q2931_DELETE_PVC {
|
|||
ATM_VPIVCI ConnectionId;
|
||||
} Q2931_DELETE_PVC, *PQ2931_DELETE_PVC;
|
||||
|
||||
typedef struct _CO_GET_CALL_INFORMATION {
|
||||
ULONG CallInfoType;
|
||||
ULONG CallInfoLength;
|
||||
PVOID CallInfoBuffer;
|
||||
} CO_GET_CALL_INFORMATION, *PCO_GET_CALL_INFORMATION;
|
||||
|
||||
typedef ATM_ADDRESS ATM_CALLED_PARTY_NUMBER_IE;
|
||||
typedef ATM_ADDRESS ATM_CALLED_PARTY_SUBADDRESS_IE;
|
||||
typedef ATM_ADDRESS ATM_CALLING_PARTY_SUBADDRESS_IE;
|
||||
|
@ -499,5 +515,3 @@ typedef struct _ATM_SERVICE_ADDRESS_LIST {
|
|||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif /* _ATM_H */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue