sys.h (225394) | sys.h (233533) |
---|---|
1/*- 2 * Copyright 2003-2011 Netlogic Microsystems (Netlogic). All rights 3 * reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions are 7 * met: 8 * --- 12 unchanged lines hidden (view full) --- 21 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 22 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 23 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 24 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 25 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF 26 * THE POSSIBILITY OF SUCH DAMAGE. 27 * 28 * NETLOGIC_BSD | 1/*- 2 * Copyright 2003-2011 Netlogic Microsystems (Netlogic). All rights 3 * reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions are 7 * met: 8 * --- 12 unchanged lines hidden (view full) --- 21 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 22 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 23 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 24 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 25 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF 26 * THE POSSIBILITY OF SUCH DAMAGE. 27 * 28 * NETLOGIC_BSD |
29 * $FreeBSD: head/sys/mips/nlm/hal/sys.h 225394 2011-09-05 10:45:29Z jchandra $ | 29 * $FreeBSD: head/sys/mips/nlm/hal/sys.h 233533 2012-03-27 07:39:05Z jchandra $ |
30 */ 31 32#ifndef __NLM_HAL_SYS_H__ | 30 */ 31 32#ifndef __NLM_HAL_SYS_H__ |
33#define __NLM_HAL_SYS_H__ | 33#define __NLM_HAL_SYS_H__ |
34 35/** 36* @file_name sys.h 37* @author Netlogic Microsystems 38* @brief HAL for System configuration registers 39*/ 40#define SYS_CHIP_RESET 0x00 41#define SYS_POWER_ON_RESET_CFG 0x01 --- 74 unchanged lines hidden (view full) --- 116 117#if !defined(LOCORE) && !defined(__ASSEMBLY__) 118 119#define nlm_read_sys_reg(b, r) nlm_read_reg(b, r) 120#define nlm_write_sys_reg(b, r, v) nlm_write_reg(b, r, v) 121#define nlm_get_sys_pcibase(node) nlm_pcicfg_base(XLP_IO_SYS_OFFSET(node)) 122#define nlm_get_sys_regbase(node) (nlm_get_sys_pcibase(node) + XLP_IO_PCI_HDRSZ) 123 | 34 35/** 36* @file_name sys.h 37* @author Netlogic Microsystems 38* @brief HAL for System configuration registers 39*/ 40#define SYS_CHIP_RESET 0x00 41#define SYS_POWER_ON_RESET_CFG 0x01 --- 74 unchanged lines hidden (view full) --- 116 117#if !defined(LOCORE) && !defined(__ASSEMBLY__) 118 119#define nlm_read_sys_reg(b, r) nlm_read_reg(b, r) 120#define nlm_write_sys_reg(b, r, v) nlm_write_reg(b, r, v) 121#define nlm_get_sys_pcibase(node) nlm_pcicfg_base(XLP_IO_SYS_OFFSET(node)) 122#define nlm_get_sys_regbase(node) (nlm_get_sys_pcibase(node) + XLP_IO_PCI_HDRSZ) 123 |
124enum { 125 /* Don't change order and it must start from zero */ 126 DFS_DEVICE_NAE = 0, 127 DFS_DEVICE_SAE, 128 DFS_DEVICE_RSA, 129 DFS_DEVICE_DTRE, 130 DFS_DEVICE_CMP, 131 DFS_DEVICE_KBP, 132 DFS_DEVICE_DMC, 133 DFS_DEVICE_NAND, 134 DFS_DEVICE_MMC, 135 DFS_DEVICE_NOR, 136 DFS_DEVICE_CORE, 137 DFS_DEVICE_REGEX_SLOW, 138 DFS_DEVICE_REGEX_FAST, 139 DFS_DEVICE_SATA, 140 INVALID_DFS_DEVICE = 0xFF 141}; 142 |
|
124#endif 125#endif | 143#endif 144#endif |