From 35f6423e4f4a4fddbd4efd977465f79ac4db45c8 Mon Sep 17 00:00:00 2001 From: augustss Date: Wed, 27 Apr 2005 21:23:41 +0000 Subject: [PATCH] Add define for EHCI_MAX_POLLRATE. --- sys/dev/usb/ehcivar.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sys/dev/usb/ehcivar.h b/sys/dev/usb/ehcivar.h index fd735e6dfa8d..a6ec8c370dbd 100644 --- a/sys/dev/usb/ehcivar.h +++ b/sys/dev/usb/ehcivar.h @@ -1,4 +1,4 @@ -/* $NetBSD: ehcivar.h,v 1.17 2005/01/11 07:45:34 imp Exp $ */ +/* $NetBSD: ehcivar.h,v 1.18 2005/04/27 21:23:41 augustss Exp $ */ /* * Copyright (c) 2001 The NetBSD Foundation, Inc. @@ -77,6 +77,7 @@ struct ehci_soft_islot { #define EHCI_FRAMELIST_MAXCOUNT 1024 #define EHCI_IPOLLRATES 8 /* Poll rates (1ms, 2, 4, 8 .. 128) */ #define EHCI_INTRQHS ((1 << EHCI_IPOLLRATES) - 1) +#define EHCI_MAX_POLLRATE (1 << (EHCI_IPOLLRATES - 1)) #define EHCI_IQHIDX(lev, pos) \ ((((pos) & ((1 << (lev)) - 1)) | (1 << (lev))) - 1) #define EHCI_ILEV_IVAL(lev) (1 << (lev))