Deleted Added
full compact
if_vgereg.h (200756) if_vgereg.h (225440)
1/*-
2 * Copyright (c) 2004
3 * Bill Paul <wpaul@windriver.com>. 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) 2004
3 * Bill Paul <wpaul@windriver.com>. 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/vge/if_vgereg.h 200756 2009-12-20 18:53:34Z yongari $
32 * $FreeBSD: head/sys/dev/vge/if_vgereg.h 225440 2011-09-07 16:57:43Z yongari $
33 */
34
35/*
36 * Register definitions for the VIA VT6122 gigabit ethernet controller.
37 * Definitions for the built-in copper PHY can be found in vgphy.h.
38 *
39 * The VT612x controllers have 256 bytes of register space. The
40 * manual seems to imply that the registers should all be accessed

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

297#define VGE_ISR_ISRC2 0x40000000 /* interrupt source indication */
298#define VGE_ISR_ISRC3 0x80000000 /* interrupt source indication */
299
300#define VGE_INTRS (VGE_ISR_TXOK0|VGE_ISR_RXOK|VGE_ISR_STOPPED| \
301 VGE_ISR_RXOFLOW|VGE_ISR_PHYINT| \
302 VGE_ISR_LINKSTS|VGE_ISR_RXNODESC| \
303 VGE_ISR_RXDMA_STALL|VGE_ISR_TXDMA_STALL)
304
33 */
34
35/*
36 * Register definitions for the VIA VT6122 gigabit ethernet controller.
37 * Definitions for the built-in copper PHY can be found in vgphy.h.
38 *
39 * The VT612x controllers have 256 bytes of register space. The
40 * manual seems to imply that the registers should all be accessed

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

297#define VGE_ISR_ISRC2 0x40000000 /* interrupt source indication */
298#define VGE_ISR_ISRC3 0x80000000 /* interrupt source indication */
299
300#define VGE_INTRS (VGE_ISR_TXOK0|VGE_ISR_RXOK|VGE_ISR_STOPPED| \
301 VGE_ISR_RXOFLOW|VGE_ISR_PHYINT| \
302 VGE_ISR_LINKSTS|VGE_ISR_RXNODESC| \
303 VGE_ISR_RXDMA_STALL|VGE_ISR_TXDMA_STALL)
304
305#define VGE_INTRS_POLLING (VGE_ISR_PHYINT|VGE_ISR_LINKSTS)
306
305/* Interrupt mask register */
306
307#define VGE_IMR_RXOK_HIPRIO 0x00000001 /* hi prio RX int */
308#define VGE_IMR_TXOK_HIPRIO 0x00000002 /* hi prio TX int */
309#define VGE_IMR_RXOK 0x00000004 /* normal RX done */
310#define VGE_IMR_TXOK 0x00000008 /* combo results for next 4 bits */
311#define VGE_IMR_TXOK0 0x00000010 /* TX complete on queue 0 */
312#define VGE_IMR_TXOK1 0x00000020 /* TX complete on queue 1 */

--- 466 unchanged lines hidden ---
307/* Interrupt mask register */
308
309#define VGE_IMR_RXOK_HIPRIO 0x00000001 /* hi prio RX int */
310#define VGE_IMR_TXOK_HIPRIO 0x00000002 /* hi prio TX int */
311#define VGE_IMR_RXOK 0x00000004 /* normal RX done */
312#define VGE_IMR_TXOK 0x00000008 /* combo results for next 4 bits */
313#define VGE_IMR_TXOK0 0x00000010 /* TX complete on queue 0 */
314#define VGE_IMR_TXOK1 0x00000020 /* TX complete on queue 1 */

--- 466 unchanged lines hidden ---