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