bcm63xx_nvram.h 872 B

1234567891011121314151617181920212223242526272829303132333435
  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. * Returns 0 on success.
  12. */
  13. int __init bcm63xx_nvram_init(void *nvram);
  14. /**
  15. * bcm63xx_nvram_get_name() - returns the board name according to nvram
  16. *
  17. * Returns the board name field from nvram. Note that it might not be
  18. * null terminated if it is exactly 16 bytes long.
  19. */
  20. u8 *bcm63xx_nvram_get_name(void);
  21. /**
  22. * bcm63xx_nvram_get_mac_address() - register & return a new mac address
  23. * @mac: pointer to array for allocated mac
  24. *
  25. * Registers and returns a mac address from the allocated macs from nvram.
  26. *
  27. * Returns 0 on success.
  28. */
  29. int bcm63xx_nvram_get_mac_address(u8 *mac);
  30. #endif /* BCM63XX_NVRAM_H */