1#ifndef __VCOM_PROTO_CMD_H
2#define __VCOM_PROTO_CMD_H
18 printf(
"%s(%d) wrong length\n", __func__, __LINE__);
25 p2 = (
unsigned int)fsize;
33static inline int vc_pack_close(
struct vc_proto_packet * pbuf,
unsigned int tid,
int buflen)
46 printf(
"%s(%d) wrong length\n", __func__, __LINE__);
62 int datalen,
char *
data,
int buflen)
72 len = (
unsigned short)datalen;
75 printf(
"%s(%d) wrong length\n", __func__, __LINE__);
81 p1 = (
unsigned int)datalen;
94static inline int vc_check_xmit(
struct vc_proto_packet *pbuf,
int datalen,
95 unsigned int stat,
int buflen)
112 printf(
"%s(%d) wrong length\n", __func__, __LINE__);
116 printf(
"%s(%d)\n", __func__, __LINE__);
121 printf(
"%s(%d)\n", __func__, __LINE__);
126 printf(
"%s(%d)\n", __func__, __LINE__);
134static inline int vc_check_recv(
struct vc_proto_packet *pbuf,
int *datalen,
int buflen)
140 plen = (int)ntohs(pbuf->
hdr.
len);
145 printf(
"%s(%d)\n", __func__, __LINE__);
149 printf(
"%s(%d)\n", __func__, __LINE__);
160 unsigned short dev,
unsigned int port,
int buflen)
173 printf(
"%s(%d) wrong length\n", __func__, __LINE__);
190 unsigned short dev,
unsigned int port,
int buflen)
206 printf(
"%s(%d) wrong length\n", __func__, __LINE__);
210 printf(
"%s(%d)\n", __func__, __LINE__);
215 printf(
"%s(%d)\n", __func__, __LINE__);
220 printf(
"%s(%d)\n", __func__, __LINE__);
unsigned int p2
Definition vcom_proto.h:10
unsigned int p1
Definition vcom_proto.h:9
char ptr[4]
Definition vcom_proto.h:11
unsigned int p2
Definition vcom_proto.h:5
unsigned int p1
Definition vcom_proto.h:4
unsigned short len
Definition vcom_proto.h:45
Definition vcom_proto.h:52
struct vc_attach_data data
Definition vcom_proto.h:56
struct vc_attach_param param
Definition vcom_proto.h:55
struct vc_proto_hdr hdr
Definition vcom_proto.h:53
union vc_proto_packet::@0 attach
#define vc_ext_size(a)
Definition vcom_proto.h:50
struct vc_attach_data data
Definition vcom_proto.h:3
unsigned int p2
Definition vcom_proto.h:1
unsigned short cmd
Definition vcom_proto.h:2
unsigned int tid
Definition vcom_proto.h:1
unsigned int p1
Definition vcom_proto.h:0
@ VCOM_CMD_CLOSE
Definition vcom_proto.h:75
@ VCOM_CMD_QUEUEFREE
Definition vcom_proto.h:79
@ VCOM_CMD_WRITE
Definition vcom_proto.h:76
@ VCOM_CMD_CREATE
Definition vcom_proto.h:74
@ STATUS_SUCCESS
Definition vcom_proto.h:67
unsigned short len
Definition vcom_proto.h:3
#define vc_pack_size(a)
Definition vcom_proto.h:49