enum.h 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. /****************************************************************************
  2. * Driver for Solarflare Solarstorm network controllers and boards
  3. * Copyright 2007 Solarflare Communications Inc.
  4. *
  5. * This program is free software; you can redistribute it and/or modify it
  6. * under the terms of the GNU General Public License version 2 as published
  7. * by the Free Software Foundation, incorporated herein by reference.
  8. */
  9. #ifndef EFX_ENUM_H
  10. #define EFX_ENUM_H
  11. /*****************************************************************************/
  12. /**
  13. * enum reset_type - reset types
  14. *
  15. * %RESET_TYPE_INVSIBLE, %RESET_TYPE_ALL, %RESET_TYPE_WORLD and
  16. * %RESET_TYPE_DISABLE specify the method/scope of the reset. The
  17. * other valuesspecify reasons, which efx_schedule_reset() will choose
  18. * a method for.
  19. *
  20. * @RESET_TYPE_INVISIBLE: don't reset the PHYs or interrupts
  21. * @RESET_TYPE_ALL: reset everything but PCI core blocks
  22. * @RESET_TYPE_WORLD: reset everything, save & restore PCI config
  23. * @RESET_TYPE_DISABLE: disable NIC
  24. * @RESET_TYPE_MONITOR: reset due to hardware monitor
  25. * @RESET_TYPE_INT_ERROR: reset due to internal error
  26. * @RESET_TYPE_RX_RECOVERY: reset to recover from RX datapath errors
  27. * @RESET_TYPE_RX_DESC_FETCH: pcie error during rx descriptor fetch
  28. * @RESET_TYPE_TX_DESC_FETCH: pcie error during tx descriptor fetch
  29. * @RESET_TYPE_TX_SKIP: hardware completed empty tx descriptors
  30. */
  31. enum reset_type {
  32. RESET_TYPE_NONE = -1,
  33. RESET_TYPE_INVISIBLE = 0,
  34. RESET_TYPE_ALL = 1,
  35. RESET_TYPE_WORLD = 2,
  36. RESET_TYPE_DISABLE = 3,
  37. RESET_TYPE_MAX_METHOD,
  38. RESET_TYPE_MONITOR,
  39. RESET_TYPE_INT_ERROR,
  40. RESET_TYPE_RX_RECOVERY,
  41. RESET_TYPE_RX_DESC_FETCH,
  42. RESET_TYPE_TX_DESC_FETCH,
  43. RESET_TYPE_TX_SKIP,
  44. RESET_TYPE_MAX,
  45. };
  46. #endif /* EFX_ENUM_H */