coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
rtas.h
Go to the documentation of this file.
1 /******************************************************************************
2  * Copyright (c) 2004, 2008 IBM Corporation
3  *
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 are
8  * met:
9  *
10  * Redistributions of source code must retain the above copyright
11  * notice, this list of conditions and the following disclaimer.
12  *
13  * Redistributions in binary form must reproduce the above copyright
14  * notice, this list of conditions and the following disclaimer
15  * in the documentation and/or other materials provided with the
16  * distribution.
17  *
18  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
19  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
20  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
21  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
22  * HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
23  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
24  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
25  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
26  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
27  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
28  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29  *
30  * Contributors:
31  * IBM Corporation - initial implementation
32  *****************************************************************************/
33 
34 #ifndef RTAS_H
35 #define RTAS_H
36 
37 #include "of.h"
38 
39 typedef struct dtime {
40  unsigned int year;
41  unsigned int month;
42  unsigned int day;
43  unsigned int hour;
44  unsigned int minute;
45  unsigned int second;
46  unsigned int nano;
48 
49 typedef void (*thread_t) (int);
50 
51 int rtas_token(const char *);
52 int rtas_call(int, int, int, int *, ...);
53 void rtas_init(void);
54 int rtas_pci_config_read (long long, int, int, int, int);
55 int rtas_pci_config_write (long long, int, int, int, int, int);
58 int rtas_ibm_update_flash_64(long long, long long);
59 int rtas_ibm_update_flash_64_and_reboot(long long, long long);
61 int rtas_start_cpu (int, thread_t, int);
62 int rtas_stop_self (void);
64 
65 #endif
int rtas_stop_self(void)
void(* thread_t)(int)
Definition: rtas.h:49
int rtas_get_time_of_day(dtime *)
int rtas_start_cpu(int, thread_t, int)
int rtas_pci_config_read(long long, int, int, int, int)
int rtas_system_reboot(void)
void rtas_init(void)
int rtas_ibm_update_flash_64(long long, long long)
int rtas_token(const char *)
int rtas_set_time_of_day(dtime *)
int rtas_call(int, int, int, int *,...)
struct dtime dtime
int rtas_ibm_update_flash_64_and_reboot(long long, long long)
int rtas_pci_config_write(long long, int, int, int, int, int)
int rtas_ibm_manage_flash(int)
Definition: rtas.h:39
unsigned int hour
Definition: rtas.h:43
unsigned int year
Definition: rtas.h:40
unsigned int day
Definition: rtas.h:42
unsigned int second
Definition: rtas.h:45
unsigned int minute
Definition: rtas.h:44
unsigned int month
Definition: rtas.h:41
unsigned int nano
Definition: rtas.h:46
typedef void(X86APIP X86EMU_intrFuncs)(int num)