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

FreeBSD/Linux Kernel Cross Reference
sys/arm/include/bootinfo.h

Version: -  FREEBSD  -  FREEBSD7  -  FREEBSD71  -  FREEBSD70  -  FREEBSD6  -  FREEBSD64  -  FREEBSD63  -  FREEBSD62  -  FREEBSD61  -  FREEBSD60  -  FREEBSD5  -  FREEBSD55  -  FREEBSD54  -  FREEBSD53  -  FREEBSD52  -  FREEBSD51  -  FREEBSD50  -  FREEBSD4  -  FREEBSD3  -  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  -  OPENSOLARIS  -  minix-3-1-1  -  TRUSTEDBSD-SEBSD  -  FREEBSD-LIBC  -  FREEBSD7-LIBC  -  FREEBSD6-LIBC  -  GLIBC27 
SearchContext: -  none  -  excerpts  -  bigexcerpts 

  1 /*-
  2  * Copyright (C) 2006-2008 Semihalf, Marian Balakowicz <m8@semihalf.com>
  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  *
 14  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
 15  * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
 16  * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.  IN
 17  * NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
 18  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED
 19  * TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
 20  * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
 21  * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
 22  * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
 23  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 24  *
 25  * $FreeBSD: src/sys/arm/include/bootinfo.h,v 1.1 2008/10/14 10:11:14 raj Exp $
 26  */
 27 
 28 #ifndef _MACHINE_BOOTINFO_H_
 29 #define _MACHINE_BOOTINFO_H_
 30 
 31 #if !defined(LOCORE)
 32 
 33 /* Platform hardware spec, received from loader(8) */
 34 
 35 #define BI_VERSION      1
 36 
 37 struct bi_mem_region {
 38         vm_paddr_t      mem_base;
 39         vm_size_t       mem_size;
 40 };
 41 
 42 struct bi_eth_addr {
 43         u_int8_t        mac_addr[6];
 44         u_int8_t        padding[2];
 45 };
 46 
 47 struct bootinfo {
 48         u_int32_t       bi_version;
 49         vm_offset_t     bi_bar_base;
 50         u_int32_t       bi_cpu_clk;
 51         u_int32_t       bi_bus_clk;
 52         u_int8_t        bi_mem_reg_no;
 53         u_int8_t        bi_eth_addr_no;
 54         u_int8_t        padding[2];
 55 
 56         u_int8_t        bi_data[1];
 57         /*
 58          * The bi_data container is allocated in run time and has the
 59          * following layout:
 60          *
 61          * - bi_mem_reg_no elements of struct bi_mem_region
 62          * - bi_eth_addr_no elements of struct bi_eth_addr
 63          */
 64 };
 65 
 66 extern struct bootinfo *bootinfo;
 67 
 68 struct bi_mem_region *bootinfo_mr(void);
 69 struct bi_eth_addr *bootinfo_eth(void);
 70 #endif
 71 
 72 #endif /* _MACHINE_BOOTINFO_H_ */
 73 

Cache object: 71239806c1220d4a3c5b59d703c6d85d


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