diff options
author | jmg <jmg@FreeBSD.org> | 2003-07-15 23:19:49 +0000 |
---|---|---|
committer | jmg <jmg@FreeBSD.org> | 2003-07-15 23:19:49 +0000 |
commit | b103245463e76b8f23e542dab167cca640c53b0b (patch) | |
tree | b847ce011fb1febdcc73865b334213c3cb98a930 /sys/dev/usb/uhcivar.h | |
parent | 32a9aeec73a3c286b3d0e84c1c16ee65b0db3704 (diff) | |
download | FreeBSD-src-b103245463e76b8f23e542dab167cca640c53b0b.zip FreeBSD-src-b103245463e76b8f23e542dab167cca640c53b0b.tar.gz |
make allocation of the necessary data structures most efficent by using
a full page instead of only part of a page.
Reviewed by: joe
Diffstat (limited to 'sys/dev/usb/uhcivar.h')
-rw-r--r-- | sys/dev/usb/uhcivar.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/usb/uhcivar.h b/sys/dev/usb/uhcivar.h index 1263ea9..546dcb1 100644 --- a/sys/dev/usb/uhcivar.h +++ b/sys/dev/usb/uhcivar.h @@ -104,7 +104,7 @@ struct uhci_soft_td { * NOTE: Minimum size is 32 bytes. */ #define UHCI_STD_SIZE ((sizeof (struct uhci_soft_td) + UHCI_TD_ALIGN - 1) / UHCI_TD_ALIGN * UHCI_TD_ALIGN) -#define UHCI_STD_CHUNK 128 /*(PAGE_SIZE / UHCI_TD_SIZE)*/ +#define UHCI_STD_CHUNK (PAGE_SIZE / UHCI_STD_SIZE) /* * Extra information that we need for a QH. @@ -118,7 +118,7 @@ struct uhci_soft_qh { }; /* See comment about UHCI_STD_SIZE. */ #define UHCI_SQH_SIZE ((sizeof (struct uhci_soft_qh) + UHCI_QH_ALIGN - 1) / UHCI_QH_ALIGN * UHCI_QH_ALIGN) -#define UHCI_SQH_CHUNK 128 /*(PAGE_SIZE / UHCI_QH_SIZE)*/ +#define UHCI_SQH_CHUNK (PAGE_SIZE / UHCI_SQH_SIZE) /* * Information about an entry in the virtual frame list. |