summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorDavid Gwynne <dlg@cvs.openbsd.org>2007-04-21 12:36:07 +0000
committerDavid Gwynne <dlg@cvs.openbsd.org>2007-04-21 12:36:07 +0000
commit5d224da271a37f683833417eea65e984b4488b57 (patch)
tree5c5af6bbe177e266ee4c507c6116259e29e8da4b /sys/dev
parentfb971e19aba6f350a574da00d7830dda315b1e87 (diff)
quick macro to figure out how many 64bit words a buffer will use.
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/pci/if_tht.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/dev/pci/if_tht.c b/sys/dev/pci/if_tht.c
index 6bf392a397e..415469ae71c 100644
--- a/sys/dev/pci/if_tht.c
+++ b/sys/dev/pci/if_tht.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_tht.c,v 1.38 2007/04/21 12:32:32 dlg Exp $ */
+/* $OpenBSD: if_tht.c,v 1.39 2007/04/21 12:36:06 dlg Exp $ */
/*
* Copyright (c) 2007 David Gwynne <dlg@openbsd.org>
@@ -470,6 +470,8 @@ int tht_wait_ne(struct tht_softc *, bus_size_t, u_int32_t,
/* misc */
#define DEVNAME(_sc) ((_sc)->sc_dev.dv_xname)
#define sizeofa(_a) (sizeof(_a) / sizeof((_a)[0]))
+#define LWORDS(_b) (((_b) + 7) >> 3)
+
struct thtc_device {
pci_vendor_id_t td_vendor;