Path: blob/master/arch/arm/mach-ks8695/include/mach/regs-wan.h
15159 views
/*1* arch/arm/mach-ks8695/include/mach/regs-wan.h2*3* Copyright (C) 2006 Andrew Victor4*5* KS8695 - WAN Registers and bit definitions.6*7* This file is licensed under the terms of the GNU General Public8* License version 2. This program is licensed "as is" without any9* warranty of any kind, whether express or implied.10*/1112#ifndef KS8695_WAN_H13#define KS8695_WAN_H1415#define KS8695_WAN_OFFSET (0xF0000 + 0x6000)16#define KS8695_WAN_VA (KS8695_IO_VA + KS8695_WAN_OFFSET)17#define KS8695_WAN_PA (KS8695_IO_PA + KS8695_WAN_OFFSET)181920/*21* WAN registers22*/23#define KS8695_WMDTXC (0x00) /* DMA Transmit Control */24#define KS8695_WMDRXC (0x04) /* DMA Receive Control */25#define KS8695_WMDTSC (0x08) /* DMA Transmit Start Command */26#define KS8695_WMDRSC (0x0c) /* DMA Receive Start Command */27#define KS8695_WTDLB (0x10) /* Transmit Descriptor List Base Address */28#define KS8695_WRDLB (0x14) /* Receive Descriptor List Base Address */29#define KS8695_WMAL (0x18) /* MAC Station Address Low */30#define KS8695_WMAH (0x1c) /* MAC Station Address High */31#define KS8695_WMAAL(n) (0x80 + ((n)*8)) /* MAC Additional Station Address (0..15) Low */32#define KS8695_WMAAH(n) (0x84 + ((n)*8)) /* MAC Additional Station Address (0..15) High */333435/* DMA Transmit Control Register */36#define WMDTXC_WMTRST (1 << 31) /* Soft Reset */37#define WMDTXC_WMTBS (0x3f << 24) /* Transmit Burst Size */38#define WMDTXC_WMTUCG (1 << 18) /* Transmit UDP Checksum Generate */39#define WMDTXC_WMTTCG (1 << 17) /* Transmit TCP Checksum Generate */40#define WMDTXC_WMTICG (1 << 16) /* Transmit IP Checksum Generate */41#define WMDTXC_WMTFCE (1 << 9) /* Transmit Flow Control Enable */42#define WMDTXC_WMTLB (1 << 8) /* Loopback mode */43#define WMDTXC_WMTEP (1 << 2) /* Transmit Enable Padding */44#define WMDTXC_WMTAC (1 << 1) /* Transmit Add CRC */45#define WMDTXC_WMTE (1 << 0) /* TX Enable */4647/* DMA Receive Control Register */48#define WMDRXC_WMRBS (0x3f << 24) /* Receive Burst Size */49#define WMDRXC_WMRUCC (1 << 18) /* Receive UDP Checksum check */50#define WMDRXC_WMRTCG (1 << 17) /* Receive TCP Checksum check */51#define WMDRXC_WMRICG (1 << 16) /* Receive IP Checksum check */52#define WMDRXC_WMRFCE (1 << 9) /* Receive Flow Control Enable */53#define WMDRXC_WMRB (1 << 6) /* Receive Broadcast */54#define WMDRXC_WMRM (1 << 5) /* Receive Multicast */55#define WMDRXC_WMRU (1 << 4) /* Receive Unicast */56#define WMDRXC_WMRERR (1 << 3) /* Receive Error Frame */57#define WMDRXC_WMRA (1 << 2) /* Receive All */58#define WMDRXC_WMRE (1 << 0) /* RX Enable */5960/* Additional Station Address High */61#define WMAAH_E (1 << 31) /* Address Enabled */626364#endif656667