vbos/include/kernel/pio.h
Michael Shaw 605507a688 pci: add simple pci driver
this driver only prints devices on the pci bus.
2023-05-03 23:55:54 -04:00

19 lines
346 B
C

/* SPDX-License-Identifier: GPL-2.0-only */
#ifndef _PIO_H_
#define _PIO_H_
#include <stdint.h>
#define genio(suffix, type) \
void out##suffix(uint16_t port, type value); \
type in##suffix(uint16_t port);
genio(b, uint8_t);
genio(w, uint16_t);
genio(l, uint32_t);
#undef genio
void iowait();
#endif /* _PIO_H_ */