1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-21 11:13:30 +00:00

Enable ioremap for aarch64 in the LinuxKPI

Required for Mellanox drivers (e.g. on Ampere eMAG at Packet.com).

PR:		237055
Submitted by:	Greg V <greg@unrelenting.technology>
Reviewed by:	hselasky
Differential Revision:	https://reviews.freebsd.org/D19987
This commit is contained in:
Ed Maste 2019-04-20 15:57:05 +00:00
parent 7bd1cac6c5
commit ff9be73ee3
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=346445
2 changed files with 3 additions and 3 deletions

View File

@ -350,7 +350,7 @@ _outb(u_char data, u_int port)
}
#endif
#if defined(__i386__) || defined(__amd64__) || defined(__powerpc__)
#if defined(__i386__) || defined(__amd64__) || defined(__powerpc__) || defined(__aarch64__)
void *_ioremap_attr(vm_paddr_t phys_addr, unsigned long size, int attr);
#else
#define _ioremap_attr(...) NULL

View File

@ -1773,7 +1773,7 @@ vmmap_remove(void *addr)
return (vmmap);
}
#if defined(__i386__) || defined(__amd64__) || defined(__powerpc__)
#if defined(__i386__) || defined(__amd64__) || defined(__powerpc__) || defined(__aarch64__)
void *
_ioremap_attr(vm_paddr_t phys_addr, unsigned long size, int attr)
{
@ -1796,7 +1796,7 @@ iounmap(void *addr)
vmmap = vmmap_remove(addr);
if (vmmap == NULL)
return;
#if defined(__i386__) || defined(__amd64__) || defined(__powerpc__)
#if defined(__i386__) || defined(__amd64__) || defined(__powerpc__) || defined(__aarch64__)
pmap_unmapdev((vm_offset_t)addr, vmmap->vm_size);
#endif
kfree(vmmap);