diff options
| author | Hartmut Brandt <harti@FreeBSD.org> | 2004-02-21 19:08:23 +0000 |
|---|---|---|
| committer | Hartmut Brandt <harti@FreeBSD.org> | 2004-02-21 19:08:23 +0000 |
| commit | 7563a29b8566c3c862a995022e62a54b6c3faa6b (patch) | |
| tree | 59fff202f96aba6e91b7105b3c245bbdc6fe9832 /sys/dev/hfa/fore_command.c | |
| parent | 056b9907deb384cfdd176a24ad17ef3b97618cf6 (diff) | |
Notes
Diffstat (limited to 'sys/dev/hfa/fore_command.c')
| -rw-r--r-- | sys/dev/hfa/fore_command.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/sys/dev/hfa/fore_command.c b/sys/dev/hfa/fore_command.c index f2208c600d31..fccb659f91de 100644 --- a/sys/dev/hfa/fore_command.c +++ b/sys/dev/hfa/fore_command.c @@ -92,6 +92,7 @@ fore_cmd_allocate(fup) Fore_unit *fup; { caddr_t memp; + vm_paddr_t pmemp; /* * Allocate non-cacheable memory for command status words @@ -103,11 +104,11 @@ fore_cmd_allocate(fup) } fup->fu_cmd_stat = (Q_status *) memp; - memp = (caddr_t)vtophys(fup->fu_cmd_stat); - if (memp == NULL) { + pmemp = vtophys(fup->fu_cmd_stat); + if (pmemp == NULL) { return (1); } - fup->fu_cmd_statd = (Q_status *) memp; + fup->fu_cmd_statd = pmemp; /* * Allocate memory for statistics buffer @@ -153,7 +154,7 @@ fore_cmd_initialize(fup) Cmd_queue *cqp; H_cmd_queue *hcp; Q_status *qsp; - Q_status *qsp_dma; + vm_paddr_t qsp_dma; int i; /* @@ -198,7 +199,7 @@ fore_cmd_initialize(fup) */ hcp++; qsp++; - qsp_dma++; + qsp_dma += sizeof(Q_status); cqp++; } |
