The Pedigree Project
0.1
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
src
system
boot
ppc
prom.h
1
/*
2
* Copyright (c) 2008-2014, Pedigree Developers
3
*
4
* Please see the CONTRIB file in the root of the source tree for a full
5
* list of contributors.
6
*
7
* Permission to use, copy, modify, and distribute this software for any
8
* purpose with or without fee is hereby granted, provided that the above
9
* copyright notice and this permission notice appear in all copies.
10
*
11
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
12
* WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
13
* MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
14
* ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
15
* WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
16
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
17
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
18
*/
19
20
#ifndef PROM_H
21
#define PROM_H
22
23
struct
prom_args
24
{
25
const
char
*service;
26
int
nargs;
27
int
nret;
28
void
*args[10];
29
};
30
31
typedef
void
*prom_handle;
32
33
typedef
int (*prom_entry)(
prom_args
*);
34
void
prom_init(prom_entry pe);
35
36
void
*call_prom(
37
const
char
*service,
int
nargs,
int
nret,
void
*a1 = 0,
void
*a2 = 0,
38
void
*a3 = 0,
void
*a4 = 0,
void
*a5 = 0,
void
*a6 = 0);
39
40
void
*prom_finddevice(
const
char
*dev);
41
int
prom_exit();
42
int
prom_getprop(prom_handle dev,
char
*name,
void
*buf,
int
len);
43
void
prom_putchar(
char
c);
44
int
prom_get_chosen(
char
*name,
void
*
mem
,
int
len);
45
void
prom_map(
unsigned
int
phys,
unsigned
int
virt,
unsigned
int
size);
46
47
#endif
prom_args
Definition:
prom.h:23
mem
Definition:
mem.c:283
Generated on Fri Jan 24 2020 06:46:15 for The Pedigree Project by
1.8.11