vendor.h 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. /*
  2. * Copyright (c) 2014 Broadcom Corporation
  3. *
  4. * Permission to use, copy, modify, and/or distribute this software for any
  5. * purpose with or without fee is hereby granted, provided that the above
  6. * copyright notice and this permission notice appear in all copies.
  7. *
  8. * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
  9. * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
  10. * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY
  11. * SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
  12. * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION
  13. * OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
  14. * CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  15. */
  16. #ifndef _vendor_h_
  17. #define _vendor_h_
  18. #define BROADCOM_OUI 0x001018
  19. enum brcmf_vndr_cmds {
  20. BRCMF_VNDR_CMDS_UNSPEC,
  21. BRCMF_VNDR_CMDS_DCMD,
  22. BRCMF_VNDR_CMDS_LAST
  23. };
  24. /**
  25. * enum brcmf_nlattrs - nl80211 message attributes
  26. *
  27. * @BRCMF_NLATTR_LEN: message body length
  28. * @BRCMF_NLATTR_DATA: message body
  29. */
  30. enum brcmf_nlattrs {
  31. BRCMF_NLATTR_UNSPEC,
  32. BRCMF_NLATTR_LEN,
  33. BRCMF_NLATTR_DATA,
  34. __BRCMF_NLATTR_AFTER_LAST,
  35. BRCMF_NLATTR_MAX = __BRCMF_NLATTR_AFTER_LAST - 1
  36. };
  37. /**
  38. * struct brcmf_vndr_dcmd_hdr - message header for cfg80211 vendor command dcmd
  39. * support
  40. *
  41. * @cmd: common dongle cmd definition
  42. * @len: length of expecting return buffer
  43. * @offset: offset of data buffer
  44. * @set: get or set request(optional)
  45. * @magic: magic number for verification
  46. */
  47. struct brcmf_vndr_dcmd_hdr {
  48. uint cmd;
  49. int len;
  50. uint offset;
  51. uint set;
  52. uint magic;
  53. };
  54. extern const struct wiphy_vendor_command brcmf_vendor_cmds[];
  55. #endif /* _vendor_h_ */