xref: /openbmc/linux/arch/ia64/include/asm/esi.h (revision b2441318)
1b2441318SGreg Kroah-Hartman /* SPDX-License-Identifier: GPL-2.0 */
27f30491cSTony Luck /*
37f30491cSTony Luck  * ESI service calls.
47f30491cSTony Luck  *
57f30491cSTony Luck  * Copyright (c) Copyright 2005-2006 Hewlett-Packard Development Company, L.P.
67f30491cSTony Luck  * 	Alex Williamson <alex.williamson@hp.com>
77f30491cSTony Luck  */
87f30491cSTony Luck #ifndef esi_h
97f30491cSTony Luck #define esi_h
107f30491cSTony Luck 
117f30491cSTony Luck #include <linux/efi.h>
127f30491cSTony Luck 
137f30491cSTony Luck #define ESI_QUERY			0x00000001
147f30491cSTony Luck #define ESI_OPEN_HANDLE			0x02000000
157f30491cSTony Luck #define ESI_CLOSE_HANDLE		0x02000001
167f30491cSTony Luck 
177f30491cSTony Luck enum esi_proc_type {
187f30491cSTony Luck 	ESI_PROC_SERIALIZED,	/* calls need to be serialized */
197f30491cSTony Luck 	ESI_PROC_MP_SAFE,	/* MP-safe, but not reentrant */
207f30491cSTony Luck 	ESI_PROC_REENTRANT	/* MP-safe and reentrant */
217f30491cSTony Luck };
227f30491cSTony Luck 
237f30491cSTony Luck extern struct ia64_sal_retval esi_call_phys (void *, u64 *);
247f30491cSTony Luck extern int ia64_esi_call(efi_guid_t, struct ia64_sal_retval *,
257f30491cSTony Luck 			 enum esi_proc_type,
267f30491cSTony Luck 			 u64, u64, u64, u64, u64, u64, u64, u64);
277f30491cSTony Luck extern int ia64_esi_call_phys(efi_guid_t, struct ia64_sal_retval *, u64, u64,
287f30491cSTony Luck                               u64, u64, u64, u64, u64, u64);
297f30491cSTony Luck 
307f30491cSTony Luck #endif /* esi_h */
31