199767f8919635c4928607450d9e0abb932109ceToomas Soome * Copyright (c) 2004 Marcel Moolenaar
199767f8919635c4928607450d9e0abb932109ceToomas Soome * All rights reserved.
199767f8919635c4928607450d9e0abb932109ceToomas Soome * Redistribution and use in source and binary forms, with or without
199767f8919635c4928607450d9e0abb932109ceToomas Soome * modification, are permitted provided that the following conditions
199767f8919635c4928607450d9e0abb932109ceToomas Soome * 1. Redistributions of source code must retain the above copyright
199767f8919635c4928607450d9e0abb932109ceToomas Soome * notice, this list of conditions and the following disclaimer.
199767f8919635c4928607450d9e0abb932109ceToomas Soome * 2. Redistributions in binary form must reproduce the above copyright
199767f8919635c4928607450d9e0abb932109ceToomas Soome * notice, this list of conditions and the following disclaimer in the
199767f8919635c4928607450d9e0abb932109ceToomas Soome * documentation and/or other materials provided with the distribution.
199767f8919635c4928607450d9e0abb932109ceToomas Soome * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
199767f8919635c4928607450d9e0abb932109ceToomas Soome * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
199767f8919635c4928607450d9e0abb932109ceToomas Soome * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
199767f8919635c4928607450d9e0abb932109ceToomas Soome * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
199767f8919635c4928607450d9e0abb932109ceToomas Soome * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
199767f8919635c4928607450d9e0abb932109ceToomas Soome * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
199767f8919635c4928607450d9e0abb932109ceToomas Soome * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
199767f8919635c4928607450d9e0abb932109ceToomas Soome * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
199767f8919635c4928607450d9e0abb932109ceToomas Soome * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
199767f8919635c4928607450d9e0abb932109ceToomas Soome * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
199767f8919635c4928607450d9e0abb932109ceToomas Soome {0x8868e871,0xe4f1,0x11d3,0xbc,0x22,{0x00,0x80,0xc7,0x3c,0x88,0x81}}
199767f8919635c4928607450d9e0abb932109ceToomas Soome {0xeb9d2d32,0x2d88,0x11d3,0x9a,0x16,{0x00,0x90,0x27,0x3f,0xc1,0x4d}}
199767f8919635c4928607450d9e0abb932109ceToomas Soome#define EFI_MD_TYPE_BS_CODE 3 /* Boot services text. */
199767f8919635c4928607450d9e0abb932109ceToomas Soome#define EFI_MD_TYPE_BS_DATA 4 /* Boot services data. */
199767f8919635c4928607450d9e0abb932109ceToomas Soome#define EFI_MD_TYPE_RT_CODE 5 /* Runtime services text. */
199767f8919635c4928607450d9e0abb932109ceToomas Soome#define EFI_MD_TYPE_RT_DATA 6 /* Runtime services data. */
199767f8919635c4928607450d9e0abb932109ceToomas Soome#define EFI_MD_TYPE_FREE 7 /* Unused/free memory. */
199767f8919635c4928607450d9e0abb932109ceToomas Soome#define EFI_MD_TYPE_RECLAIM 9 /* ACPI reclaimable memory. */
199767f8919635c4928607450d9e0abb932109ceToomas Soome#define EFI_MD_TYPE_FIRMWARE 10 /* ACPI NV memory */
199767f8919635c4928607450d9e0abb932109ceToomas Soome#define EFI_MD_TYPE_IOMEM 11 /* Memory-mapped I/O. */
199767f8919635c4928607450d9e0abb932109ceToomas Soome#define EFI_MD_TYPE_IOPORT 12 /* I/O port space. */
199767f8919635c4928607450d9e0abb932109ceToomas Soome uint8_t tc_stz; /* Set clears sub-second time */
199767f8919635c4928607450d9e0abb932109ceToomas Soome efi_status (*rt_gettime)(struct efi_tm *, struct efi_tmcap *);
199767f8919635c4928607450d9e0abb932109ceToomas Soome efi_status (*rt_getwaketime)(uint8_t *, uint8_t *,
199767f8919635c4928607450d9e0abb932109ceToomas Soome efi_status (*rt_setwaketime)(uint8_t, struct efi_tm *);
199767f8919635c4928607450d9e0abb932109ceToomas Soome efi_status (*rt_setvirtual)(u_long, u_long, uint32_t,
199767f8919635c4928607450d9e0abb932109ceToomas Soome efi_status (*rt_getvar)(efi_char *, struct uuid *, uint32_t *,
199767f8919635c4928607450d9e0abb932109ceToomas Soome efi_status (*rt_scanvar)(u_long *, efi_char *, struct uuid *);
199767f8919635c4928607450d9e0abb932109ceToomas Soome efi_status (*rt_setvar)(efi_char *, struct uuid *, uint32_t,
199767f8919635c4928607450d9e0abb932109ceToomas Soome efi_status (*rt_reset)(enum efi_reset, efi_status, u_long,
199767f8919635c4928607450d9e0abb932109ceToomas Soome#endif /* _SYS_EFI_H_ */