mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 00:32:25 -04:00
Implement ioread16be() in the LinuxKPI.
MFC after: 1 week Sponsored by: Mellanox Technologies
This commit is contained in:
parent
b37c654140
commit
62d08fae13
1 changed files with 7 additions and 0 deletions
|
|
@ -109,6 +109,13 @@ ioread16(const volatile void *addr)
|
|||
return *(const volatile uint16_t *)addr;
|
||||
}
|
||||
|
||||
#undef ioread16be
|
||||
static inline uint16_t
|
||||
ioread16be(const volatile void *addr)
|
||||
{
|
||||
return be16toh(*(const volatile uint16_t *)addr);
|
||||
}
|
||||
|
||||
#undef ioread32
|
||||
static inline uint32_t
|
||||
ioread32(const volatile void *addr)
|
||||
|
|
|
|||
Loading…
Reference in a new issue