diff options
author | Michael Brown | 2016-02-26 16:33:40 +0100 |
---|---|---|
committer | Michael Brown | 2016-02-26 16:33:40 +0100 |
commit | 5bd8427d3dad38993c1f8f175454f7fde0af34ca (patch) | |
tree | de75a672e177f36fef93b81ada93c96541761310 /src/core | |
parent | [librm] Add support for running in 64-bit long mode (diff) | |
download | ipxe-5bd8427d3dad38993c1f8f175454f7fde0af34ca.tar.gz ipxe-5bd8427d3dad38993c1f8f175454f7fde0af34ca.tar.xz ipxe-5bd8427d3dad38993c1f8f175454f7fde0af34ca.zip |
[ioapi] Split ioremap() out to a separate IOMAP API
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/iomap_virt.c | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/src/core/iomap_virt.c b/src/core/iomap_virt.c new file mode 100644 index 00000000..c7f48727 --- /dev/null +++ b/src/core/iomap_virt.c @@ -0,0 +1,36 @@ +/* + * Copyright (C) 2016 Michael Brown <mbrown@fensystems.co.uk>. + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License as + * published by the Free Software Foundation; either version 2 of the + * License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA + * 02110-1301, USA. + * + * You can also choose to distribute this program under the terms of + * the Unmodified Binary Distribution Licence (as given in the file + * COPYING.UBDL), provided that you have satisfied its requirements. + */ + +FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL ); + +/** @file + * + * iPXE I/O mapping API using phys_to_virt() + * + */ + +#include <ipxe/iomap.h> + +PROVIDE_IOMAP_INLINE ( virt, ioremap ); +PROVIDE_IOMAP_INLINE ( virt, iounmap ); +PROVIDE_IOMAP_INLINE ( virt, io_to_bus ); |