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

Linux/Unix编程

开发平台:

Unix_Linux

  1. /* $Id$
  2.  *
  3.  * This file is subject to the terms and conditions of the GNU General Public
  4.  * License.  See the file "COPYING" in the main directory of this archive
  5.  * for more details.
  6.  *
  7.  * Copyright (C) 1992-1997,2000-2002 Silicon Graphics, Inc.  All Rights Reserved.
  8.  */
  9. #ifndef _ASM_SN_XTALK_XSWITCH_H
  10. #define _ASM_SN_XTALK_XSWITCH_H
  11. /*
  12.  * xswitch.h - controls the format of the data
  13.  * provided by xswitch verticies back to the
  14.  * xtalk bus providers.
  15.  */
  16. #ifndef __ASSEMBLY__
  17. #include <linux/devfs_fs_kernel.h>
  18. #include <asm/sn/xtalk/xtalk.h>
  19. typedef struct xswitch_info_s *xswitch_info_t;
  20. typedef int
  21.                         xswitch_reset_link_f(devfs_handle_t xconn);
  22. typedef struct xswitch_provider_s {
  23.     xswitch_reset_link_f   *reset_link;
  24. } xswitch_provider_t;
  25. extern void             xswitch_provider_register(devfs_handle_t sw_vhdl, xswitch_provider_t * xsw_fns);
  26. xswitch_reset_link_f    xswitch_reset_link;
  27. extern xswitch_info_t   xswitch_info_new(devfs_handle_t vhdl);
  28. extern void             xswitch_info_link_is_ok(xswitch_info_t xswitch_info,
  29. xwidgetnum_t port);
  30. extern void             xswitch_info_vhdl_set(xswitch_info_t xswitch_info,
  31.       xwidgetnum_t port,
  32.       devfs_handle_t xwidget);
  33. extern void             xswitch_info_master_assignment_set(xswitch_info_t xswitch_info,
  34.        xwidgetnum_t port,
  35.        devfs_handle_t master_vhdl);
  36. extern xswitch_info_t   xswitch_info_get(devfs_handle_t vhdl);
  37. extern int              xswitch_info_link_ok(xswitch_info_t xswitch_info,
  38.      xwidgetnum_t port);
  39. extern devfs_handle_t     xswitch_info_vhdl_get(xswitch_info_t xswitch_info,
  40.       xwidgetnum_t port);
  41. extern devfs_handle_t     xswitch_info_master_assignment_get(xswitch_info_t xswitch_info,
  42.       xwidgetnum_t port);
  43. extern int xswitch_id_get(devfs_handle_t vhdl);
  44. extern void xswitch_id_set(devfs_handle_t vhdl,int xbow_num);
  45. #endif /* __ASSEMBLY__ */
  46. #endif /* _ASM_SN_XTALK_XSWITCH_H */