diff options
author | David Gwynne <dlg@cvs.openbsd.org> | 2007-04-21 12:36:07 +0000 |
---|---|---|
committer | David Gwynne <dlg@cvs.openbsd.org> | 2007-04-21 12:36:07 +0000 |
commit | 5d224da271a37f683833417eea65e984b4488b57 (patch) | |
tree | 5c5af6bbe177e266ee4c507c6116259e29e8da4b /sys/dev | |
parent | fb971e19aba6f350a574da00d7830dda315b1e87 (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.c | 4 |
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; |