4 * Copyright (c) 2009 The NetBSD Foundation, Inc.
7 * This code is derived from software contributed to The NetBSD Foundation
10 * Redistribution and use in source and binary forms, with or without
11 * modification, are permitted provided that the following conditions
13 * 1. Redistributions of source code must retain the above copyright
14 * notice, this list of conditions and the following disclaimer.
15 * 2. Redistributions in binary form must reproduce the above copyright
16 * notice, this list of conditions and the following disclaimer in the
17 * documentation and/or other materials provided with the distribution.
19 * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
20 * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
21 * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
22 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
23 * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
24 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
25 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
26 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
27 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
28 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
29 * POSSIBILITY OF SUCH DAMAGE.
32 /*********************************************************************
34 Copyright 2003-2006 Raza Microelectronics, Inc. (RMI). All rights
37 Redistribution and use in source and binary forms, with or without
38 modification, are permitted provided that the following conditions
41 1. Redistributions of source code must retain the above copyright
42 notice, this list of conditions and the following disclaimer.
43 2. Redistributions in binary form must reproduce the above copyright
44 notice, this list of conditions and the following disclaimer in
45 the documentation and/or other materials provided with the
48 THIS SOFTWARE IS PROVIDED BY Raza Microelectronics, Inc. ``AS IS'' AND
49 ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
50 IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
51 PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL RMI OR CONTRIBUTORS BE LIABLE
52 FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
53 CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
54 SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
55 INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
56 CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
57 ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
58 THE POSSIBILITY OF SUCH DAMAGE.
60 *****************************#RMI_2#**********************************/
62 #ifndef _ARCH_MIPS_RMI_RMIXL_FIRMWARE_H_
63 #define _ARCH_MIPS_RMI_RMIXL_FIRMWARE_H_
65 typedef struct rmixlfw_info
{
68 uint64_t output_device
;
75 uint64_t cpu_online_map
;
76 uint64_t master_reentry_sp
;
77 uint64_t master_reentry_gp
;
78 uint64_t master_reentry_fn
;
79 uint64_t slave_reentry_fn
;
81 uint64_t uart_putchar
;
83 uint64_t uart_getchar
;
87 uint64_t cpu_frequency
;
88 uint64_t board_version
;
91 uint64_t global_shmem_addr
;
92 uint64_t global_shmem_size
;
93 uint64_t psb_os_cpu_map
;
94 uint64_t userapp_cpu_map
;
97 uint64_t board_major_version
;
98 uint64_t board_minor_version
;
99 uint64_t board_manf_revision
;
100 uint64_t board_serial_number
;
101 uint64_t psb_physaddr_map
;
102 uint64_t xlr_loaderip_config
;
104 uint64_t avail_mem_map
;
108 #define RMIXLFW_MMAP_MAX_MMAPS 32
110 #define RMIXLFW_MMAP_TYPE_RAM 1
111 #define RMIXLFW_MMAP_TYPE_ROM 2
112 #define RMIXLFW_MMAP_TYPE_RESERVED 3
113 #define RMIXLFW_MMAP_TYPE_DEV_IO 0x10
114 #define RMIXLFW_MMAP_TYPE_PCI_IO 0x11
115 #define RMIXLFW_MMAP_TYPE_PCI_CFG 0x12
116 #define RMIXLFW_MMAP_TYPE_PCI_MEM 0x13
117 #define RMIXLFW_MMAP_TYPE_UNKNOWN 0xff
120 * struct at psb_mem_map, psb_physaddr_map, avail_mem_map
122 typedef struct rmixlfw_mmap
{
124 struct rmixlfw_mmap_entry
{
128 } entry
[RMIXLFW_MMAP_MAX_MMAPS
];
131 #endif /* _ARCH_MIPS_RMI_RMIXL_FIRMWARE_H_ */