Fix compilation errors on FreeBSD.
[wine/dibdrv.git] / include / nb30.h
blob4526d00894bc64e53bd2e703f84636db20b45f60
1 #ifndef NCB_INCLUDED
2 #define NCB_INCLUDED
4 #ifdef __cplusplus
5 extern "C" {
6 #endif
8 #define NCBNAMSZ 16
9 #define MAX_LANA 0xfe
11 #define NCBRESET 0x32
12 #define NCBADDNAME 0x30
13 #define NCBADDGRNAME 0x36
14 #define NCBDELNAME 0x31
15 #define NCBSEND 0x14
16 #define NCBRECV 0x15
17 #define NCBHANGUP 0x12
18 #define NCBCANCEL 0x35
19 #define NCBLISTEN 0x11
20 #define NCBCALL 0x10
21 #define NCBASTAT 0x33
22 #define NCBENUM 0x37
24 typedef struct _NCB
26 UCHAR ncb_command;
27 UCHAR ncb_retcode;
28 UCHAR ncb_lsn;
29 UCHAR ncb_num;
30 PUCHAR ncb_buffer;
31 WORD ncb_length;
32 UCHAR ncb_callname[NCBNAMSZ];
33 UCHAR ncb_name[NCBNAMSZ];
34 UCHAR ncb_rto;
35 UCHAR ncb_sto;
36 VOID (*ncb_post)(struct _NCB *);
37 UCHAR ncb_lana_num;
38 UCHAR ncb_cmd_cplt;
39 UCHAR ncb_reserved[10];
40 HANDLE ncb_event;
41 } NCB, *PNCB;
43 typedef struct _ADAPTER_STATUS
45 UCHAR adapter_address[6];
46 UCHAR rev_major;
47 UCHAR reserved0;
48 UCHAR adapter_type;
49 UCHAR rev_minor;
50 WORD duration;
51 WORD frmr_recv;
52 WORD frmr_xmit;
53 WORD iframe_recv_error;
54 WORD xmit_aborts;
55 DWORD xmit_success;
56 DWORD recv_success;
57 WORD iframe_xmit_error;
58 WORD recv_buffer_unavail;
59 WORD t1_timeouts;
60 WORD ti_timeouts;
61 DWORD reserved1;
62 WORD free_ncbs;
63 WORD max_cfg_ncbs;
64 WORD max_ncbs;
65 WORD xmit_buf_unavail;
66 WORD max_dgram_size;
67 WORD pending_sess;
68 WORD max_cfg_sess;
69 WORD max_sess;
70 WORD max_sess_pktsize;
71 WORD name_count;
72 } ADAPTER_STATUS, *PADAPTER_STATUS;
74 typedef struct _LANA_ENUM
76 UCHAR length;
77 UCHAR lana[MAX_LANA+1];
78 } LANA_ENUM, *PLANA_ENUM;
80 #define NRC_GOODRET 0x00
81 #define NRC_BUFLEN 0x01
82 #define NRC_ILLCMD 0x03
83 #define NRC_CMDTMO 0x05
84 #define NRC_INCOMP 0x06
85 #define NRC_INVADDRESS 0x39
86 #define NRC_PENDING 0xff
87 #define NRC_OPENERROR 0x3f
89 #ifdef __cplusplus
91 #endif
93 #endif /* NCB_INCLUDED */