1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27#ifndef __DEVICE_CONFIG_H
28#define __DEVICE_CONFIG_H
29
30#include <linux/types.h>
31
32#include "ttype.h"
33
34typedef
35struct _version {
36 unsigned char major;
37 unsigned char minor;
38 unsigned char build;
39} version_t, *pversion_t;
40
41#ifndef FALSE
42#define FALSE (0)
43#endif
44
45#ifndef TRUE
46#define TRUE (!(FALSE))
47#endif
48
49#define VID_TABLE_SIZE 64
50#define MCAST_TABLE_SIZE 64
51#define MCAM_SIZE 32
52#define VCAM_SIZE 32
53#define TX_QUEUE_NO 8
54
55#define DEVICE_NAME "vt6656"
56#define DEVICE_FULL_DRV_NAM "VIA Networking Wireless LAN USB Driver"
57
58#ifndef MAJOR_VERSION
59#define MAJOR_VERSION 1
60#endif
61
62#ifndef MINOR_VERSION
63#define MINOR_VERSION 13
64#endif
65
66#ifndef DEVICE_VERSION
67#define DEVICE_VERSION "1.19_12"
68#endif
69
70
71#include <linux/fs.h>
72#include <linux/fcntl.h>
73#ifndef CONFIG_PATH
74#define CONFIG_PATH "/etc/vntconfiguration.dat"
75#endif
76
77
78#define PKT_BUF_SZ 2390
79
80#define MAX_UINTS 8
81#define OPTION_DEFAULT { [0 ... MAX_UINTS-1] = -1}
82
83typedef enum _chip_type {
84 VT3184 = 1
85} CHIP_TYPE, *PCHIP_TYPE;
86
87#ifdef VIAWET_DEBUG
88#define ASSERT(x) { \
89 if (!(x)) { \
90 printk(KERN_ERR "assertion %s failed: file %s line %d\n", #x, \
91 __FUNCTION__, __LINE__);\
92 *(int *) 0 = 0; \
93 } \
94}
95#define DBG_PORT80(value) outb(value, 0x80)
96#else
97#define ASSERT(x)
98#define DBG_PORT80(value)
99#endif
100
101#endif
102