2010-03-14 07:45:01 +00:00
|
|
|
#ifndef _GPRS_LLC_H
|
|
|
|
#define _GPRS_LLC_H
|
|
|
|
|
2010-05-02 09:26:34 +00:00
|
|
|
#include <stdint.h>
|
|
|
|
|
2010-03-14 07:45:01 +00:00
|
|
|
/* Section 4.7 LLC Layer Structure */
|
|
|
|
enum gprs_llc_sapi {
|
|
|
|
GPRS_SAPI_GMM = 1,
|
|
|
|
GPRS_SAPI_TOM2 = 2,
|
|
|
|
GPRS_SAPI_SNDCP3 = 3,
|
|
|
|
GPRS_SAPI_SNDCP5 = 5,
|
|
|
|
GPRS_SAPI_SMS = 7,
|
|
|
|
GPRS_SAPI_TOM8 = 8,
|
|
|
|
GPRS_SAPI_SNDCP9 = 9,
|
|
|
|
GPRS_SAPI_SNDCP11 = 11,
|
|
|
|
};
|
|
|
|
|
2010-05-03 10:28:12 +00:00
|
|
|
/* Section 6.4 Commands and Responses */
|
|
|
|
enum gprs_llc_u_cmd {
|
|
|
|
GPRS_LLC_U_DM_RESP = 0x01,
|
|
|
|
GPRS_LLC_U_DISC_CMD = 0x04,
|
|
|
|
GPRS_LLC_U_UA_RESP = 0x06,
|
|
|
|
GPRS_LLC_U_SABM_CMD = 0x07,
|
|
|
|
GPRS_LLC_U_FRMR_RESP = 0x08,
|
|
|
|
GPRS_LLC_U_XID = 0x0b,
|
|
|
|
GPRS_LLC_U_NULL_CMD = 0x00,
|
|
|
|
};
|
2010-03-14 07:45:01 +00:00
|
|
|
|
|
|
|
int gprs_llc_rcvmsg(struct msgb *msg, struct tlv_parsed *tv);
|
2010-05-02 09:26:34 +00:00
|
|
|
int gprs_llc_tx_ui(struct msgb *msg, uint8_t sapi, int command);
|
2010-03-14 07:45:01 +00:00
|
|
|
|
|
|
|
#endif
|