bnxt_coredump.h 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. /* Broadcom NetXtreme-C/E network driver.
  2. *
  3. * Copyright (c) 2018 Broadcom Inc
  4. *
  5. * This program is free software; you can redistribute it and/or modify
  6. * it under the terms of the GNU General Public License as published by
  7. * the Free Software Foundation.
  8. */
  9. #ifndef BNXT_COREDUMP_H
  10. #define BNXT_COREDUMP_H
  11. struct bnxt_coredump_segment_hdr {
  12. __u8 signature[4];
  13. __le32 component_id;
  14. __le32 segment_id;
  15. __le32 flags;
  16. __u8 low_version;
  17. __u8 high_version;
  18. __le16 function_id;
  19. __le32 offset;
  20. __le32 length;
  21. __le32 status;
  22. __le32 duration;
  23. __le32 data_offset;
  24. __le32 instance;
  25. __le32 rsvd[5];
  26. };
  27. struct bnxt_coredump_record {
  28. __u8 signature[4];
  29. __le32 flags;
  30. __u8 low_version;
  31. __u8 high_version;
  32. __u8 asic_state;
  33. __u8 rsvd0[5];
  34. char system_name[32];
  35. __le16 year;
  36. __le16 month;
  37. __le16 day;
  38. __le16 hour;
  39. __le16 minute;
  40. __le16 second;
  41. __le16 utc_bias;
  42. __le16 rsvd1;
  43. char commandline[256];
  44. __le32 total_segments;
  45. __le32 os_ver_major;
  46. __le32 os_ver_minor;
  47. __le32 rsvd2;
  48. char os_name[32];
  49. __le16 end_year;
  50. __le16 end_month;
  51. __le16 end_day;
  52. __le16 end_hour;
  53. __le16 end_minute;
  54. __le16 end_second;
  55. __le16 end_utc_bias;
  56. __le32 asic_id1;
  57. __le32 asic_id2;
  58. __le32 coredump_status;
  59. __u8 ioctl_low_version;
  60. __u8 ioctl_high_version;
  61. __le16 rsvd3[313];
  62. };
  63. #endif