i2c: gpio: fault-injector: refactor incomplete transfer
[linux/fpc-iii.git] / drivers / net / wireless / st / cw1200 / hwbus.h
blob8b2fc831c3de75f6f33799cc12c6174bad6d837b
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);
33 #endif /* CW1200_HWBUS_H */