/* * This file and its contents are supplied under the terms of the * Common Development and Distribution License ("CDDL"), version 1.0. * You may only use this file in accordance with the terms of version * 1.0 of the CDDL. * * A full copy of the text of the CDDL should have accompanied this * source. A copy of the CDDL is also available via the Internet at * http://www.illumos.org/license/CDDL. */ /* * Copyright 2022 Oxide Computer Company */ #ifndef _PAYLOAD_UTILS_H_ #define _PAYLOAD_UTILS_H_ #include #include void outb(uint16_t, uint8_t); void outw(uint16_t, uint16_t); void outl(uint16_t, uint32_t); uint8_t inb(uint16_t); uint16_t inw(uint16_t); uint32_t inl(uint16_t); uint64_t rdmsr(uint32_t); void wrmsr(uint32_t, uint64_t); void cpuid(uint32_t, uint32_t, uint32_t *); #endif /* _PAYLOAD_UTILS_H_ */