Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros
ks8695net.h File Reference

Go to the source code of this file.

Macros

#define RDES_OWN   (1 << 31) /* Ownership */
 
#define RDES_FS   (1 << 30) /* First Descriptor */
 
#define RDES_LS   (1 << 29) /* Last Descriptor */
 
#define RDES_IPE   (1 << 28) /* IP Checksum error */
 
#define RDES_TCPE   (1 << 27) /* TCP Checksum error */
 
#define RDES_UDPE   (1 << 26) /* UDP Checksum error */
 
#define RDES_ES   (1 << 25) /* Error summary */
 
#define RDES_MF   (1 << 24) /* Multicast Frame */
 
#define RDES_RE   (1 << 19) /* MII Error reported */
 
#define RDES_TL   (1 << 18) /* Frame too Long */
 
#define RDES_RF   (1 << 17) /* Runt Frame */
 
#define RDES_CE   (1 << 16) /* CRC error */
 
#define RDES_FT   (1 << 15) /* Frame Type */
 
#define RDES_FLEN   (0x7ff) /* Frame Length */
 
#define RDES_RER   (1 << 25) /* Receive End of Ring */
 
#define RDES_RBS   (0x7ff) /* Receive Buffer Size */
 
#define TDES_OWN   (1 << 31) /* Ownership */
 
#define TDES_IC   (1 << 31) /* Interrupt on Completion */
 
#define TDES_FS   (1 << 30) /* First Segment */
 
#define TDES_LS   (1 << 29) /* Last Segment */
 
#define TDES_IPCKG   (1 << 28) /* IP Checksum generate */
 
#define TDES_TCPCKG   (1 << 27) /* TCP Checksum generate */
 
#define TDES_UDPCKG   (1 << 26) /* UDP Checksum generate */
 
#define TDES_TER   (1 << 25) /* Transmit End of Ring */
 
#define TDES_TBS   (0x7ff) /* Transmit Buffer Size */
 
#define KS8695_DTXC   (0x00) /* DMA Transmit Control */
 
#define KS8695_DRXC   (0x04) /* DMA Receive Control */
 
#define KS8695_DTSC   (0x08) /* DMA Transmit Start Command */
 
#define KS8695_DRSC   (0x0c) /* DMA Receive Start Command */
 
#define KS8695_TDLB
 
#define KS8695_RDLB
 
#define KS8695_MAL   (0x18) /* MAC Station Address Low */
 
#define KS8695_MAH   (0x1c) /* MAC Station Address High */
 
#define KS8695_AAL_(n)
 
#define KS8695_AAH_(n)
 
#define DTXC_TRST   (1 << 31) /* Soft Reset */
 
#define DTXC_TBS   (0x3f << 24) /* Transmit Burst Size */
 
#define DTXC_TUCG
 
#define DTXC_TTCG
 
#define DTXC_TICG
 
#define DTXC_TFCE
 
#define DTXC_TLB   (1 << 8) /* Loopback mode */
 
#define DTXC_TEP   (1 << 2) /* Transmit Enable Padding */
 
#define DTXC_TAC   (1 << 1) /* Transmit Add CRC */
 
#define DTXC_TE   (1 << 0) /* TX Enable */
 
#define DRXC_RBS   (0x3f << 24) /* Receive Burst Size */
 
#define DRXC_RUCC   (1 << 18) /* Receive UDP Checksum check */
 
#define DRXC_RTCG   (1 << 17) /* Receive TCP Checksum check */
 
#define DRXC_RICG   (1 << 16) /* Receive IP Checksum check */
 
#define DRXC_RFCE
 
#define DRXC_RB   (1 << 6) /* Receive Broadcast */
 
#define DRXC_RM   (1 << 5) /* Receive Multicast */
 
#define DRXC_RU   (1 << 4) /* Receive Unicast */
 
#define DRXC_RERR   (1 << 3) /* Receive Error Frame */
 
#define DRXC_RA   (1 << 2) /* Receive All */
 
#define DRXC_RE   (1 << 0) /* RX Enable */
 
#define AAH_E   (1 << 31) /* Address Enabled */
 

Macro Definition Documentation

#define AAH_E   (1 << 31) /* Address Enabled */

Definition at line 85 of file ks8695net.h.

#define DRXC_RA   (1 << 2) /* Receive All */

Definition at line 81 of file ks8695net.h.

#define DRXC_RB   (1 << 6) /* Receive Broadcast */

Definition at line 77 of file ks8695net.h.

#define DRXC_RBS   (0x3f << 24) /* Receive Burst Size */

Definition at line 72 of file ks8695net.h.

#define DRXC_RE   (1 << 0) /* RX Enable */

Definition at line 82 of file ks8695net.h.

#define DRXC_RERR   (1 << 3) /* Receive Error Frame */

Definition at line 80 of file ks8695net.h.

#define DRXC_RFCE
Value:
(1 << 9) /* Receive Flow Control
* Enable
*/

Definition at line 76 of file ks8695net.h.

#define DRXC_RICG   (1 << 16) /* Receive IP Checksum check */

Definition at line 75 of file ks8695net.h.

#define DRXC_RM   (1 << 5) /* Receive Multicast */

Definition at line 78 of file ks8695net.h.

#define DRXC_RTCG   (1 << 17) /* Receive TCP Checksum check */

Definition at line 74 of file ks8695net.h.

#define DRXC_RU   (1 << 4) /* Receive Unicast */

Definition at line 79 of file ks8695net.h.

#define DRXC_RUCC   (1 << 18) /* Receive UDP Checksum check */

Definition at line 73 of file ks8695net.h.

#define DTXC_TAC   (1 << 1) /* Transmit Add CRC */

Definition at line 68 of file ks8695net.h.

#define DTXC_TBS   (0x3f << 24) /* Transmit Burst Size */

Definition at line 61 of file ks8695net.h.

#define DTXC_TE   (1 << 0) /* TX Enable */

Definition at line 69 of file ks8695net.h.

#define DTXC_TEP   (1 << 2) /* Transmit Enable Padding */

Definition at line 67 of file ks8695net.h.

#define DTXC_TFCE
Value:
(1 << 9) /* Transmit Flow
* Control Enable
*/

Definition at line 65 of file ks8695net.h.

#define DTXC_TICG
Value:
(1 << 16) /* Transmit IP
* Checksum Generate
*/

Definition at line 64 of file ks8695net.h.

#define DTXC_TLB   (1 << 8) /* Loopback mode */

Definition at line 66 of file ks8695net.h.

#define DTXC_TRST   (1 << 31) /* Soft Reset */

Definition at line 60 of file ks8695net.h.

#define DTXC_TTCG
Value:
(1 << 17) /* Transmit TCP
* Checksum Generate
*/

Definition at line 63 of file ks8695net.h.

#define DTXC_TUCG
Value:
(1 << 18) /* Transmit UDP
* Checksum Generate
*/

Definition at line 62 of file ks8695net.h.

#define KS8695_AAH_ (   n)
Value:
(0x84 + ((n)*8)) /* MAC Additional
* Station Address
* (0..15) High
*/

Definition at line 56 of file ks8695net.h.

#define KS8695_AAL_ (   n)
Value:
(0x80 + ((n)*8)) /* MAC Additional
* Station Address
* (0..15) Low
*/

Definition at line 55 of file ks8695net.h.

#define KS8695_DRSC   (0x0c) /* DMA Receive Start Command */

Definition at line 50 of file ks8695net.h.

#define KS8695_DRXC   (0x04) /* DMA Receive Control */

Definition at line 48 of file ks8695net.h.

#define KS8695_DTSC   (0x08) /* DMA Transmit Start Command */

Definition at line 49 of file ks8695net.h.

#define KS8695_DTXC   (0x00) /* DMA Transmit Control */

Definition at line 47 of file ks8695net.h.

#define KS8695_MAH   (0x1c) /* MAC Station Address High */

Definition at line 54 of file ks8695net.h.

#define KS8695_MAL   (0x18) /* MAC Station Address Low */

Definition at line 53 of file ks8695net.h.

#define KS8695_RDLB
Value:
(0x14) /* Receive Descriptor List
* Base Address
*/

Definition at line 52 of file ks8695net.h.

#define KS8695_TDLB
Value:
(0x10) /* Transmit Descriptor List
* Base Address
*/

Definition at line 51 of file ks8695net.h.

#define RDES_CE   (1 << 16) /* CRC error */

Definition at line 24 of file ks8695net.h.

#define RDES_ES   (1 << 25) /* Error summary */

Definition at line 19 of file ks8695net.h.

#define RDES_FLEN   (0x7ff) /* Frame Length */

Definition at line 26 of file ks8695net.h.

#define RDES_FS   (1 << 30) /* First Descriptor */

Definition at line 14 of file ks8695net.h.

#define RDES_FT   (1 << 15) /* Frame Type */

Definition at line 25 of file ks8695net.h.

#define RDES_IPE   (1 << 28) /* IP Checksum error */

Definition at line 16 of file ks8695net.h.

#define RDES_LS   (1 << 29) /* Last Descriptor */

Definition at line 15 of file ks8695net.h.

#define RDES_MF   (1 << 24) /* Multicast Frame */

Definition at line 20 of file ks8695net.h.

#define RDES_OWN   (1 << 31) /* Ownership */

Definition at line 13 of file ks8695net.h.

#define RDES_RBS   (0x7ff) /* Receive Buffer Size */

Definition at line 29 of file ks8695net.h.

#define RDES_RE   (1 << 19) /* MII Error reported */

Definition at line 21 of file ks8695net.h.

#define RDES_RER   (1 << 25) /* Receive End of Ring */

Definition at line 28 of file ks8695net.h.

#define RDES_RF   (1 << 17) /* Runt Frame */

Definition at line 23 of file ks8695net.h.

#define RDES_TCPE   (1 << 27) /* TCP Checksum error */

Definition at line 17 of file ks8695net.h.

#define RDES_TL   (1 << 18) /* Frame too Long */

Definition at line 22 of file ks8695net.h.

#define RDES_UDPE   (1 << 26) /* UDP Checksum error */

Definition at line 18 of file ks8695net.h.

#define TDES_FS   (1 << 30) /* First Segment */

Definition at line 36 of file ks8695net.h.

#define TDES_IC   (1 << 31) /* Interrupt on Completion */

Definition at line 35 of file ks8695net.h.

#define TDES_IPCKG   (1 << 28) /* IP Checksum generate */

Definition at line 38 of file ks8695net.h.

#define TDES_LS   (1 << 29) /* Last Segment */

Definition at line 37 of file ks8695net.h.

#define TDES_OWN   (1 << 31) /* Ownership */

Definition at line 33 of file ks8695net.h.

#define TDES_TBS   (0x7ff) /* Transmit Buffer Size */

Definition at line 42 of file ks8695net.h.

#define TDES_TCPCKG   (1 << 27) /* TCP Checksum generate */

Definition at line 39 of file ks8695net.h.

#define TDES_TER   (1 << 25) /* Transmit End of Ring */

Definition at line 41 of file ks8695net.h.

#define TDES_UDPCKG   (1 << 26) /* UDP Checksum generate */

Definition at line 40 of file ks8695net.h.