diff options
author | Hidetoshi Shimokawa <simokawa@FreeBSD.org> | 2003-01-16 13:09:33 +0000 |
---|---|---|
committer | Hidetoshi Shimokawa <simokawa@FreeBSD.org> | 2003-01-16 13:09:33 +0000 |
commit | e2ad5d6e8c940a925c6f6be9fc82dbb5fdc02314 (patch) | |
tree | fbe3405ab5c3412754e3066d13483c37ae80402a /sys/dev/firewire/fwohcivar.h | |
parent | b0459c58c9f610b1c1d9bf9d9b9dba55ec2b3b1f (diff) |
Improve memory allocation.
- Don't use contigmalloc() and allocate page by page to avoid
allocation failure.
- allocate buffer by PAGE_SIZE.
Notes
Notes:
svn path=/head/; revision=109379
Diffstat (limited to 'sys/dev/firewire/fwohcivar.h')
-rw-r--r-- | sys/dev/firewire/fwohcivar.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/dev/firewire/fwohcivar.h b/sys/dev/firewire/fwohcivar.h index 5e657cfe10c0..e3b50eac4e03 100644 --- a/sys/dev/firewire/fwohcivar.h +++ b/sys/dev/firewire/fwohcivar.h @@ -61,6 +61,9 @@ typedef struct fwohci_softc { #define FWOHCI_DBCH_INIT (1<<0) #define FWOHCI_DBCH_FULL (1<<1) int buf_offset; +#define FWOHCI_DBCH_MAX_PAGES 32 + int npages; + void *pages[FWOHCI_DBCH_MAX_PAGES]; } arrq, arrs, atrq, atrs, it[OHCI_DMA_ITCH], ir[OHCI_DMA_IRCH]; u_int maxrec; u_int32_t *cromptr; |