crypto4xx_trng.h 1.1 KB

1234567891011121314151617181920212223242526272829303132333435
  1. /**
  2. * AMCC SoC PPC4xx Crypto Driver
  3. *
  4. * Copyright (c) 2008 Applied Micro Circuits Corporation.
  5. * All rights reserved. James Hsiao <jhsiao@amcc.com>
  6. *
  7. * This program is free software; you can redistribute it and/or modify
  8. * it under the terms of the GNU General Public License as published by
  9. * the Free Software Foundation; either version 2 of the License, or
  10. * (at your option) any later version.
  11. *
  12. * This program is distributed in the hope that it will be useful,
  13. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  15. * GNU General Public License for more details.
  16. *
  17. * This file defines the security context
  18. * associate format.
  19. */
  20. #ifndef __CRYPTO4XX_TRNG_H__
  21. #define __CRYPTO4XX_TRNG_H__
  22. #ifdef CONFIG_HW_RANDOM_PPC4XX
  23. void ppc4xx_trng_probe(struct crypto4xx_core_device *core_dev);
  24. void ppc4xx_trng_remove(struct crypto4xx_core_device *core_dev);
  25. #else
  26. static inline void ppc4xx_trng_probe(
  27. struct crypto4xx_core_device *dev __maybe_unused) { }
  28. static inline void ppc4xx_trng_remove(
  29. struct crypto4xx_core_device *dev __maybe_unused) { }
  30. #endif
  31. #endif