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-13-STABLE  -  FREEBSD-13-0  -  FREEBSD-12-STABLE  -  FREEBSD-12-0  -  FREEBSD-11-STABLE  -  FREEBSD-11-0  -  FREEBSD-10-STABLE  -  FREEBSD-10-0  -  FREEBSD-9-STABLE  -  FREEBSD-9-0  -  FREEBSD-8-STABLE  -  FREEBSD-8-0  -  FREEBSD-7-STABLE  -  FREEBSD-7-0  -  FREEBSD-6-STABLE  -  FREEBSD-6-0  -  FREEBSD-5-STABLE  -  FREEBSD-5-0  -  FREEBSD-4-STABLE  -  FREEBSD-3-STABLE  -  FREEBSD22  -  l41  -  OPENBSD  -  linux-2.6  -  MK84  -  PLAN9  -  xnu-8792 
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/10.0/sys/mips/rmi/rmi_boot_info.h 211994 2010-08-30 13:05:21Z 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: 0e5f17469d3a06ce75fa962a752b73a6


[ 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.