bcm43xx_sysfs.h 654 B

12345678910111213141516171819202122232425
  1. #ifndef BCM43xx_SYSFS_H_
  2. #define BCM43xx_SYSFS_H_
  3. #include <linux/device.h>
  4. struct bcm43xx_sysfs {
  5. struct device_attribute attr_sprom;
  6. struct device_attribute attr_interfmode;
  7. struct device_attribute attr_preamble;
  8. };
  9. #define devattr_to_bcm(attr, attr_name) ({ \
  10. struct bcm43xx_sysfs *__s; struct bcm43xx_private *__p; \
  11. __s = container_of((attr), struct bcm43xx_sysfs, attr_name); \
  12. __p = container_of(__s, struct bcm43xx_private, sysfs); \
  13. __p; \
  14. })
  15. struct bcm43xx_private;
  16. int bcm43xx_sysfs_register(struct bcm43xx_private *bcm);
  17. void bcm43xx_sysfs_unregister(struct bcm43xx_private *bcm);
  18. #endif /* BCM43xx_SYSFS_H_ */