blob: a4a8a8489e0befe93488c80130c53f92422ce98e [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
Forest Bond1cb648b2009-04-25 10:31:32 -040030#include <linux/types.h>
31
Forest Bond1cb648b2009-04-25 10:31:32 -040032typedef
33struct _version {
Joe Perches74533af2013-03-18 10:44:46 -070034 unsigned char major;
35 unsigned char minor;
36 unsigned char build;
Forest Bond1cb648b2009-04-25 10:31:32 -040037} version_t, *pversion_t;
38
Forest Bond1cb648b2009-04-25 10:31:32 -040039#define VID_TABLE_SIZE 64
40#define MCAST_TABLE_SIZE 64
41#define MCAM_SIZE 32
42#define VCAM_SIZE 32
43#define TX_QUEUE_NO 8
44
Forest Bonde2ce5272009-05-04 21:48:27 -040045#define DEVICE_NAME "vt6655"
Forest Bond1cb648b2009-04-25 10:31:32 -040046#define DEVICE_FULL_DRV_NAM "VIA Networking Solomon-A/B/G Wireless LAN Adapter Driver"
47
48#ifndef MAJOR_VERSION
49#define MAJOR_VERSION 1
50#endif
51
52#ifndef MINOR_VERSION
53#define MINOR_VERSION 17
54#endif
55
56#ifndef DEVICE_VERSION
57#define DEVICE_VERSION "1.19.12"
58#endif
Jim Lieb612822f2009-08-12 14:54:03 -070059
Forest Bond1cb648b2009-04-25 10:31:32 -040060#include <linux/fs.h>
61#include <linux/fcntl.h>
62#ifndef CONFIG_PATH
63#define CONFIG_PATH "/etc/vntconfiguration.dat"
64#endif
65
Forest Bond1cb648b2009-04-25 10:31:32 -040066#define PKT_BUF_SZ 2390
67
Joe Perches74533af2013-03-18 10:44:46 -070068typedef enum _chip_type {
69 VT3253 = 1
Forest Bond1cb648b2009-04-25 10:31:32 -040070} CHIP_TYPE, *PCHIP_TYPE;
71
Forest Bond1cb648b2009-04-25 10:31:32 -040072#ifdef VIAWET_DEBUG
Joe Perchesbda2a442013-03-18 20:55:40 -070073#define ASSERT(x) \
74do { \
75 if (!(x)) { \
Guillaume Clement941ead92014-07-25 01:06:21 +020076 pr_err("assertion %s failed: file %s line %d\n", \
Joe Perchesbda2a442013-03-18 20:55:40 -070077 #x, __func__, __LINE__); \
78 *(int *)0 = 0; \
79 } \
80} while (0)
Forest Bond1cb648b2009-04-25 10:31:32 -040081#define DBG_PORT80(value) outb(value, 0x80)
82#else
83#define ASSERT(x)
84#define DBG_PORT80(value)
85#endif
86
Forest Bond1cb648b2009-04-25 10:31:32 -040087#endif