Deleted Added
sdiff udiff text old ( 195418 ) new ( 234450 )
full compact
1/*-
2 * Copyright (c) 2002-2008 Sam Leffler, Errno Consulting
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 12 unchanged lines hidden (view full) ---

21 * THE COPYRIGHT HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY,
22 * OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
23 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
24 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
25 * IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
26 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
27 * THE POSSIBILITY OF SUCH DAMAGES.
28 *
29 * $FreeBSD: head/sys/dev/ath/ah_osdep.h 234450 2012-04-19 03:26:21Z adrian $
30 */
31#ifndef _ATH_AH_OSDEP_H_
32#define _ATH_AH_OSDEP_H_
33/*
34 * Atheros Hardware Access Layer (HAL) OS Dependent Definitions.
35 */
36#include <sys/cdefs.h>
37#include <sys/param.h>

--- 54 unchanged lines hidden (view full) ---

92 */
93#if defined(AH_DEBUG) || defined(AH_REGOPS_FUNC) || defined(AH_DEBUG_ALQ)
94#define OS_REG_WRITE(_ah, _reg, _val) ath_hal_reg_write(_ah, _reg, _val)
95#define OS_REG_READ(_ah, _reg) ath_hal_reg_read(_ah, _reg)
96
97extern void ath_hal_reg_write(struct ath_hal *ah, u_int reg, u_int32_t val);
98extern u_int32_t ath_hal_reg_read(struct ath_hal *ah, u_int reg);
99#else
100#define OS_REG_WRITE(_ah, _reg, _val) \
101 bus_space_write_4((bus_space_tag_t)(_ah)->ah_st, \
102 (bus_space_handle_t)(_ah)->ah_sh, (_reg), (_val))
103#define OS_REG_READ(_ah, _reg) \
104 bus_space_read_4((bus_space_tag_t)(_ah)->ah_st, \
105 (bus_space_handle_t)(_ah)->ah_sh, (_reg))
106#endif
107
108#ifdef AH_DEBUG_ALQ
109extern void OS_MARK(struct ath_hal *, u_int id, u_int32_t value);
110#else
111#define OS_MARK(_ah, _id, _v)
112#endif
113
114#endif /* _ATH_AH_OSDEP_H_ */