hubstat.h
上传用户:jlfgdled
上传日期:2013-04-10
资源大小:33168k
文件大小:2k
源码类别:

Linux/Unix编程

开发平台:

Unix_Linux

  1. /*
  2.  * This file is subject to the terms and conditions of the GNU General Public
  3.  * License.  See the file "COPYING" in the main directory of this archive
  4.  * for more details.
  5.  *
  6.  * Copyright (C) 2000 - 2001 Silicon Graphics, Inc. All rights reserved.
  7.  */
  8. #ifndef _ASM_IA64_SN_SN1_HUBSTAT_H
  9. #define _ASM_IA64_SN_SN1_HUBSTAT_H
  10. typedef int64_t  hub_count_t;
  11. #define HUBSTAT_VERSION 1
  12. typedef struct hubstat_s {
  13.         char            hs_version; /* structure version    */
  14.         cnodeid_t       hs_cnode;        /* cnode of this hub    */
  15.         nasid_t         hs_nasid;        /* Nasid of same        */
  16. int64_t hs_timebase; /* Time of first sample */
  17. int64_t hs_timestamp; /* Time of last sample */
  18. int64_t hs_per_minute; /* Ticks per minute  */
  19. union {
  20. hubreg_t hs_niu_stat_rev_id; /* SN0: Status rev ID */
  21. hubreg_t hs_niu_port_status; /* SN1: Port status */
  22. } hs_niu;
  23.         hub_count_t hs_ni_retry_errors; /* Total retry errors   */
  24.         hub_count_t hs_ni_sn_errors; /* Total sn errors      */
  25.         hub_count_t hs_ni_cb_errors; /* Total cb errors      */
  26.         int hs_ni_overflows; /* NI count overflows   */
  27.         hub_count_t hs_ii_sn_errors; /* Total sn errors      */
  28.         hub_count_t hs_ii_cb_errors; /* Total cb errors      */
  29.         int hs_ii_overflows; /* II count overflows   */
  30. /*
  31.  * Anything below this comment is intended for kernel internal-use
  32.  * only and may be changed at any time.
  33.  *
  34.  * Any members that contain pointers or are conditionally compiled
  35.  * need to be below here also.
  36.  */
  37.         int64_t hs_last_print; /* When we last printed */
  38.         char hs_print; /* Should we print      */
  39. char        *hs_name; /* This hub's name */
  40. unsigned char hs_maint; /* Should we print to availmon */
  41. } hubstat_t;
  42. #define       hs_ni_stat_rev_id       hs_niu.hs_niu_stat_rev_id
  43. #define       hs_ni_port_status       hs_niu.hs_niu_port_status
  44. extern struct file_operations hub_mon_fops;
  45. #endif /* _ASM_IA64_SN_SN1_HUBSTAT_H */