Deleted Added
full compact
platform.h (192067) platform.h (215159)
1/*-
2 * Copyright (C) 1996 Wolfgang Solfrank.
3 * Copyright (C) 1996 TooLs GmbH.
4 * All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:

--- 15 unchanged lines hidden (view full) ---

24 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
25 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
26 * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
27 * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
28 * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
29 * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
30 *
31 * $NetBSD: powerpc.h,v 1.3 2000/06/01 00:49:59 matt Exp $
1/*-
2 * Copyright (C) 1996 Wolfgang Solfrank.
3 * Copyright (C) 1996 TooLs GmbH.
4 * All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:

--- 15 unchanged lines hidden (view full) ---

24 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
25 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
26 * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
27 * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
28 * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
29 * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
30 *
31 * $NetBSD: powerpc.h,v 1.3 2000/06/01 00:49:59 matt Exp $
32 * $FreeBSD: head/sys/powerpc/include/platform.h 192067 2009-05-14 00:34:26Z nwhitehorn $
32 * $FreeBSD: head/sys/powerpc/include/platform.h 215159 2010-11-12 04:18:19Z nwhitehorn $
33 */
34
35#ifndef _MACHINE_PLATFORM_H_
36#define _MACHINE_PLATFORM_H_
37
38#include <machine/smp.h>
39#include <machine/pcpu.h>
40
41struct mem_region {
42 vm_offset_t mr_start;
43 vm_size_t mr_size;
44};
45
46void mem_regions(struct mem_region **, int *, struct mem_region **, int *);
33 */
34
35#ifndef _MACHINE_PLATFORM_H_
36#define _MACHINE_PLATFORM_H_
37
38#include <machine/smp.h>
39#include <machine/pcpu.h>
40
41struct mem_region {
42 vm_offset_t mr_start;
43 vm_size_t mr_size;
44};
45
46void mem_regions(struct mem_region **, int *, struct mem_region **, int *);
47vm_offset_t platform_real_maxaddr(void);
47
48u_long platform_timebase_freq(struct cpuref *);
49
50int platform_smp_first_cpu(struct cpuref *);
51int platform_smp_next_cpu(struct cpuref *);
52int platform_smp_get_bsp(struct cpuref *);
53int platform_smp_start_cpu(struct pcpu *);
54
55const char *installed_platform(void);
56void platform_probe_and_attach(void);
57
58#endif /* _MACHINE_PLATFORM_H_ */
48
49u_long platform_timebase_freq(struct cpuref *);
50
51int platform_smp_first_cpu(struct cpuref *);
52int platform_smp_next_cpu(struct cpuref *);
53int platform_smp_get_bsp(struct cpuref *);
54int platform_smp_start_cpu(struct pcpu *);
55
56const char *installed_platform(void);
57void platform_probe_and_attach(void);
58
59#endif /* _MACHINE_PLATFORM_H_ */