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
31#include <linux/types.h>
32
33#include "ttype.h"
34
35typedef
36struct _version {
37 unsigned char major;
38 unsigned char minor;
39 unsigned char build;
40} version_t, *pversion_t;
41
42#define VID_TABLE_SIZE 64
43#define MCAST_TABLE_SIZE 64
44#define MCAM_SIZE 32
45#define VCAM_SIZE 32
46#define TX_QUEUE_NO 8
47
48#define DEVICE_NAME "vt6655"
49#define DEVICE_FULL_DRV_NAM "VIA Networking Solomon-A/B/G Wireless LAN Adapter Driver"
50
51#ifndef MAJOR_VERSION
52#define MAJOR_VERSION 1
53#endif
54
55#ifndef MINOR_VERSION
56#define MINOR_VERSION 17
57#endif
58
59#ifndef DEVICE_VERSION
60#define DEVICE_VERSION "1.19.12"
61#endif
62
63
64#include <linux/fs.h>
65#include <linux/fcntl.h>
66#ifndef CONFIG_PATH
67#define CONFIG_PATH "/etc/vntconfiguration.dat"
68#endif
69
70
71#define PKT_BUF_SZ 2390
72
73#define MAX_UINTS 8
74#define OPTION_DEFAULT { [0 ... MAX_UINTS-1] = -1}
75
76typedef enum _chip_type {
77 VT3253 = 1
78} CHIP_TYPE, *PCHIP_TYPE;
79
80#ifdef VIAWET_DEBUG
81#define ASSERT(x) \
82do { \
83 if (!(x)) { \
84 printk(KERN_ERR "assertion %s failed: file %s line %d\n", \
85 #x, __func__, __LINE__); \
86 *(int *)0 = 0; \
87 } \
88} while (0)
89#define DBG_PORT80(value) outb(value, 0x80)
90#else
91#define ASSERT(x)
92#define DBG_PORT80(value)
93#endif
94
95#endif
96