bcm63xx_nvram.h 838 B

123456789101112131415161718192021222324252627282930313233
  1. #ifndef BCM63XX_NVRAM_H
  2. #define BCM63XX_NVRAM_H
  3. #include <linux/types.h>
  4. /**
  5. * bcm63xx_nvram_init() - initializes nvram
  6. * @nvram: address of the nvram data
  7. *
  8. * Initialized the local nvram copy from the target address and checks
  9. * its checksum.
  10. */
  11. void bcm63xx_nvram_init(void *nvram);
  12. /**
  13. * bcm63xx_nvram_get_name() - returns the board name according to nvram
  14. *
  15. * Returns the board name field from nvram. Note that it might not be
  16. * null terminated if it is exactly 16 bytes long.
  17. */
  18. u8 *bcm63xx_nvram_get_name(void);
  19. /**
  20. * bcm63xx_nvram_get_mac_address() - register & return a new mac address
  21. * @mac: pointer to array for allocated mac
  22. *
  23. * Registers and returns a mac address from the allocated macs from nvram.
  24. *
  25. * Returns 0 on success.
  26. */
  27. int bcm63xx_nvram_get_mac_address(u8 *mac);
  28. #endif /* BCM63XX_NVRAM_H */