1#ifndef __VCOM_PROTO_IOCTL_H
2#define __VCOM_PROTO_IOCTL_H
13 unsigned int pflags,
int buflen)
26 printf(
"%s(%d) wrong length\n", __func__, __LINE__);
45static inline int vc_check_ioctl(
struct vc_proto_packet * pbuf,
int buflen,
53 printf(
"%s(%d) wrong length %d should be %d\n", __func__, __LINE__, plen, buflen);
58 return func(pbuf, buflen, in);
64 unsigned int baud,
int buflen)
77 printf(
"%s(%d) wrong length\n", __func__, __LINE__);
95 unsigned int tid,
unsigned int subcmd,
int buflen)
107 printf(
"%s(%d) wrong length\n", __func__, __LINE__);
123static inline int vc_pack_womask(
struct vc_proto_packet *pbuf,
unsigned int tid,
int buflen)
128static inline int vc_pack_setrts(
struct vc_proto_packet *pbuf,
unsigned int tid,
int buflen)
133static inline int vc_pack_setdtr(
struct vc_proto_packet *pbuf,
unsigned int tid,
int buflen)
138static inline int vc_pack_clrrts(
struct vc_proto_packet *pbuf,
unsigned int tid,
int buflen)
143static inline int vc_pack_clrdtr(
struct vc_proto_packet *pbuf,
unsigned int tid,
int buflen)
149static inline int vc_pack_getmodem(
struct vc_proto_packet *pbuf,
unsigned int tid,
int buflen)
167 printf(
"%s(%d) wrong length\n", __func__, __LINE__);
190 unsigned int mask,
int buflen)
202 printf(
"%s(%d) wrong length\n", __func__, __LINE__);
219static inline int vc_pack_getwmask(
struct vc_proto_packet * pbuf,
unsigned int tid,
int buflen)
231 printf(
"%s(%d) wrong length\n", __func__, __LINE__);
248 unsigned char pair,
unsigned char dbit,
unsigned char sbit,
int buflen)
260 printf(
"%s(%d) wrong length\n", __func__, __LINE__);
unsigned int chflow
Definition vcom_proto.h:23
unsigned int flowrep
Definition vcom_proto.h:24
unsigned int xonlimit
Definition vcom_proto.h:25
unsigned char sbit
Definition vcom_proto.h:32
unsigned char dbit
Definition vcom_proto.h:34
unsigned char pair
Definition vcom_proto.h:33
unsigned int p2
Definition vcom_proto.h:5
unsigned int p1
Definition vcom_proto.h:4
unsigned int uint
Definition vcom_proto.h:17
Definition vcom_proto.h:52
struct vc_attach_hflow hflow
Definition vcom_proto.h:58
struct vc_attach_lctrl lctrl
Definition vcom_proto.h:59
struct vc_attach_uint uint32
Definition vcom_proto.h:57
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
unsigned int chflow
Definition vcom_proto.h:2
unsigned int p2
Definition vcom_proto.h:1
unsigned int flowrep
Definition vcom_proto.h:3
unsigned short cmd
Definition vcom_proto.h:2
unsigned int tid
Definition vcom_proto.h:1
@ VCOM_IOCTL_GET_MODEMSTATUS
Definition vcom_proto.h:109
@ VCOM_IOCTL_SET_HANDFLOW
Definition vcom_proto.h:108
@ VCOM_IOCTL_SET_WAIT_MASK
Definition vcom_proto.h:100
@ VCOM_IOCTL_SET_DTR
Definition vcom_proto.h:93
@ VCOM_IOCTL_WAIT_ON_MASK
Definition vcom_proto.h:101
@ VCOM_IOCTL_GET_WAIT_MASK
Definition vcom_proto.h:99
@ VCOM_IOCTL_SET_RTS
Definition vcom_proto.h:95
@ VCOM_IOCTL_PURGE
Definition vcom_proto.h:102
@ VCOM_IOCTL_CLR_RTS
Definition vcom_proto.h:96
@ VCOM_IOCTL_CLR_DTR
Definition vcom_proto.h:94
@ VCOM_IOCTL_SET_LINE_CONTROL
Definition vcom_proto.h:87
@ VCOM_IOCTL_SET_BAUD_RATE
Definition vcom_proto.h:86
unsigned char sbit
Definition vcom_proto.h:2
unsigned int p1
Definition vcom_proto.h:0
unsigned char dbit
Definition vcom_proto.h:4
unsigned char pair
Definition vcom_proto.h:3
@ VCOM_CMD_IOCTL
Definition vcom_proto.h:77
unsigned short len
Definition vcom_proto.h:3
#define vc_pack_size(a)
Definition vcom_proto.h:49
int(* do_check)(struct vc_proto_packet *pbuf, int buflen, void *in)
Definition vcom_proto_ioctl.h:43