Deleted Added
full compact
if_sfreg.h (50675) if_sfreg.h (50863)
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 50675 1999-08-30 23:08:32Z wpaul $
32 * $FreeBSD: head/sys/dev/sf/if_sfreg.h 50863 1999-09-03 20:58:39Z wpaul $
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

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

999 * buffer ring and two receive buffer rings: one RX ring is for small
1000 * packets and the other is for large packets. Each buffer ring also
1001 * has a companion completion queue.
1002 */
1003struct sf_list_data {
1004 struct sf_tx_bufdesc_type0 sf_tx_dlist[SF_TX_DLIST_CNT];
1005 struct sf_tx_cmpdesc_type1 sf_tx_clist[SF_TX_CLIST_CNT];
1006 struct sf_rx_bufdesc_type0 sf_rx_dlist_big[SF_RX_DLIST_CNT];
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

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

999 * buffer ring and two receive buffer rings: one RX ring is for small
1000 * packets and the other is for large packets. Each buffer ring also
1001 * has a companion completion queue.
1002 */
1003struct sf_list_data {
1004 struct sf_tx_bufdesc_type0 sf_tx_dlist[SF_TX_DLIST_CNT];
1005 struct sf_tx_cmpdesc_type1 sf_tx_clist[SF_TX_CLIST_CNT];
1006 struct sf_rx_bufdesc_type0 sf_rx_dlist_big[SF_RX_DLIST_CNT];
1007#ifdef notdef
1008 /*
1009 * Unfortunately, because the Starfire doesn't allow arbitrary
1010 * byte alignment, we have to copy packets in the RX handler in
1011 * order to align the payload correctly. This means that we
1012 * don't gain anything by having separate large and small descriptor
1013 * lists, so for now we don't bother with the small one.
1014 */
1007 struct sf_rx_bufdesc_type0 sf_rx_dlist_small[SF_RX_DLIST_CNT];
1015 struct sf_rx_bufdesc_type0 sf_rx_dlist_small[SF_RX_DLIST_CNT];
1016#endif
1008 struct sf_rx_cmpdesc_type3 sf_rx_clist[SF_RX_CLIST_CNT];
1009};
1010
1011struct sf_softc {
1012 struct arpcom arpcom; /* interface info */
1013 bus_space_handle_t sf_bhandle; /* bus space handle */
1014 bus_space_tag_t sf_btag; /* bus space tag */
1015 void *sf_intrhand; /* interrupt handler cookie */

--- 16 unchanged lines hidden ---
1017 struct sf_rx_cmpdesc_type3 sf_rx_clist[SF_RX_CLIST_CNT];
1018};
1019
1020struct sf_softc {
1021 struct arpcom arpcom; /* interface info */
1022 bus_space_handle_t sf_bhandle; /* bus space handle */
1023 bus_space_tag_t sf_btag; /* bus space tag */
1024 void *sf_intrhand; /* interrupt handler cookie */

--- 16 unchanged lines hidden ---