blob: d1e9c1930bdba530696a66b24ae8776ff0a35c3f [file] [log] [blame]
Forest Bond1cb648b2009-04-25 10:31:32 -04001/*
Jim Lieb612822f2009-08-12 14:54:03 -07002 * Copyright (c) 1996, 2003 VIA Networking Technologies, Inc.
3 * All rights reserved.
Forest Bond1cb648b2009-04-25 10:31:32 -04004 *
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 *
Forest Bond1cb648b2009-04-25 10:31:32 -040019 * 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
Forest Bond1cb648b2009-04-25 10:31:32 -040033#include "ttype.h"
Forest Bond1cb648b2009-04-25 10:31:32 -040034
35typedef
36struct _version {
Jim Lieba8848472009-08-12 14:54:07 -070037 unsigned char major;
38 unsigned char minor;
39 unsigned char build;
Forest Bond1cb648b2009-04-25 10:31:32 -040040} version_t, *pversion_t;
41
42#ifndef FALSE
43#define FALSE (0)
44#endif
45
46#ifndef TRUE
47#define TRUE (!(FALSE))
48#endif
49
50#define VID_TABLE_SIZE 64
51#define MCAST_TABLE_SIZE 64
52#define MCAM_SIZE 32
53#define VCAM_SIZE 32
54#define TX_QUEUE_NO 8
55
Forest Bonde2ce5272009-05-04 21:48:27 -040056#define DEVICE_NAME "vt6655"
Forest Bond1cb648b2009-04-25 10:31:32 -040057#define DEVICE_FULL_DRV_NAM "VIA Networking Solomon-A/B/G Wireless LAN Adapter Driver"
58
59#ifndef MAJOR_VERSION
60#define MAJOR_VERSION 1
61#endif
62
63#ifndef MINOR_VERSION
64#define MINOR_VERSION 17
65#endif
66
67#ifndef DEVICE_VERSION
68#define DEVICE_VERSION "1.19.12"
69#endif
Jim Lieb612822f2009-08-12 14:54:03 -070070
Forest Bond1cb648b2009-04-25 10:31:32 -040071//config file
72#include <linux/fs.h>
73#include <linux/fcntl.h>
74#ifndef CONFIG_PATH
75#define CONFIG_PATH "/etc/vntconfiguration.dat"
76#endif
77
78//Max: 2378=2312Payload + 30HD +4CRC + 2Padding + 4Len + 8TSF + 4RSR
79#define PKT_BUF_SZ 2390
80
81
Forest Bond1cb648b2009-04-25 10:31:32 -040082#define MAX_UINTS 8
83#define OPTION_DEFAULT { [0 ... MAX_UINTS-1] = -1}
84
85
86
87typedef enum _chip_type{
88 VT3253=1
89} CHIP_TYPE, *PCHIP_TYPE;
90
91
92
93#ifdef VIAWET_DEBUG
94#define ASSERT(x) { \
95 if (!(x)) { \
96 printk(KERN_ERR "assertion %s failed: file %s line %d\n", #x,\
97 __FUNCTION__, __LINE__);\
98 *(int*) 0=0;\
99 }\
100}
101#define DBG_PORT80(value) outb(value, 0x80)
102#else
103#define ASSERT(x)
104#define DBG_PORT80(value)
105#endif
106
107
108#endif