Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1 | /* |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 2 | * Copyright (C) 2001 Troy D. Armstrong IBM Corporation |
| 3 | * Copyright (C) 2004 Stephen Rothwell IBM Corporation |
| 4 | * |
| 5 | * This modules exists as an interface between a Linux secondary partition |
| 6 | * running on an iSeries and the primary partition's Virtual Service |
| 7 | * Processor (VSP) object. The VSP has final authority over powering on/off |
| 8 | * all partitions in the iSeries. It also provides miscellaneous low-level |
| 9 | * machine facility type operations. |
| 10 | * |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 11 | * This program is free software; you can redistribute it and/or modify |
| 12 | * it under the terms of the GNU General Public License as published by |
| 13 | * the Free Software Foundation; either version 2 of the License, or |
| 14 | * (at your option) any later version. |
Stephen Rothwell | fcee389 | 2005-06-21 17:15:34 -0700 | [diff] [blame] | 15 | * |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 16 | * This program is distributed in the hope that it will be useful, |
| 17 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 18 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 19 | * GNU General Public License for more details. |
Stephen Rothwell | fcee389 | 2005-06-21 17:15:34 -0700 | [diff] [blame] | 20 | * |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 21 | * You should have received a copy of the GNU General Public License |
| 22 | * along with this program; if not, write to the Free Software |
| 23 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
| 24 | */ |
Kelly Daly | ecb3ca27 | 2005-11-02 15:53:01 +1100 | [diff] [blame] | 25 | #ifndef _ASM_POWERPC_ISERIES_MF_H |
| 26 | #define _ASM_POWERPC_ISERIES_MF_H |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 27 | |
| 28 | #include <linux/types.h> |
| 29 | |
Kelly Daly | 1ec65d7 | 2005-11-02 13:46:07 +1100 | [diff] [blame] | 30 | #include <asm/iseries/hv_types.h> |
Kelly Daly | 10e8805 | 2005-11-02 15:22:37 +1100 | [diff] [blame] | 31 | #include <asm/iseries/hv_call_event.h> |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 32 | |
| 33 | struct rtc_time; |
| 34 | |
| 35 | typedef void (*MFCompleteHandler)(void *clientToken, int returnCode); |
| 36 | |
| 37 | extern void mf_allocate_lp_events(HvLpIndex targetLp, HvLpEvent_Type type, |
| 38 | unsigned size, unsigned amount, MFCompleteHandler hdlr, |
| 39 | void *userToken); |
| 40 | extern void mf_deallocate_lp_events(HvLpIndex targetLp, HvLpEvent_Type type, |
| 41 | unsigned count, MFCompleteHandler hdlr, void *userToken); |
| 42 | |
| 43 | extern void mf_power_off(void); |
Michael Ellerman | a9ea210 | 2006-03-21 20:46:04 +1100 | [diff] [blame] | 44 | extern void mf_reboot(char *cmd); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 45 | |
| 46 | extern void mf_display_src(u32 word); |
| 47 | extern void mf_display_progress(u16 value); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 48 | |
| 49 | extern void mf_init(void); |
| 50 | |
Kelly Daly | ecb3ca27 | 2005-11-02 15:53:01 +1100 | [diff] [blame] | 51 | #endif /* _ASM_POWERPC_ISERIES_MF_H */ |