ofw_machdep.c (209975) | ofw_machdep.c (212054) |
---|---|
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: --- 18 unchanged lines hidden (view full) --- 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: ofw_machdep.c,v 1.5 2000/05/23 13:25:43 tsubai Exp $ 32 */ 33 34#include <sys/cdefs.h> | 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: --- 18 unchanged lines hidden (view full) --- 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: ofw_machdep.c,v 1.5 2000/05/23 13:25:43 tsubai Exp $ 32 */ 33 34#include <sys/cdefs.h> |
35__FBSDID("$FreeBSD: head/sys/powerpc/aim/ofw_machdep.c 209975 2010-07-13 05:32:19Z nwhitehorn $"); | 35__FBSDID("$FreeBSD: head/sys/powerpc/aim/ofw_machdep.c 212054 2010-08-31 15:27:46Z nwhitehorn $"); |
36 37#include <sys/param.h> 38#include <sys/bus.h> 39#include <sys/systm.h> 40#include <sys/conf.h> 41#include <sys/disk.h> 42#include <sys/fcntl.h> 43#include <sys/malloc.h> --- 478 unchanged lines hidden (view full) --- 522 #else 523 result = openfirmware_core(args); 524 #endif 525 526 return (result); 527} 528 529void | 36 37#include <sys/param.h> 38#include <sys/bus.h> 39#include <sys/systm.h> 40#include <sys/conf.h> 41#include <sys/disk.h> 42#include <sys/fcntl.h> 43#include <sys/malloc.h> --- 478 unchanged lines hidden (view full) --- 522 #else 523 result = openfirmware_core(args); 524 #endif 525 526 return (result); 527} 528 529void |
530OF_halt() 531{ 532 int retval; /* dummy, this may not be needed */ 533 534 OF_interpret("shut-down", 1, &retval); 535 for (;;); /* just in case */ 536} 537 538void | |
539OF_reboot() 540{ | 530OF_reboot() 531{ |
541 int retval; /* dummy, this may not be needed */ | 532 struct { 533 cell_t name; 534 cell_t nargs; 535 cell_t nreturns; 536 cell_t arg; 537 } args; |
542 | 538 |
543 OF_interpret("reset-all", 1, &retval); | 539 args.name = (cell_t)(uintptr_t)"interpret"; 540 args.nargs = 1; 541 args.nreturns = 0; 542 args.arg = (cell_t)(uintptr_t)"reset-all"; 543 openfirmware_core(&args); /* Don't do rendezvous! */ 544 |
544 for (;;); /* just in case */ 545} 546 547void 548OF_getetheraddr(device_t dev, u_char *addr) 549{ 550 phandle_t node; 551 --- 149 unchanged lines hidden --- | 545 for (;;); /* just in case */ 546} 547 548void 549OF_getetheraddr(device_t dev, u_char *addr) 550{ 551 phandle_t node; 552 --- 149 unchanged lines hidden --- |