diff options
author | Christopher Pascoe <pascoe@cvs.openbsd.org> | 2006-06-01 05:19:39 +0000 |
---|---|---|
committer | Christopher Pascoe <pascoe@cvs.openbsd.org> | 2006-06-01 05:19:39 +0000 |
commit | 155557ab018401b6e1c377b443afd2dfc2f324db (patch) | |
tree | d7d7ca1ac8dc5ea36bf92c3282ec42803ba33ff0 /sys | |
parent | c09c0a87b98af5cdace456999f6e1a3a37304c52 (diff) |
Remove unused macros, improve readability.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/usb/if_axereg.h | 19 |
1 files changed, 3 insertions, 16 deletions
diff --git a/sys/dev/usb/if_axereg.h b/sys/dev/usb/if_axereg.h index a3d060e7ead..20581acb2eb 100644 --- a/sys/dev/usb/if_axereg.h +++ b/sys/dev/usb/if_axereg.h @@ -1,4 +1,4 @@ -/* $OpenBSD: if_axereg.h,v 1.11 2005/11/29 23:16:59 jsg Exp $ */ +/* $OpenBSD: if_axereg.h,v 1.12 2006/06/01 05:19:38 pascoe Exp $ */ /* * Copyright (c) 1997, 1998, 1999, 2000-2003 @@ -51,9 +51,9 @@ * CC is the command byte, as specified in the manual. */ -#define AXE_CMD_DIR(x) (((x) & 0x0F00) >> 8) #define AXE_CMD_LEN(x) (((x) & 0xF000) >> 12) -#define AXE_CMD_CMD(x) ((x) & 0x00FF) +#define AXE_CMD_DIR(x) (((x) & 0x0F00) >> 8) +#define AXE_CMD_CMD(x) ((x) & 0x00FF) #define AXE_172_CMD_READ_RXTX_SRAM 0x2002 #define AXE_182_CMD_READ_RXTX_SRAM 0x8002 @@ -133,9 +133,6 @@ #define AXE_172_BUFSZ 1536 #define AXE_178_MIN_BUFSZ 2048 #define AXE_178_MAX_BUFSZ 16384 -#define AXE_MIN_FRAMELEN 60 -#define AXE_RX_FRAMES 1 -#define AXE_TX_FRAMES 1 #define AXE_RX_LIST_CNT 1 #define AXE_TX_LIST_CNT 1 @@ -187,8 +184,6 @@ struct axe_sframe_hdr { u_int16_t ilen; } __packed; -#define AXE_INC(x, y) (x) = (x + 1) % y - struct axe_softc { USBBASEDEVICE axe_dev; #if defined(__FreeBSD__) @@ -231,11 +226,3 @@ struct axe_softc { struct timeval axe_rx_notice; u_int axe_bufsz; }; - -#if 0 -#define AXE_LOCK(_sc) mtx_lock(&(_sc)->axe_mtx) -#define AXE_UNLOCK(_sc) mtx_unlock(&(_sc)->axe_mtx) -#else -#define AXE_LOCK(_sc) -#define AXE_UNLOCK(_sc) -#endif |