aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/rt2x00/rt2800usb.h
diff options
context:
space:
mode:
authorBartlomiej Zolnierkiewicz <bzolnier@gmail.com>2009-11-04 12:35:32 -0500
committerJohn W. Linville <linville@tuxdriver.com>2009-11-06 16:48:55 -0500
commit7ef5cc92bac940419f022e11115a28daea53814f (patch)
tree99f2be71f1ccd7a0a6b00254e78bcfabe06935d3 /drivers/net/wireless/rt2x00/rt2800usb.h
parent473196bd9935f0efd4c5f1cda28229e7dcff564c (diff)
rt2800: add rt2800lib.h
Code unification. Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> Acked-by: Ivo van Doorn <IvDoorn@gmail.com> Acked-by: Gertjan van Wingerde <gwingerde@gmail.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/rt2x00/rt2800usb.h')
-rw-r--r--drivers/net/wireless/rt2x00/rt2800usb.h75
1 files changed, 0 insertions, 75 deletions
diff --git a/drivers/net/wireless/rt2x00/rt2800usb.h b/drivers/net/wireless/rt2x00/rt2800usb.h
index 0a525a722a74..7b1130a22c55 100644
--- a/drivers/net/wireless/rt2x00/rt2800usb.h
+++ b/drivers/net/wireless/rt2x00/rt2800usb.h
@@ -27,81 +27,6 @@
27#ifndef RT2800USB_H 27#ifndef RT2800USB_H
28#define RT2800USB_H 28#define RT2800USB_H
29 29
30struct rt2800_ops {
31 void (*register_read)(struct rt2x00_dev *rt2x00dev,
32 const unsigned int offset, u32 *value);
33 void (*register_write)(struct rt2x00_dev *rt2x00dev,
34 const unsigned int offset, u32 value);
35 void (*register_write_lock)(struct rt2x00_dev *rt2x00dev,
36 const unsigned int offset, u32 value);
37
38 void (*register_multiread)(struct rt2x00_dev *rt2x00dev,
39 const unsigned int offset,
40 void *value, const u32 length);
41 void (*register_multiwrite)(struct rt2x00_dev *rt2x00dev,
42 const unsigned int offset,
43 const void *value, const u32 length);
44
45 int (*regbusy_read)(struct rt2x00_dev *rt2x00dev,
46 const unsigned int offset,
47 const struct rt2x00_field32 field, u32 *reg);
48};
49
50static inline void rt2800_register_read(struct rt2x00_dev *rt2x00dev,
51 const unsigned int offset,
52 u32 *value)
53{
54 const struct rt2800_ops *rt2800ops = rt2x00dev->priv;
55
56 rt2800ops->register_read(rt2x00dev, offset, value);
57}
58
59static inline void rt2800_register_write(struct rt2x00_dev *rt2x00dev,
60 const unsigned int offset,
61 u32 value)
62{
63 const struct rt2800_ops *rt2800ops = rt2x00dev->priv;
64
65 rt2800ops->register_write(rt2x00dev, offset, value);
66}
67
68static inline void rt2800_register_write_lock(struct rt2x00_dev *rt2x00dev,
69 const unsigned int offset,
70 u32 value)
71{
72 const struct rt2800_ops *rt2800ops = rt2x00dev->priv;
73
74 rt2800ops->register_write_lock(rt2x00dev, offset, value);
75}
76
77static inline void rt2800_register_multiread(struct rt2x00_dev *rt2x00dev,
78 const unsigned int offset,
79 void *value, const u32 length)
80{
81 const struct rt2800_ops *rt2800ops = rt2x00dev->priv;
82
83 rt2800ops->register_multiread(rt2x00dev, offset, value, length);
84}
85
86static inline void rt2800_register_multiwrite(struct rt2x00_dev *rt2x00dev,
87 const unsigned int offset,
88 void *value, const u32 length)
89{
90 const struct rt2800_ops *rt2800ops = rt2x00dev->priv;
91
92 rt2800ops->register_multiwrite(rt2x00dev, offset, value, length);
93}
94
95static inline int rt2800_regbusy_read(struct rt2x00_dev *rt2x00dev,
96 const unsigned int offset,
97 struct rt2x00_field32 field,
98 u32 *reg)
99{
100 const struct rt2800_ops *rt2800ops = rt2x00dev->priv;
101
102 return rt2800ops->regbusy_read(rt2x00dev, offset, field, reg);
103}
104
105/* 30/*
106 * RF chip defines. 31 * RF chip defines.
107 * 32 *