summaryrefslogtreecommitdiffstats
path: root/sys/dev/usb/uhcivar.h
diff options
context:
space:
mode:
authorjmg <jmg@FreeBSD.org>2003-07-15 23:19:49 +0000
committerjmg <jmg@FreeBSD.org>2003-07-15 23:19:49 +0000
commitb103245463e76b8f23e542dab167cca640c53b0b (patch)
treeb847ce011fb1febdcc73865b334213c3cb98a930 /sys/dev/usb/uhcivar.h
parent32a9aeec73a3c286b3d0e84c1c16ee65b0db3704 (diff)
downloadFreeBSD-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.h4
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.
OpenPOWER on IntegriCloud