ARM: mm: Recreate kernel mappings in early_paging_init()
[linux/fpc-iii.git] / drivers / net / wireless / cw1200 / hwbus.h
blob51dfb3a90735521f18a1c572440e3ec8e486f5c8
1 /*
2 * Common hwbus abstraction layer interface for cw1200 wireless driver
4 * Copyright (c) 2010, ST-Ericsson
5 * Author: Dmitry Tarnyagin <dmitry.tarnyagin@lockless.no>
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.
12 #ifndef CW1200_HWBUS_H
13 #define CW1200_HWBUS_H
15 struct hwbus_priv;
17 void cw1200_irq_handler(struct cw1200_common *priv);
19 /* This MUST be wrapped with hwbus_ops->lock/unlock! */
20 int __cw1200_irq_enable(struct cw1200_common *priv, int enable);
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 int (*irq_enable)(struct hwbus_priv *self, int enable);
34 #endif /* CW1200_HWBUS_H */