- Visual C++源码
- Visual Basic源码
- C++ Builder源码
- Java源码
- Delphi源码
- C/C++源码
- PHP源码
- Perl源码
- Python源码
- Asm源码
- Pascal源码
- Borland C++源码
- Others源码
- SQL源码
- VBScript源码
- JavaScript源码
- ASP/ASPX源码
- C#源码
- Flash/ActionScript源码
- matlab源码
- PowerBuilder源码
- LabView源码
- Flex源码
- MathCAD源码
- VBA源码
- IDL源码
- Lisp/Scheme源码
- VHDL源码
- Objective-C源码
- Fortran源码
- tcl/tk源码
- QT源码
asy.h
资源名称:export.zip [点击查看]
上传用户:hepax88
上传日期:2007-01-03
资源大小:1101k
文件大小:1k
源码类别:
TCP/IP协议栈
开发平台:
Visual C++
- #ifndef _ASY_H
- #define _ASY_H
- #ifndef _GLOBAL_H
- #include "global.h"
- #endif
- #ifndef _MBUF_H
- #include "mbuf.h"
- #endif
- #ifndef _IFACE_H
- #include "iface.h"
- #endif
- /* If you increase this, you must add additional interrupt vector
- * hooks in asyvec.asm
- */
- #define ASY_MAX 6
- #define FPORT_MAX 1
- struct asymode {
- char *name;
- int trigchar;
- int (*init)(struct iface *);
- int (*free)(struct iface *);
- };
- extern struct asymode Asymode[];
- /* In n8250.c: */
- int asy_init(int dev,struct iface *ifp,int base,int irq,
- uint16 bufsize,int trigchar,long speed,int cts,int rlsd,int chain);
- int32 asy_ioctl(struct iface *ifp,int cmd,int set,int32 val);
- int asy_read(int dev,void *buf,unsigned short cnt);
- int asy_open(char *name);
- int asy_close(int dev);
- int asy_speed(int dev,long bps);
- int asy_send(int dev,struct mbuf **bpp);
- int asy_stop(struct iface *ifp);
- int asy_write(int dev,void *buf,unsigned short cnt);
- int get_rlsd_asy(int dev, int new_rlsd);
- int get_asy(int dev);
- void fp_stop(void);
- /* In asyvec.asm: */
- INTERRUPT asy0vec(void);
- INTERRUPT asy1vec(void);
- INTERRUPT asy2vec(void);
- INTERRUPT asy3vec(void);
- INTERRUPT asy4vec(void);
- INTERRUPT asy5vec(void);
- /* In fourport.asm: */
- INTERRUPT fp0vec(void);
- #endif /* _ASY_H */