mirror of
https://github.com/opnsense/src.git
synced 2026-06-08 16:22:46 -04:00
Add a crutch so that direct-mapped DMA works on alpha. This is a step
toward preventing this driver from crashing an alpha at boot. Tested by: Oliver Lehmann <lehmann@ans-netz.de>
This commit is contained in:
parent
252bcf459d
commit
9ef024f7b7
1 changed files with 4 additions and 0 deletions
|
|
@ -165,7 +165,11 @@ typedef struct _pdq_os_ctx_t {
|
|||
#define PDQ_OS_CSR_FMT "0x%x"
|
||||
|
||||
#define PDQ_OS_USEC_DELAY(n) DELAY(n)
|
||||
#ifdef __alpha__
|
||||
#define PDQ_OS_VA_TO_BUSPA(pdq, p) alpha_XXX_dmamap((vm_offset_t)p)
|
||||
#else
|
||||
#define PDQ_OS_VA_TO_BUSPA(pdq, p) vtophys(p)
|
||||
#endif
|
||||
|
||||
#define PDQ_OS_MEMALLOC(n) malloc(n, M_DEVBUF, M_NOWAIT)
|
||||
#define PDQ_OS_MEMFREE(p, n) free((void *) p, M_DEVBUF)
|
||||
|
|
|
|||
Loading…
Reference in a new issue