1ae7424d9Sgarbled /*- 2ae7424d9Sgarbled * Copyright (c) 2007 The NetBSD Foundation, Inc. 3ae7424d9Sgarbled * All rights reserved. 4ae7424d9Sgarbled * 5ae7424d9Sgarbled * This code is derived from software contributed to The NetBSD Foundation 6ae7424d9Sgarbled * by Tim Rightnour 7ae7424d9Sgarbled * 8ae7424d9Sgarbled * Redistribution and use in source and binary forms, with or without 9ae7424d9Sgarbled * modification, are permitted provided that the following conditions 10ae7424d9Sgarbled * are met: 11ae7424d9Sgarbled * 1. Redistributions of source code must retain the above copyright 12ae7424d9Sgarbled * notice, this list of conditions and the following disclaimer. 13ae7424d9Sgarbled * 2. Redistributions in binary form must reproduce the above copyright 14ae7424d9Sgarbled * notice, this list of conditions and the following disclaimer in the 15ae7424d9Sgarbled * documentation and/or other materials provided with the distribution. 16ae7424d9Sgarbled * 17ae7424d9Sgarbled * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS 18ae7424d9Sgarbled * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED 19ae7424d9Sgarbled * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 20ae7424d9Sgarbled * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS 21ae7424d9Sgarbled * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 22ae7424d9Sgarbled * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 23ae7424d9Sgarbled * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 24ae7424d9Sgarbled * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 25ae7424d9Sgarbled * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 26ae7424d9Sgarbled * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 27ae7424d9Sgarbled * POSSIBILITY OF SUCH DAMAGE. 28ae7424d9Sgarbled */ 29ae7424d9Sgarbled 30ae7424d9Sgarbled #ifndef _POWERPC_RTAS_H_ 31*3ce4c449Sjoerg #define _POWERPC_RTAS_H_ 32ae7424d9Sgarbled 33ae7424d9Sgarbled #define RTAS_MAXARGS 16 34ae7424d9Sgarbled 35ae7424d9Sgarbled enum rtas_func { 36ae7424d9Sgarbled RTAS_FUNC_RESTART_RTAS, 37ae7424d9Sgarbled RTAS_FUNC_NVRAM_FETCH, 38ae7424d9Sgarbled RTAS_FUNC_NVRAM_STORE, 39ae7424d9Sgarbled RTAS_FUNC_GET_TIME_OF_DAY, 40ae7424d9Sgarbled RTAS_FUNC_SET_TIME_OF_DAY, 41ae7424d9Sgarbled RTAS_FUNC_SET_TIME_FOR_POWER_ON, 42ae7424d9Sgarbled RTAS_FUNC_EVENT_SCAN, 43ae7424d9Sgarbled RTAS_FUNC_CHECK_EXCEPTION, 44ae7424d9Sgarbled RTAS_FUNC_READ_PCI_CONFIG, 45ae7424d9Sgarbled RTAS_FUNC_WRITE_PCI_CONFIG, 46ae7424d9Sgarbled RTAS_FUNC_DISPLAY_CHARACTER, 47ae7424d9Sgarbled RTAS_FUNC_SET_INDICATOR, 48ae7424d9Sgarbled RTAS_FUNC_POWER_OFF, 49ae7424d9Sgarbled RTAS_FUNC_SUSPEND, 50ae7424d9Sgarbled RTAS_FUNC_HIBERNATE, 51ae7424d9Sgarbled RTAS_FUNC_SYSTEM_REBOOT, 5297922837Sgarbled RTAS_FUNC_FREEZE_TIME_BASE, 5397922837Sgarbled RTAS_FUNC_THAW_TIME_BASE, 54ae7424d9Sgarbled RTAS_FUNC_number 55ae7424d9Sgarbled }; 56ae7424d9Sgarbled 57ae7424d9Sgarbled int rtas_call(int, int, int, ...); 580abe9cf4Sgarbled int rtas_has_func(int); 59ae7424d9Sgarbled 60ae7424d9Sgarbled #endif /* _POWERPC_RTAS_H_ */ 61