drivers: power: report battery voltage in AOSP compatible format
[GitHub/mt8127/android_kernel_alcatel_ttab.git] / drivers / staging / vt6656 / device_cfg.h
CommitLineData
66252c3a
FB
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 9, 2005
25 *
26 */
27#ifndef __DEVICE_CONFIG_H
28#define __DEVICE_CONFIG_H
29
66252c3a
FB
30#include <linux/types.h>
31
66252c3a
FB
32typedef
33struct _version {
193a823c
JL
34 unsigned char major;
35 unsigned char minor;
36 unsigned char build;
66252c3a
FB
37} version_t, *pversion_t;
38
e269fc2d
AM
39#ifndef false
40#define false (0)
66252c3a
FB
41#endif
42
4e9b5e2b
AM
43#ifndef true
44#define true (!(false))
66252c3a
FB
45#endif
46
47#define VID_TABLE_SIZE 64
48#define MCAST_TABLE_SIZE 64
49#define MCAM_SIZE 32
50#define VCAM_SIZE 32
51#define TX_QUEUE_NO 8
52
f02a8cbc 53#define DEVICE_NAME "vt6656"
66252c3a
FB
54#define DEVICE_FULL_DRV_NAM "VIA Networking Wireless LAN USB Driver"
55
56#ifndef MAJOR_VERSION
57#define MAJOR_VERSION 1
58#endif
59
60#ifndef MINOR_VERSION
61#define MINOR_VERSION 13
62#endif
63
64#ifndef DEVICE_VERSION
65#define DEVICE_VERSION "1.19_12"
66#endif
67
d3e23951 68/* config file */
66252c3a
FB
69#include <linux/fs.h>
70#include <linux/fcntl.h>
71#ifndef CONFIG_PATH
72#define CONFIG_PATH "/etc/vntconfiguration.dat"
73#endif
74
d3e23951 75/* Max: 2378 = 2312 Payload + 30HD + 4CRC + 2Padding + 4Len + 8TSF + 4RSR */
66252c3a
FB
76#define PKT_BUF_SZ 2390
77
66252c3a
FB
78#define MAX_UINTS 8
79#define OPTION_DEFAULT { [0 ... MAX_UINTS-1] = -1}
80
d9d1ccb5
AM
81typedef enum _chip_type {
82 VT3184 = 1
66252c3a
FB
83} CHIP_TYPE, *PCHIP_TYPE;
84
66252c3a
FB
85#ifdef VIAWET_DEBUG
86#define ASSERT(x) { \
87 if (!(x)) { \
d9d1ccb5 88 printk(KERN_ERR "assertion %s failed: file %s line %d\n", #x, \
66252c3a 89 __FUNCTION__, __LINE__);\
d9d1ccb5
AM
90 *(int *) 0 = 0; \
91 } \
66252c3a
FB
92}
93#define DBG_PORT80(value) outb(value, 0x80)
94#else
95#define ASSERT(x)
96#define DBG_PORT80(value)
97#endif
98
66252c3a 99#endif