summaryrefslogtreecommitdiff
path: root/drivers/net/wireless/bcm43xx/bcm43xx_sysfs.h
diff options
context:
space:
mode:
authorJeff Garzik <jeff@garzik.org>2006-03-30 02:30:19 +0400
committerJeff Garzik <jeff@garzik.org>2006-03-30 02:30:19 +0400
commite21a2b0cc5849e76434b37aff3a4b502c772f191 (patch)
tree2fad2f2025ca1d9e5bc88d4e835e07967b8fd762 /drivers/net/wireless/bcm43xx/bcm43xx_sysfs.h
parent8a89334caf80bb7c86383b73fd5a528cb88c696f (diff)
parent2638fed7ccb07ff43cdc109dd78e821efb629995 (diff)
downloadlinux-e21a2b0cc5849e76434b37aff3a4b502c772f191.tar.xz
Merge branch 'upstream' of git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless-2.6
Diffstat (limited to 'drivers/net/wireless/bcm43xx/bcm43xx_sysfs.h')
-rw-r--r--drivers/net/wireless/bcm43xx/bcm43xx_sysfs.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/drivers/net/wireless/bcm43xx/bcm43xx_sysfs.h b/drivers/net/wireless/bcm43xx/bcm43xx_sysfs.h
new file mode 100644
index 000000000000..57f14514e3e0
--- /dev/null
+++ b/drivers/net/wireless/bcm43xx/bcm43xx_sysfs.h
@@ -0,0 +1,25 @@
+#ifndef BCM43xx_SYSFS_H_
+#define BCM43xx_SYSFS_H_
+
+#include <linux/device.h>
+
+
+struct bcm43xx_sysfs {
+ struct device_attribute attr_sprom;
+ struct device_attribute attr_interfmode;
+ struct device_attribute attr_preamble;
+};
+
+#define devattr_to_bcm(attr, attr_name) ({ \
+ struct bcm43xx_sysfs *__s; struct bcm43xx_private *__p; \
+ __s = container_of((attr), struct bcm43xx_sysfs, attr_name); \
+ __p = container_of(__s, struct bcm43xx_private, sysfs); \
+ __p; \
+ })
+
+struct bcm43xx_private;
+
+int bcm43xx_sysfs_register(struct bcm43xx_private *bcm);
+void bcm43xx_sysfs_unregister(struct bcm43xx_private *bcm);
+
+#endif /* BCM43xx_SYSFS_H_ */