]> bbs.cooldavid.org Git - net-next-2.6.git/blame - include/linux/wl12xx.h
ipv6: AF_INET6 link address family
[net-next-2.6.git] / include / linux / wl12xx.h
CommitLineData
2f01a1f5
KV
1/*
2 * This file is part of wl12xx
3 *
4 * Copyright (C) 2009 Nokia Corporation
5 *
4c5f7d7a 6 * Contact: Luciano Coelho <luciano.coelho@nokia.com>
2f01a1f5
KV
7 *
8 * This program is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU General Public License
10 * version 2 as published by the Free Software Foundation.
11 *
12 * This program is distributed in the hope that it will be useful, but
13 * WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 * General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License
18 * along with this program; if not, write to the Free Software
19 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
20 * 02110-1301 USA
21 *
22 */
23
c1f9a095
OBC
24#ifndef _LINUX_WL12XX_H
25#define _LINUX_WL12XX_H
2f01a1f5 26
c8aea565
GK
27/* The board reference clock values */
28enum {
29 WL12XX_REFCLOCK_19 = 0, /* 19.2 MHz */
30 WL12XX_REFCLOCK_26 = 1, /* 26 MHz */
31 WL12XX_REFCLOCK_38 = 2, /* 38.4 MHz */
32 WL12XX_REFCLOCK_54 = 3, /* 54 MHz */
33};
34
2f01a1f5
KV
35struct wl12xx_platform_data {
36 void (*set_power)(bool enable);
a02a2956
GI
37 /* SDIO only: IRQ number if WLAN_IRQ line is used, 0 for SDIO IRQs */
38 int irq;
c95cf3d0 39 bool use_eeprom;
15cea993 40 int board_ref_clock;
2f01a1f5
KV
41};
42
65836112
OBC
43#ifdef CONFIG_WL12XX_PLATFORM_DATA
44
61ee7007 45int wl12xx_set_platform_data(const struct wl12xx_platform_data *data);
65836112
OBC
46
47#else
48
49static inline
50int wl12xx_set_platform_data(const struct wl12xx_platform_data *data)
51{
52 return -ENOSYS;
53}
54
55#endif
56
61ee7007
OBC
57const struct wl12xx_platform_data *wl12xx_get_platform_data(void);
58
2f01a1f5 59#endif