The Design and Implementation of the FreeBSD Operating System, Second Edition
Now available: The Design and Implementation of the FreeBSD Operating System (Second Edition)


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]

FreeBSD/Linux Kernel Cross Reference
sys/mips/rmi/rmi_boot_info.h

Version: -  FREEBSD  -  FREEBSD-12-STABLE  -  FREEBSD-12-0  -  FREEBSD-11-STABLE  -  FREEBSD-11-2  -  FREEBSD-11-1  -  FREEBSD-11-0  -  FREEBSD-10-STABLE  -  FREEBSD-10-4  -  FREEBSD-10-3  -  FREEBSD-10-2  -  FREEBSD-10-1  -  FREEBSD-10-0  -  FREEBSD-9-STABLE  -  FREEBSD-9-3  -  FREEBSD-9-2  -  FREEBSD-9-1  -  FREEBSD-9-0  -  FREEBSD-8-STABLE  -  FREEBSD-8-4  -  FREEBSD-8-3  -  FREEBSD-8-2  -  FREEBSD-8-1  -  FREEBSD-8-0  -  FREEBSD-7-STABLE  -  FREEBSD-7-4  -  FREEBSD-7-3  -  FREEBSD-7-2  -  FREEBSD-7-1  -  FREEBSD-7-0  -  FREEBSD-6-STABLE  -  FREEBSD-6-4  -  FREEBSD-6-3  -  FREEBSD-6-2  -  FREEBSD-6-1  -  FREEBSD-6-0  -  FREEBSD-5-STABLE  -  FREEBSD-5-5  -  FREEBSD-5-4  -  FREEBSD-5-3  -  FREEBSD-5-2  -  FREEBSD-5-1  -  FREEBSD-5-0  -  FREEBSD-4-STABLE  -  FREEBSD-3-STABLE  -  FREEBSD22  -  linux-2.6  -  linux-2.4.22  -  MK83  -  MK84  -  PLAN9  -  DFBSD  -  NETBSD  -  NETBSD5  -  NETBSD4  -  NETBSD3  -  NETBSD20  -  OPENBSD  -  xnu-517  -  xnu-792  -  xnu-792.6.70  -  xnu-1228  -  xnu-1456.1.26  -  xnu-1699.24.8  -  xnu-2050.18.24  -  OPENSOLARIS  -  minix-3-1-1 
SearchContext: -  none  -  3  -  10 

    1 /*-
    2  * Copyright (c) 2003-2009 RMI Corporation
    3  * All rights reserved.
    4  *
    5  * Redistribution and use in source and binary forms, with or without
    6  * modification, are permitted provided that the following conditions
    7  * are met:
    8  * 1. Redistributions of source code must retain the above copyright
    9  *    notice, this list of conditions and the following disclaimer.
   10  * 2. Redistributions in binary form must reproduce the above copyright
   11  *    notice, this list of conditions and the following disclaimer in the
   12  *    documentation and/or other materials provided with the distribution.
   13  * 3. Neither the name of RMI Corporation, nor the names of its contributors,
   14  *    may be used to endorse or promote products derived from this software
   15  *    without specific prior written permission.
   16  *
   17  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
   18  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
   19  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
   20  * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
   21  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
   22  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
   23  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
   24  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
   25  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
   26  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   27  * SUCH DAMAGE.
   28  *
   29  * RMI_BSD
   30  * $FreeBSD: releng/8.4/sys/mips/rmi/rmi_boot_info.h 215938 2010-11-27 12:26:40Z jchandra $
   31  */
   32 #ifndef _SHARED_STRUCTS_H
   33 #define _SHARED_STRUCTS_H
   34 
   35 #define BOOT1_INFO_VERSION 0x0001
   36 
   37 struct boot1_info {
   38         uint64_t boot_level;
   39         uint64_t io_base;
   40         uint64_t output_device;
   41         uint64_t uart_print;
   42         uint64_t led_output;
   43         uint64_t init;
   44         uint64_t exit;
   45         uint64_t warm_reset;
   46         uint64_t wakeup;
   47         uint64_t cpu_online_map;
   48         uint64_t master_reentry_sp;
   49         uint64_t master_reentry_gp;
   50         uint64_t master_reentry_fn;
   51         uint64_t slave_reentry_fn;
   52         uint64_t magic_dword;
   53         uint64_t uart_putchar;
   54         uint64_t size;
   55         uint64_t uart_getchar;
   56         uint64_t nmi_handler;
   57         uint64_t psb_version;
   58         uint64_t mac_addr;
   59         uint64_t cpu_frequency;
   60         uint64_t board_version;
   61         uint64_t malloc;
   62         uint64_t free;
   63         uint64_t alloc_pbuf;
   64         uint64_t free_pbuf;
   65         uint64_t psb_os_cpu_map;
   66         uint64_t userapp_cpu_map;
   67         uint64_t wakeup_os;
   68         uint64_t psb_mem_map;
   69         uint64_t board_major_version;
   70         uint64_t board_minor_version;
   71         uint64_t board_manf_revision;
   72         uint64_t board_serial_number;
   73         uint64_t psb_physaddr_map;
   74 };
   75 
   76 extern struct boot1_info xlr_boot1_info;
   77 
   78 
   79 /* This structure is passed to all applications launched from the linux
   80    loader through K0 register
   81  */
   82 #define XLR_LOADER_INFO_MAGIC 0x600ddeed
   83 struct xlr_loader_info {
   84         uint32_t magic;
   85         /* xlr_loader_shared_struct_t for CPU 0 will start here */
   86         unsigned long sh_mem_start;
   87         /* Size of the shared memory b/w linux apps and rmios apps  */
   88         uint32_t app_sh_mem_size;
   89 };
   90 
   91 /* Boot loader uses the linux mips convention */
   92 #define BOOT1_MEMMAP_MAX        32
   93 
   94 enum xlr_phys_memmap_t {
   95         BOOT1_MEM_RAM = 1, BOOT1_MEM_ROM_DATA, BOOT1_MEM_RESERVED
   96 };
   97 
   98 struct xlr_boot1_mem_map {
   99         uint32_t num_entries;
  100         struct {
  101                 uint64_t addr;
  102                 uint64_t size;
  103                 uint32_t type;
  104                 uint32_t pad;
  105         }      physmem_map[BOOT1_MEMMAP_MAX];
  106 };
  107 
  108 
  109 #endif

Cache object: 6ac92a87f245a94c4639d5ea50ae951f


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]


This page is part of the FreeBSD/Linux Linux Kernel Cross-Reference, and was automatically generated using a modified version of the LXR engine.