diff options
author | Solomon Peachy <pizza@shaftnet.org> | 2013-06-01 08:08:42 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2013-06-03 15:54:37 -0400 |
commit | 911373cca1b45571b62938f8f19cec24cb102471 (patch) | |
tree | 9488898d55ff341723ac352c3f7eae1c2ede4a75 /drivers/net/wireless/cw1200/hwbus.h | |
parent | 3e817f086f06069a23b797ee2279bbae638d5edc (diff) |
cw1200: Rename 'sbus' to 'hwbus'
This avoids problems when building on SPARC targets due to the driver
calling the bus abstraction layer 'sbus'. Not that any SBUS-sporting
SPARC targets are likely to have an SDIO controller, but this is the
correct thing to do.
See http://kisskb.ellerman.id.au/kisskb/buildresult/8846508/
Signed-off-by: Solomon Peachy <pizza@shaftnet.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/cw1200/hwbus.h')
-rw-r--r-- | drivers/net/wireless/cw1200/hwbus.h | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/drivers/net/wireless/cw1200/hwbus.h b/drivers/net/wireless/cw1200/hwbus.h new file mode 100644 index 000000000000..8b2fc831c3de --- /dev/null +++ b/drivers/net/wireless/cw1200/hwbus.h | |||
@@ -0,0 +1,33 @@ | |||
1 | /* | ||
2 | * Common hwbus abstraction layer interface for cw1200 wireless driver | ||
3 | * | ||
4 | * Copyright (c) 2010, ST-Ericsson | ||
5 | * Author: Dmitry Tarnyagin <dmitry.tarnyagin@lockless.no> | ||
6 | * | ||
7 | * This program is free software; you can redistribute it and/or modify | ||
8 | * it under the terms of the GNU General Public License version 2 as | ||
9 | * published by the Free Software Foundation. | ||
10 | */ | ||
11 | |||
12 | #ifndef CW1200_HWBUS_H | ||
13 | #define CW1200_HWBUS_H | ||
14 | |||
15 | struct hwbus_priv; | ||
16 | |||
17 | void cw1200_irq_handler(struct cw1200_common *priv); | ||
18 | |||
19 | /* This MUST be wrapped with hwbus_ops->lock/unlock! */ | ||
20 | int __cw1200_irq_enable(struct cw1200_common *priv, int enable); | ||
21 | |||
22 | struct hwbus_ops { | ||
23 | int (*hwbus_memcpy_fromio)(struct hwbus_priv *self, unsigned int addr, | ||
24 | void *dst, int count); | ||
25 | int (*hwbus_memcpy_toio)(struct hwbus_priv *self, unsigned int addr, | ||
26 | const void *src, int count); | ||
27 | void (*lock)(struct hwbus_priv *self); | ||
28 | void (*unlock)(struct hwbus_priv *self); | ||
29 | size_t (*align_size)(struct hwbus_priv *self, size_t size); | ||
30 | int (*power_mgmt)(struct hwbus_priv *self, bool suspend); | ||
31 | }; | ||
32 | |||
33 | #endif /* CW1200_HWBUS_H */ | ||