if_sfreg.h (137557) | if_sfreg.h (137834) |
---|---|
1/* 2 * Copyright (c) 1997, 1998, 1999 3 * Bill Paul <wpaul@ctr.columbia.edu>. 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 --- 15 unchanged lines hidden (view full) --- 24 * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 25 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 26 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 27 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 28 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 29 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF 30 * THE POSSIBILITY OF SUCH DAMAGE. 31 * | 1/* 2 * Copyright (c) 1997, 1998, 1999 3 * Bill Paul <wpaul@ctr.columbia.edu>. 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 --- 15 unchanged lines hidden (view full) --- 24 * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 25 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 26 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 27 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 28 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 29 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF 30 * THE POSSIBILITY OF SUCH DAMAGE. 31 * |
32 * $FreeBSD: head/sys/dev/sf/if_sfreg.h 137557 2004-11-10 23:04:39Z brueffer $ | 32 * $FreeBSD: head/sys/dev/sf/if_sfreg.h 137834 2004-11-17 23:33:56Z brueffer $ |
33 */ 34 35/* 36 * Registers for the Adaptec AIC-6915 Starfire. The Starfire has a 512K 37 * register space. These registers can be accessed in the following way: 38 * - PCI config registers are always accessible through PCI config space 39 * - Full 512K space mapped into memory using PCI memory mapped access 40 * - 256-byte I/O space mapped through PCI I/O access --- 1002 unchanged lines hidden (view full) --- 1043 struct sf_list_data *sf_ldata; 1044 int sf_tx_cnt; 1045 u_int8_t sf_link; 1046 int sf_if_flags; 1047 struct callout_handle sf_stat_ch; 1048 struct mtx sf_mtx; 1049#ifdef DEVICE_POLLING 1050 int rxcycles; | 33 */ 34 35/* 36 * Registers for the Adaptec AIC-6915 Starfire. The Starfire has a 512K 37 * register space. These registers can be accessed in the following way: 38 * - PCI config registers are always accessible through PCI config space 39 * - Full 512K space mapped into memory using PCI memory mapped access 40 * - 256-byte I/O space mapped through PCI I/O access --- 1002 unchanged lines hidden (view full) --- 1043 struct sf_list_data *sf_ldata; 1044 int sf_tx_cnt; 1045 u_int8_t sf_link; 1046 int sf_if_flags; 1047 struct callout_handle sf_stat_ch; 1048 struct mtx sf_mtx; 1049#ifdef DEVICE_POLLING 1050 int rxcycles; |
1051#endif | 1051#endif /* DEVICE_POLLING */ |
1052}; 1053 1054 1055#define SF_LOCK(_sc) mtx_lock(&(_sc)->sf_mtx) 1056#define SF_UNLOCK(_sc) mtx_unlock(&(_sc)->sf_mtx) 1057#define SF_LOCK_ASSERT(_sc) mtx_assert(&(_sc)->sf_mtx, MA_OWNED) 1058 1059#define SF_TIMEOUT 1000 1060 1061#ifdef __alpha__ 1062#undef vtophys 1063#define vtophys(va) alpha_XXX_dmamap((vm_offset_t)va) 1064#endif | 1052}; 1053 1054 1055#define SF_LOCK(_sc) mtx_lock(&(_sc)->sf_mtx) 1056#define SF_UNLOCK(_sc) mtx_unlock(&(_sc)->sf_mtx) 1057#define SF_LOCK_ASSERT(_sc) mtx_assert(&(_sc)->sf_mtx, MA_OWNED) 1058 1059#define SF_TIMEOUT 1000 1060 1061#ifdef __alpha__ 1062#undef vtophys 1063#define vtophys(va) alpha_XXX_dmamap((vm_offset_t)va) 1064#endif |