mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 02:30:03 +01:00
This patch adds iowritexx() and ioreadxx() functions for interacting with hardware memory to mini-os. The functions are available in a header iorw.h Signed-off-by: Matthew Fioravante <matthew.fioravante@jhuapl.edu> Acked-by: Samuel Thibault <samuel.thibault@ens-lyons.org> Reviewed-by: George Dunlap <george.dunlap@eu.citrix.com> Committed-by: Ian Campbell <ian.campbell@citrix.com>
17 lines
442 B
C
17 lines
442 B
C
#ifndef MINIOS_IORW_H
|
|
#define MINIOS_IORW_H
|
|
|
|
#include <mini-os/types.h>
|
|
|
|
void iowrite8(volatile void* addr, uint8_t val);
|
|
void iowrite16(volatile void* addr, uint16_t val);
|
|
void iowrite32(volatile void* addr, uint32_t val);
|
|
void iowrite64(volatile void* addr, uint64_t val);
|
|
|
|
uint8_t ioread8(volatile void* addr);
|
|
uint16_t ioread16(volatile void* addr);
|
|
uint32_t ioread32(volatile void* addr);
|
|
uint64_t ioread64(volatile void* addr);
|
|
|
|
#endif
|