VCOM Linux Driver
Advantech Inc.
Loading...
Searching...
No Matches
vc_client_netup.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <sys/mman.h>
#include <errno.h>
#include <limits.h>
#include <sys/ioctl.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <sys/time.h>
#include <sys/socket.h>
#include <netdb.h>
#include "advioctl.h"
#include "advtype.h"
#include "vcom_proto.h"
#include "vcom_proto_cmd.h"
#include "vcom_proto_ioctl.h"
#include "vcom.h"
#include "vc_client_netdown.h"
#include "vc_client_pause.h"
#include "vc_client_idle.h"
#include "vc_client_common.h"

Macros

#define ADV_THIS   (&vc_netup_ops)
 

Functions

struct vc_opsvc_netup_xmit (struct vc_attr *attr)
 
struct vc_opsvc_netup_close (struct vc_attr *attr)
 
struct vc_opsvc_netup_open (struct vc_attr *attr)
 
struct vc_opsvc_netup_init (struct vc_attr *attr)
 
struct vc_opsvc_netup_ioctl (struct vc_attr *attr)
 
struct vc_opsvc_netup_recv (struct vc_attr *attr, char *buf, int len)
 
struct vc_opsvc_netup_pause (struct vc_attr *attr)
 
struct vc_opsvc_netup_poll (struct vc_attr *attr)
 
char * vc_netup_name (void)
 

Variables

struct vc_ops vc_netup_ops
 

Macro Definition Documentation

◆ ADV_THIS

#define ADV_THIS   (&vc_netup_ops)

Function Documentation

◆ vc_netup_close()

struct vc_ops * vc_netup_close ( struct vc_attr * attr)

◆ vc_netup_init()

struct vc_ops * vc_netup_init ( struct vc_attr * attr)

◆ vc_netup_ioctl()

struct vc_ops * vc_netup_ioctl ( struct vc_attr * attr)

◆ vc_netup_name()

char * vc_netup_name ( void )

◆ vc_netup_open()

struct vc_ops * vc_netup_open ( struct vc_attr * attr)

◆ vc_netup_pause()

struct vc_ops * vc_netup_pause ( struct vc_attr * attr)

◆ vc_netup_poll()

struct vc_ops * vc_netup_poll ( struct vc_attr * attr)

◆ vc_netup_recv()

struct vc_ops * vc_netup_recv ( struct vc_attr * attr,
char * buf,
int len )

◆ vc_netup_xmit()

struct vc_ops * vc_netup_xmit ( struct vc_attr * attr)

Variable Documentation

◆ vc_netup_ops

struct vc_ops vc_netup_ops
Initial value:
= {
.open = vc_netup_open,
.event = vc_netup_event,
}
struct vc_ops *(* recv)(struct vc_attr *, char *buf, int len)
Definition vcom.h:65
struct vc_ops *(* pause)(struct vc_attr *)
Definition vcom.h:68
struct vc_ops *(* ioctl)(struct vc_attr *)
Definition vcom.h:63
struct vc_ops *(* poll)(struct vc_attr *)
Definition vcom.h:66
struct vc_ops *(* event)(struct vc_attr *, struct timeval *, fd_set *r, fd_set *w, fd_set *e)
Definition vcom.h:70
char *(* name)(void)
Definition vcom.h:71
struct vc_ops *(* init)(struct vc_attr *)
Definition vcom.h:67
struct vc_ops *(* close)(struct vc_attr *)
Definition vcom.h:62
struct vc_ops *(* xmit)(struct vc_attr *)
Definition vcom.h:64
struct vc_ops * vc_netup_poll(struct vc_attr *attr)
Definition vc_client_netup.c:119
struct vc_ops * vc_netup_open(struct vc_attr *attr)
Definition vc_client_netup.c:55
struct vc_ops * vc_netup_ioctl(struct vc_attr *attr)
Definition vc_client_netup.c:70
struct vc_ops * vc_netup_init(struct vc_attr *attr)
Definition vc_client_netup.c:62
struct vc_ops * vc_netup_pause(struct vc_attr *attr)
Definition vc_client_netup.c:104
struct vc_ops * vc_netup_xmit(struct vc_attr *attr)
Definition vc_client_netup.c:42
char * vc_netup_name(void)
Definition vc_client_netup.c:128
struct vc_ops * vc_netup_close(struct vc_attr *attr)
Definition vc_client_netup.c:47
struct vc_ops * vc_netup_recv(struct vc_attr *attr, char *buf, int len)
Definition vc_client_netup.c:75