From b103245463e76b8f23e542dab167cca640c53b0b Mon Sep 17 00:00:00 2001 From: jmg Date: Tue, 15 Jul 2003 23:19:49 +0000 Subject: make allocation of the necessary data structures most efficent by using a full page instead of only part of a page. Reviewed by: joe --- sys/dev/usb/uhcivar.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/dev/usb/uhcivar.h') 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. -- cgit v1.1