For cases where AH_REGOPS_FUNC is not defined, the bus tag is not defined.

In these cases, passing NULL for it solves a problem on AMD64 where the bus
tag is an integer rather than uintptr_t.  (I.e. fix the cast warning on
amd64.)
This commit is contained in:
gdamore 2006-06-07 17:07:33 +00:00
parent f52a3ac4b6
commit 4aa924bc70
1 changed files with 2 additions and 2 deletions

View File

@ -33,7 +33,7 @@
* OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGES.
*
* $Id: ah_osdep.h,v 1.2 2006/06/05 05:14:38 gdamore Exp $
* $Id: ah_osdep.h,v 1.3 2006/06/07 17:07:33 gdamore Exp $
*/
#ifndef _ATH_AH_OSDEP_H_
#define _ATH_AH_OSDEP_H_
@ -86,7 +86,7 @@ extern u_int32_t ath_hal_getuptime(struct ath_hal *);
#else
#define BUSTAG(ah) ((bus_space_tag_t) (ah)->ah_st)
#define BUSHANDLE(ah) ((bus_space_handle_t) ((ah)->ah_sh))
#define HALTAG(t) (HAL_BUS_TAG) (t)
#define HALTAG(t) (NULL)
#define HALHANDLE(h) (HAL_BUS_HANDLE) (h)
#endif