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
7 * Copyright (C) 1992 - 1997, 2000-2002 Silicon Graphics, Inc. All rights reserved.
12 * Support for IP35/IP37 machines
15 #include <linux/types.h>
17 #include <asm/sn/sgi.h>
18 #include <asm/sn/io.h>
19 #include <asm/sn/klconfig.h>
20 #include <asm/sn/pci/bridge.h> /* for bridge_t */
24 hub_widget_id(nasid_t nasid)
26 hubii_wcr_t ii_wcr; /* the control status register */
28 ii_wcr.wcr_reg_value = REMOTE_HUB_L(nasid,IIO_WCR);
30 return ii_wcr.wcr_fields_s.wcr_widget_id;
36 return (((LOCAL_HUB_L(LB_REV_ID) & LRI_SYSTEM_SIZE_MASK)
37 >> LRI_SYSTEM_SIZE_SHFT) == SYSTEM_SIZE_SMALL);
45 LOCAL_HUB_S(NI_RESET_ENABLE, NRE_RESETOK);
46 LOCAL_HUB_S(NI_PORT_RESET, NPR_PORTRESET | NPR_LOCALRESET);