]> Pileus Git - ~andy/linux/blob - drivers/staging/vt6655/device_cfg.h
8a070c638fc187fa2a08bce6875cf772441b7ced
[~andy/linux] / drivers / staging / vt6655 / device_cfg.h
1 /*
2  * Copyright (c) 1996, 2003 VIA Networking Technologies, Inc.
3  * All rights reserved.
4  *
5  * This program is free software; you can redistribute it and/or modify
6  * it under the terms of the GNU General Public License as published by
7  * the Free Software Foundation; either version 2 of the License, or
8  * (at your option) any later version.
9  *
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13  * GNU General Public License for more details.
14  *
15  * You should have received a copy of the GNU General Public License along
16  * with this program; if not, write to the Free Software Foundation, Inc.,
17  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
18  *
19  * File: device_cfg.h
20  *
21  * Purpose: Driver configuration header
22  * Author: Lyndon Chen
23  *
24  * Date: Dec 17, 2002
25  *
26  */
27 #ifndef __DEVICE_CONFIG_H
28 #define __DEVICE_CONFIG_H
29
30 //#include <linux/config.h>
31 #include <linux/types.h>
32
33 #include "ttype.h"
34
35 typedef
36 struct _version {
37     unsigned char   major;
38     unsigned char   minor;
39     unsigned char   build;
40 } version_t, *pversion_t;
41
42 #ifndef FALSE
43 #define FALSE   (0)
44 #endif
45
46 #define VID_TABLE_SIZE      64
47 #define MCAST_TABLE_SIZE    64
48 #define MCAM_SIZE           32
49 #define VCAM_SIZE           32
50 #define TX_QUEUE_NO         8
51
52 #define DEVICE_NAME         "vt6655"
53 #define DEVICE_FULL_DRV_NAM "VIA Networking Solomon-A/B/G Wireless LAN Adapter Driver"
54
55 #ifndef MAJOR_VERSION
56 #define MAJOR_VERSION       1
57 #endif
58
59 #ifndef MINOR_VERSION
60 #define MINOR_VERSION       17
61 #endif
62
63 #ifndef DEVICE_VERSION
64 #define DEVICE_VERSION       "1.19.12"
65 #endif
66
67 //config file
68 #include <linux/fs.h>
69 #include <linux/fcntl.h>
70 #ifndef CONFIG_PATH
71 #define CONFIG_PATH            "/etc/vntconfiguration.dat"
72 #endif
73
74 //Max: 2378=2312Payload + 30HD +4CRC + 2Padding + 4Len + 8TSF + 4RSR
75 #define PKT_BUF_SZ          2390
76
77
78 #define MAX_UINTS           8
79 #define OPTION_DEFAULT      { [0 ... MAX_UINTS-1] = -1}
80
81
82
83 typedef enum  _chip_type{
84     VT3253=1
85 } CHIP_TYPE, *PCHIP_TYPE;
86
87
88
89 #ifdef VIAWET_DEBUG
90 #define ASSERT(x) { \
91     if (!(x)) { \
92         printk(KERN_ERR "assertion %s failed: file %s line %d\n", #x,\
93         __FUNCTION__, __LINE__);\
94         *(int*) 0=0;\
95     }\
96 }
97 #define DBG_PORT80(value)                   outb(value, 0x80)
98 #else
99 #define ASSERT(x)
100 #define DBG_PORT80(value)
101 #endif
102
103
104 #endif