Deleted Added
full compact
efi_stub.c (139738) efi_stub.c (164010)
1/*-
2 * Copyright (c) 2003,2004 Marcel Moolenaar
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 *

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

20 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
21 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
22 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
23 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
24 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
25 */
26
27#include <sys/cdefs.h>
1/*-
2 * Copyright (c) 2003,2004 Marcel Moolenaar
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 *

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

20 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
21 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
22 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
23 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
24 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
25 */
26
27#include <sys/cdefs.h>
28__FBSDID("$FreeBSD: head/sys/boot/ia64/ski/efi_stub.c 139738 2005-01-05 22:16:58Z imp $");
28__FBSDID("$FreeBSD: head/sys/boot/ia64/ski/efi_stub.c 164010 2006-11-05 22:03:04Z marcel $");
29
30#include <sys/types.h>
29
30#include <sys/types.h>
31#include <machine/bootinfo.h>
32#include <machine/efi.h>
31#include <machine/efi.h>
32#include <ia64/include/bootinfo.h>
33#include <stand.h>
34#include "libski.h"
35
36extern void acpi_root;
37extern void sal_systab;
38
33#include <stand.h>
34#include "libski.h"
35
36extern void acpi_root;
37extern void sal_systab;
38
39extern void acpi_stub_init(void);
40extern void sal_stub_init(void);
41
42struct efi_cfgtbl efi_cfgtab[] = {
43 { EFI_TABLE_ACPI20, (intptr_t)&acpi_root },
44 { EFI_TABLE_SAL, (intptr_t)&sal_systab }
45};
46
47static efi_status GetTime(struct efi_tm *, struct efi_tmcap *);
48static efi_status SetTime(struct efi_tm *);
49static efi_status GetWakeupTime(uint8_t *, uint8_t *, struct efi_tm *);

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

218
219static efi_status
220ResetSystem(enum efi_reset type, efi_status status, u_long datasz,
221 efi_char *data)
222{
223 return (unsupported(__func__));
224}
225
39struct efi_cfgtbl efi_cfgtab[] = {
40 { EFI_TABLE_ACPI20, (intptr_t)&acpi_root },
41 { EFI_TABLE_SAL, (intptr_t)&sal_systab }
42};
43
44static efi_status GetTime(struct efi_tm *, struct efi_tmcap *);
45static efi_status SetTime(struct efi_tm *);
46static efi_status GetWakeupTime(uint8_t *, uint8_t *, struct efi_tm *);

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

215
216static efi_status
217ResetSystem(enum efi_reset type, efi_status status, u_long datasz,
218 efi_char *data)
219{
220 return (unsupported(__func__));
221}
222
226int
227ski_init_stubs(struct bootinfo *bi)
223void
224efi_stub_init(struct bootinfo *bi)
228{
229 struct efi_md *memp;
230
231 /* Describe the SKI memory map. */
232 bi->bi_memmap = (u_int64_t)(bi + 1);
233 bi->bi_memmap_size = 4 * sizeof(struct efi_md);
234 bi->bi_memdesc_size = sizeof(struct efi_md);
235 bi->bi_memdesc_version = 1;

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

256
257 memp[3].md_type = EFI_MD_TYPE_IOPORT;
258 memp[3].md_phys = 0xffffc000000;
259 memp[3].md_virt = NULL;
260 memp[3].md_pages = (64L*1024*1024)>>12;
261 memp[3].md_attr = EFI_MD_ATTR_UC;
262
263 bi->bi_systab = (u_int64_t)&efi_systab;
225{
226 struct efi_md *memp;
227
228 /* Describe the SKI memory map. */
229 bi->bi_memmap = (u_int64_t)(bi + 1);
230 bi->bi_memmap_size = 4 * sizeof(struct efi_md);
231 bi->bi_memdesc_size = sizeof(struct efi_md);
232 bi->bi_memdesc_version = 1;

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

253
254 memp[3].md_type = EFI_MD_TYPE_IOPORT;
255 memp[3].md_phys = 0xffffc000000;
256 memp[3].md_virt = NULL;
257 memp[3].md_pages = (64L*1024*1024)>>12;
258 memp[3].md_attr = EFI_MD_ATTR_UC;
259
260 bi->bi_systab = (u_int64_t)&efi_systab;
264
265 sal_stub_init();
266 acpi_stub_init();
267
268 return (0);
269}
261}