You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

45 lines
887 B

/*
* vbios.h
*
* Created on: 2019-8-13
* Author: Administrator
*/
#ifndef VBIOS_H_
#define VBIOS_H_
#include "vtask.h"
#include "vsem.h"
#include "vlock.h"
#include "vtimer.h"
#include "vtelnetd.h"
#include "vtftp.h"
#include "vconsole.h"
#include "vcmd.h"
//std io redirect
struct vbios_term_param {
int (*puts)(const char *s, int len);
int (*gets)(char *buf, int len, int blocking /*in millis*/);
};
struct vbios_net_param {
int telnet_enable;
char ip[32];
char mask[32];
char gate[32];
char domain[32];
};
struct vbios_param {
struct vbios_term_param *tp; //NULL no enable termial
struct vbios_net_param *np; //NULL no enable net
void (*usrDrvInitFunc)(void );
void (*usrAppPrevFunc)(void );
void (*usrAppFunc)(void );
};
extern int vbios_init(struct vbios_param *vp);
extern void vbios_start(void );
extern void vbios_loop(void );
#endif /* VBIOS_H_ */