iPXE
Macros | Typedefs | Functions
smc9000.h File Reference

Go to the source code of this file.

Macros

#define _SMC9000_H_
 
#define BANK_SELECT   14
 
#define TCR   0 /* transmit control register */
 
#define TCR_ENABLE   0x0001 /* if this is 1, we can transmit */
 
#define TCR_FDUPLX   0x0800 /* receive packets sent out */
 
#define TCR_STP_SQET   0x1000 /* stop transmitting if Signal quality error */
 
#define TCR_MON_CNS   0x0400 /* monitors the carrier status */
 
#define TCR_PAD_ENABLE   0x0080 /* pads short packets to 64 bytes */
 
#define TCR_CLEAR   0 /* do NOTHING */
 
#define TCR_NORMAL   (TCR_ENABLE | TCR_PAD_ENABLE)
 
#define EPH_STATUS   2
 
#define ES_LINK_OK   0x4000 /* is the link integrity ok ? */
 
#define RCR   4
 
#define RCR_SOFTRESET   0x8000 /* resets the chip */
 
#define RCR_STRIP_CRC   0x200 /* strips CRC */
 
#define RCR_ENABLE   0x100 /* IFF this is set, we can receive packets */
 
#define RCR_ALMUL   0x4 /* receive all multicast packets */
 
#define RCR_PROMISC   0x2 /* enable promiscuous mode */
 
#define RCR_NORMAL   (RCR_STRIP_CRC | RCR_ENABLE)
 
#define RCR_CLEAR   0x0 /* set it to a base state */
 
#define COUNTER   6
 
#define MIR   8
 
#define MCR   10
 
#define RPC_REG   0x000A
 
#define RPC_SPEED   0x2000
 
#define RPC_DPLX   0x1000
 
#define RPC_ANEG   0x0800
 
#define RPC_LSXA_SHFT   5
 
#define RPC_LSXB_SHFT   2
 
#define RPC_LED_100_10   (0x00)
 
#define RPC_LED_RES   (0x01)
 
#define RPC_LED_10   (0x02)
 
#define RPC_LED_FD   (0x03)
 
#define RPC_LED_TX_RX   (0x04)
 
#define RPC_LED_100   (0x05)
 
#define RPC_LED_TX   (0x06)
 
#define RPC_LED_RX   (0x07)
 
#define RPC_DEFAULT   (RPC_ANEG | (RPC_LED_100 << RPC_LSXA_SHFT) | (RPC_LED_FD << RPC_LSXB_SHFT) | RPC_SPEED | RPC_DPLX)
 
#define RPC_REG   0x000A
 
#define RPC_SPEED   0x2000
 
#define RPC_DPLX   0x1000
 
#define RPC_ANEG   0x0800
 
#define RPC_LSXA_SHFT   5
 
#define RPC_LSXB_SHFT   2
 
#define RPC_LED_100_10   (0x00)
 
#define RPC_LED_RES   (0x01)
 
#define RPC_LED_10   (0x02)
 
#define RPC_LED_FD   (0x03)
 
#define RPC_LED_TX_RX   (0x04)
 
#define RPC_LED_100   (0x05)
 
#define RPC_LED_TX   (0x06)
 
#define RPC_LED_RX   (0x07)
 
#define RPC_DEFAULT   (RPC_ANEG | (RPC_LED_100 << RPC_LSXA_SHFT) | (RPC_LED_FD << RPC_LSXB_SHFT) | RPC_SPEED | RPC_DPLX)
 
#define CFG   0
 
#define CFG_AUI_SELECT   0x100
 
#define BASE   2
 
#define ADDR0   4
 
#define ADDR1   6
 
#define ADDR2   8
 
#define GENERAL   10
 
#define CONTROL   12
 
#define CTL_POWERDOWN   0x2000
 
#define CTL_LE_ENABLE   0x80
 
#define CTL_CR_ENABLE   0x40
 
#define CTL_TE_ENABLE   0x0020
 
#define CTL_AUTO_RELEASE   0x0800
 
#define CTL_EPROM_ACCESS   0x0003 /* high if Eprom is being read */
 
#define MMU_CMD   0
 
#define MC_BUSY   1 /* only readable bit in the register */
 
#define MC_NOP   0
 
#define MC_ALLOC   0x20 /* or with number of 256 byte packets */
 
#define MC_RESET   0x40
 
#define MC_REMOVE   0x60 /* remove the current rx packet */
 
#define MC_RELEASE   0x80 /* remove and release the current rx packet */
 
#define MC_FREEPKT   0xA0 /* Release packet in PNR register */
 
#define MC_ENQUEUE   0xC0 /* Enqueue the packet for transmit */
 
#define PNR_ARR   2
 
#define FIFO_PORTS   4
 
#define FP_RXEMPTY   0x8000
 
#define FP_TXEMPTY   0x80
 
#define POINTER   6
 
#define PTR_READ   0x2000
 
#define PTR_RCV   0x8000
 
#define PTR_AUTOINC   0x4000
 
#define PTR_AUTO_INC   0x0040
 
#define DATA_1   8
 
#define DATA_2   10
 
#define INTERRUPT   12
 
#define INT_MASK   13
 
#define IM_RCV_INT   0x1
 
#define IM_TX_INT   0x2
 
#define IM_TX_EMPTY_INT   0x4
 
#define IM_ALLOC_INT   0x8
 
#define IM_RX_OVRN_INT   0x10
 
#define IM_EPH_INT   0x20
 
#define IM_ERCV_INT   0x40 /* not on SMC9192 */
 
#define MULTICAST1   0
 
#define MULTICAST2   2
 
#define MULTICAST3   4
 
#define MULTICAST4   6
 
#define MGMT   8
 
#define REVISION   10 /* ( hi: chip id low: rev # ) */
 
#define MII_REG   0x0008
 
#define MII_MSK_CRS100   0x4000
 
#define MII_MDOE   0x0008
 
#define MII_MCLK   0x0004
 
#define MII_MDI   0x0002
 
#define MII_MDO   0x0001
 
#define ERCV   12
 
#define CHIP_9190   3
 
#define CHIP_9194   4
 
#define CHIP_9195   5
 
#define CHIP_9196   4
 
#define CHIP_91100   7
 
#define CHIP_91100FD   8
 
#define REV_9196   6
 
#define TS_SUCCESS   0x0001
 
#define TS_LOSTCAR   0x0400
 
#define TS_LATCOL   0x0200
 
#define TS_16COL   0x0010
 
#define RS_ALGNERR   0x8000
 
#define RS_BADCRC   0x2000
 
#define RS_ODDFRAME   0x1000
 
#define RS_TOOLONG   0x0800
 
#define RS_TOOSHORT   0x0400
 
#define RS_MULTICAST   0x0001
 
#define RS_ERRORS   (RS_ALGNERR | RS_BADCRC | RS_TOOLONG | RS_TOOSHORT)
 
#define PHY_CNTL_REG   0x00
 
#define PHY_CNTL_RST   0x8000
 
#define PHY_CNTL_LPBK   0x4000
 
#define PHY_CNTL_SPEED   0x2000
 
#define PHY_CNTL_ANEG_EN   0x1000
 
#define PHY_CNTL_PDN   0x0800
 
#define PHY_CNTL_MII_DIS   0x0400
 
#define PHY_CNTL_ANEG_RST   0x0200
 
#define PHY_CNTL_DPLX   0x0100
 
#define PHY_CNTL_COLTST   0x0080
 
#define PHY_STAT_REG   0x01
 
#define PHY_STAT_CAP_T4   0x8000
 
#define PHY_STAT_CAP_TXF   0x4000
 
#define PHY_STAT_CAP_TXH   0x2000
 
#define PHY_STAT_CAP_TF   0x1000
 
#define PHY_STAT_CAP_TH   0x0800
 
#define PHY_STAT_CAP_SUPR   0x0040
 
#define PHY_STAT_ANEG_ACK   0x0020
 
#define PHY_STAT_REM_FLT   0x0010
 
#define PHY_STAT_CAP_ANEG   0x0008
 
#define PHY_STAT_LINK   0x0004
 
#define PHY_STAT_JAB   0x0002
 
#define PHY_STAT_EXREG   0x0001
 
#define PHY_ID1_REG   0x02
 
#define PHY_ID2_REG   0x03
 
#define PHY_AD_REG   0x04
 
#define PHY_AD_NP   0x8000
 
#define PHY_AD_ACK   0x4000
 
#define PHY_AD_RF   0x2000
 
#define PHY_AD_T4   0x0200
 
#define PHY_AD_TX_FDX   0x0100
 
#define PHY_AD_TX_HDX   0x0080
 
#define PHY_AD_10_FDX   0x0040
 
#define PHY_AD_10_HDX   0x0020
 
#define PHY_AD_CSMA   0x0001
 
#define PHY_RMT_REG   0x05
 
#define PHY_CFG1_REG   0x10
 
#define PHY_CFG1_LNKDIS   0x8000
 
#define PHY_CFG1_XMTDIS   0x4000
 
#define PHY_CFG1_XMTPDN   0x2000
 
#define PHY_CFG1_BYPSCR   0x0400
 
#define PHY_CFG1_UNSCDS   0x0200
 
#define PHY_CFG1_EQLZR   0x0100
 
#define PHY_CFG1_CABLE   0x0080
 
#define PHY_CFG1_RLVL0   0x0040
 
#define PHY_CFG1_TLVL_SHIFT   2
 
#define PHY_CFG1_TLVL_MASK   0x003C
 
#define PHY_CFG1_TRF_MASK   0x0003
 
#define PHY_CFG2_REG   0x11
 
#define PHY_CFG2_APOLDIS   0x0020
 
#define PHY_CFG2_JABDIS   0x0010
 
#define PHY_CFG2_MREG   0x0008
 
#define PHY_CFG2_INTMDIO   0x0004
 
#define PHY_INT_REG   0x12
 
#define PHY_INT_INT   0x8000
 
#define PHY_INT_LNKFAIL   0x4000
 
#define PHY_INT_LOSSSYNC   0x2000
 
#define PHY_INT_CWRD   0x1000
 
#define PHY_INT_SSD   0x0800
 
#define PHY_INT_ESD   0x0400
 
#define PHY_INT_RPOL   0x0200
 
#define PHY_INT_JAB   0x0100
 
#define PHY_INT_SPDDET   0x0080
 
#define PHY_INT_DPLXDET   0x0040
 
#define PHY_MASK_REG   0x13
 
#define PHY_CNTL_REG   0x00
 
#define PHY_CNTL_RST   0x8000
 
#define PHY_CNTL_LPBK   0x4000
 
#define PHY_CNTL_SPEED   0x2000
 
#define PHY_CNTL_ANEG_EN   0x1000
 
#define PHY_CNTL_PDN   0x0800
 
#define PHY_CNTL_MII_DIS   0x0400
 
#define PHY_CNTL_ANEG_RST   0x0200
 
#define PHY_CNTL_DPLX   0x0100
 
#define PHY_CNTL_COLTST   0x0080
 
#define PHY_STAT_REG   0x01
 
#define PHY_STAT_CAP_T4   0x8000
 
#define PHY_STAT_CAP_TXF   0x4000
 
#define PHY_STAT_CAP_TXH   0x2000
 
#define PHY_STAT_CAP_TF   0x1000
 
#define PHY_STAT_CAP_TH   0x0800
 
#define PHY_STAT_CAP_SUPR   0x0040
 
#define PHY_STAT_ANEG_ACK   0x0020
 
#define PHY_STAT_REM_FLT   0x0010
 
#define PHY_STAT_CAP_ANEG   0x0008
 
#define PHY_STAT_LINK   0x0004
 
#define PHY_STAT_JAB   0x0002
 
#define PHY_STAT_EXREG   0x0001
 
#define PHY_ID1_REG   0x02
 
#define PHY_ID2_REG   0x03
 
#define PHY_AD_REG   0x04
 
#define PHY_AD_NP   0x8000
 
#define PHY_AD_ACK   0x4000
 
#define PHY_AD_RF   0x2000
 
#define PHY_AD_T4   0x0200
 
#define PHY_AD_TX_FDX   0x0100
 
#define PHY_AD_TX_HDX   0x0080
 
#define PHY_AD_10_FDX   0x0040
 
#define PHY_AD_10_HDX   0x0020
 
#define PHY_AD_CSMA   0x0001
 
#define PHY_RMT_REG   0x05
 
#define PHY_CFG1_REG   0x10
 
#define PHY_CFG1_LNKDIS   0x8000
 
#define PHY_CFG1_XMTDIS   0x4000
 
#define PHY_CFG1_XMTPDN   0x2000
 
#define PHY_CFG1_BYPSCR   0x0400
 
#define PHY_CFG1_UNSCDS   0x0200
 
#define PHY_CFG1_EQLZR   0x0100
 
#define PHY_CFG1_CABLE   0x0080
 
#define PHY_CFG1_RLVL0   0x0040
 
#define PHY_CFG1_TLVL_SHIFT   2
 
#define PHY_CFG1_TLVL_MASK   0x003C
 
#define PHY_CFG1_TRF_MASK   0x0003
 
#define PHY_CFG2_REG   0x11
 
#define PHY_CFG2_APOLDIS   0x0020
 
#define PHY_CFG2_JABDIS   0x0010
 
#define PHY_CFG2_MREG   0x0008
 
#define PHY_CFG2_INTMDIO   0x0004
 
#define PHY_INT_REG   0x12
 
#define PHY_INT_INT   0x8000
 
#define PHY_INT_LNKFAIL   0x4000
 
#define PHY_INT_LOSSSYNC   0x2000
 
#define PHY_INT_CWRD   0x1000
 
#define PHY_INT_SSD   0x0800
 
#define PHY_INT_ESD   0x0400
 
#define PHY_INT_RPOL   0x0200
 
#define PHY_INT_JAB   0x0100
 
#define PHY_INT_SPDDET   0x0080
 
#define PHY_INT_DPLXDET   0x0040
 
#define PHY_MASK_REG   0x13
 
#define SMC_SELECT_BANK(x, y)   { _outw( y, x + BANK_SELECT ); }
 
#define SMC_DELAY(x)
 

Typedefs

typedef unsigned char byte
 
typedef unsigned short word
 
typedef unsigned long int dword
 

Functions

 FILE_LICENCE (GPL_ANY)
 

Macro Definition Documentation

◆ _SMC9000_H_

#define _SMC9000_H_

Definition at line 35 of file smc9000.h.

◆ BANK_SELECT

#define BANK_SELECT   14

Definition at line 62 of file smc9000.h.

◆ TCR

#define TCR   0 /* transmit control register */

Definition at line 66 of file smc9000.h.

◆ TCR_ENABLE

#define TCR_ENABLE   0x0001 /* if this is 1, we can transmit */

Definition at line 67 of file smc9000.h.

◆ TCR_FDUPLX

#define TCR_FDUPLX   0x0800 /* receive packets sent out */

Definition at line 68 of file smc9000.h.

◆ TCR_STP_SQET

#define TCR_STP_SQET   0x1000 /* stop transmitting if Signal quality error */

Definition at line 69 of file smc9000.h.

◆ TCR_MON_CNS

#define TCR_MON_CNS   0x0400 /* monitors the carrier status */

Definition at line 70 of file smc9000.h.

◆ TCR_PAD_ENABLE

#define TCR_PAD_ENABLE   0x0080 /* pads short packets to 64 bytes */

Definition at line 71 of file smc9000.h.

◆ TCR_CLEAR

#define TCR_CLEAR   0 /* do NOTHING */

Definition at line 73 of file smc9000.h.

◆ TCR_NORMAL

#define TCR_NORMAL   (TCR_ENABLE | TCR_PAD_ENABLE)

Definition at line 75 of file smc9000.h.

◆ EPH_STATUS

#define EPH_STATUS   2

Definition at line 78 of file smc9000.h.

◆ ES_LINK_OK

#define ES_LINK_OK   0x4000 /* is the link integrity ok ? */

Definition at line 79 of file smc9000.h.

◆ RCR

#define RCR   4

Definition at line 81 of file smc9000.h.

◆ RCR_SOFTRESET

#define RCR_SOFTRESET   0x8000 /* resets the chip */

Definition at line 82 of file smc9000.h.

◆ RCR_STRIP_CRC

#define RCR_STRIP_CRC   0x200 /* strips CRC */

Definition at line 83 of file smc9000.h.

◆ RCR_ENABLE

#define RCR_ENABLE   0x100 /* IFF this is set, we can receive packets */

Definition at line 84 of file smc9000.h.

◆ RCR_ALMUL

#define RCR_ALMUL   0x4 /* receive all multicast packets */

Definition at line 85 of file smc9000.h.

◆ RCR_PROMISC

#define RCR_PROMISC   0x2 /* enable promiscuous mode */

Definition at line 86 of file smc9000.h.

◆ RCR_NORMAL

#define RCR_NORMAL   (RCR_STRIP_CRC | RCR_ENABLE)

Definition at line 89 of file smc9000.h.

◆ RCR_CLEAR

#define RCR_CLEAR   0x0 /* set it to a base state */

Definition at line 90 of file smc9000.h.

◆ COUNTER

#define COUNTER   6

Definition at line 92 of file smc9000.h.

◆ MIR

#define MIR   8

Definition at line 93 of file smc9000.h.

◆ MCR

#define MCR   10

Definition at line 94 of file smc9000.h.

◆ RPC_REG [1/2]

#define RPC_REG   0x000A

Definition at line 117 of file smc9000.h.

◆ RPC_SPEED [1/2]

#define RPC_SPEED   0x2000

Definition at line 118 of file smc9000.h.

◆ RPC_DPLX [1/2]

#define RPC_DPLX   0x1000

Definition at line 119 of file smc9000.h.

◆ RPC_ANEG [1/2]

#define RPC_ANEG   0x0800

Definition at line 120 of file smc9000.h.

◆ RPC_LSXA_SHFT [1/2]

#define RPC_LSXA_SHFT   5

Definition at line 121 of file smc9000.h.

◆ RPC_LSXB_SHFT [1/2]

#define RPC_LSXB_SHFT   2

Definition at line 122 of file smc9000.h.

◆ RPC_LED_100_10 [1/2]

#define RPC_LED_100_10   (0x00)

Definition at line 123 of file smc9000.h.

◆ RPC_LED_RES [1/2]

#define RPC_LED_RES   (0x01)

Definition at line 124 of file smc9000.h.

◆ RPC_LED_10 [1/2]

#define RPC_LED_10   (0x02)

Definition at line 125 of file smc9000.h.

◆ RPC_LED_FD [1/2]

#define RPC_LED_FD   (0x03)

Definition at line 126 of file smc9000.h.

◆ RPC_LED_TX_RX [1/2]

#define RPC_LED_TX_RX   (0x04)

Definition at line 127 of file smc9000.h.

◆ RPC_LED_100 [1/2]

#define RPC_LED_100   (0x05)

Definition at line 128 of file smc9000.h.

◆ RPC_LED_TX [1/2]

#define RPC_LED_TX   (0x06)

Definition at line 129 of file smc9000.h.

◆ RPC_LED_RX [1/2]

#define RPC_LED_RX   (0x07)

Definition at line 130 of file smc9000.h.

◆ RPC_DEFAULT [1/2]

#define RPC_DEFAULT   (RPC_ANEG | (RPC_LED_100 << RPC_LSXA_SHFT) | (RPC_LED_FD << RPC_LSXB_SHFT) | RPC_SPEED | RPC_DPLX)

Definition at line 131 of file smc9000.h.

◆ RPC_REG [2/2]

#define RPC_REG   0x000A

Definition at line 117 of file smc9000.h.

◆ RPC_SPEED [2/2]

#define RPC_SPEED   0x2000

Definition at line 118 of file smc9000.h.

◆ RPC_DPLX [2/2]

#define RPC_DPLX   0x1000

Definition at line 119 of file smc9000.h.

◆ RPC_ANEG [2/2]

#define RPC_ANEG   0x0800

Definition at line 120 of file smc9000.h.

◆ RPC_LSXA_SHFT [2/2]

#define RPC_LSXA_SHFT   5

Definition at line 121 of file smc9000.h.

◆ RPC_LSXB_SHFT [2/2]

#define RPC_LSXB_SHFT   2

Definition at line 122 of file smc9000.h.

◆ RPC_LED_100_10 [2/2]

#define RPC_LED_100_10   (0x00)

Definition at line 123 of file smc9000.h.

◆ RPC_LED_RES [2/2]

#define RPC_LED_RES   (0x01)

Definition at line 124 of file smc9000.h.

◆ RPC_LED_10 [2/2]

#define RPC_LED_10   (0x02)

Definition at line 125 of file smc9000.h.

◆ RPC_LED_FD [2/2]

#define RPC_LED_FD   (0x03)

Definition at line 126 of file smc9000.h.

◆ RPC_LED_TX_RX [2/2]

#define RPC_LED_TX_RX   (0x04)

Definition at line 127 of file smc9000.h.

◆ RPC_LED_100 [2/2]

#define RPC_LED_100   (0x05)

Definition at line 128 of file smc9000.h.

◆ RPC_LED_TX [2/2]

#define RPC_LED_TX   (0x06)

Definition at line 129 of file smc9000.h.

◆ RPC_LED_RX [2/2]

#define RPC_LED_RX   (0x07)

Definition at line 130 of file smc9000.h.

◆ RPC_DEFAULT [2/2]

#define RPC_DEFAULT   (RPC_ANEG | (RPC_LED_100 << RPC_LSXA_SHFT) | (RPC_LED_FD << RPC_LSXB_SHFT) | RPC_SPEED | RPC_DPLX)

Definition at line 131 of file smc9000.h.

◆ CFG

#define CFG   0

Definition at line 134 of file smc9000.h.

◆ CFG_AUI_SELECT

#define CFG_AUI_SELECT   0x100

Definition at line 135 of file smc9000.h.

◆ BASE

#define BASE   2

Definition at line 136 of file smc9000.h.

◆ ADDR0

#define ADDR0   4

Definition at line 137 of file smc9000.h.

◆ ADDR1

#define ADDR1   6

Definition at line 138 of file smc9000.h.

◆ ADDR2

#define ADDR2   8

Definition at line 139 of file smc9000.h.

◆ GENERAL

#define GENERAL   10

Definition at line 140 of file smc9000.h.

◆ CONTROL

#define CONTROL   12

Definition at line 141 of file smc9000.h.

◆ CTL_POWERDOWN

#define CTL_POWERDOWN   0x2000

Definition at line 142 of file smc9000.h.

◆ CTL_LE_ENABLE

#define CTL_LE_ENABLE   0x80

Definition at line 143 of file smc9000.h.

◆ CTL_CR_ENABLE

#define CTL_CR_ENABLE   0x40

Definition at line 144 of file smc9000.h.

◆ CTL_TE_ENABLE

#define CTL_TE_ENABLE   0x0020

Definition at line 145 of file smc9000.h.

◆ CTL_AUTO_RELEASE

#define CTL_AUTO_RELEASE   0x0800

Definition at line 146 of file smc9000.h.

◆ CTL_EPROM_ACCESS

#define CTL_EPROM_ACCESS   0x0003 /* high if Eprom is being read */

Definition at line 147 of file smc9000.h.

◆ MMU_CMD

#define MMU_CMD   0

Definition at line 150 of file smc9000.h.

◆ MC_BUSY

#define MC_BUSY   1 /* only readable bit in the register */

Definition at line 151 of file smc9000.h.

◆ MC_NOP

#define MC_NOP   0

Definition at line 152 of file smc9000.h.

◆ MC_ALLOC

#define MC_ALLOC   0x20 /* or with number of 256 byte packets */

Definition at line 153 of file smc9000.h.

◆ MC_RESET

#define MC_RESET   0x40

Definition at line 154 of file smc9000.h.

◆ MC_REMOVE

#define MC_REMOVE   0x60 /* remove the current rx packet */

Definition at line 155 of file smc9000.h.

◆ MC_RELEASE

#define MC_RELEASE   0x80 /* remove and release the current rx packet */

Definition at line 156 of file smc9000.h.

◆ MC_FREEPKT

#define MC_FREEPKT   0xA0 /* Release packet in PNR register */

Definition at line 157 of file smc9000.h.

◆ MC_ENQUEUE

#define MC_ENQUEUE   0xC0 /* Enqueue the packet for transmit */

Definition at line 158 of file smc9000.h.

◆ PNR_ARR

#define PNR_ARR   2

Definition at line 160 of file smc9000.h.

◆ FIFO_PORTS

#define FIFO_PORTS   4

Definition at line 161 of file smc9000.h.

◆ FP_RXEMPTY

#define FP_RXEMPTY   0x8000

Definition at line 163 of file smc9000.h.

◆ FP_TXEMPTY

#define FP_TXEMPTY   0x80

Definition at line 164 of file smc9000.h.

◆ POINTER

#define POINTER   6

Definition at line 166 of file smc9000.h.

◆ PTR_READ

#define PTR_READ   0x2000

Definition at line 167 of file smc9000.h.

◆ PTR_RCV

#define PTR_RCV   0x8000

Definition at line 168 of file smc9000.h.

◆ PTR_AUTOINC

#define PTR_AUTOINC   0x4000

Definition at line 169 of file smc9000.h.

◆ PTR_AUTO_INC

#define PTR_AUTO_INC   0x0040

Definition at line 170 of file smc9000.h.

◆ DATA_1

#define DATA_1   8

Definition at line 172 of file smc9000.h.

◆ DATA_2

#define DATA_2   10

Definition at line 173 of file smc9000.h.

◆ INTERRUPT

#define INTERRUPT   12

Definition at line 174 of file smc9000.h.

◆ INT_MASK

#define INT_MASK   13

Definition at line 176 of file smc9000.h.

◆ IM_RCV_INT

#define IM_RCV_INT   0x1

Definition at line 177 of file smc9000.h.

◆ IM_TX_INT

#define IM_TX_INT   0x2

Definition at line 178 of file smc9000.h.

◆ IM_TX_EMPTY_INT

#define IM_TX_EMPTY_INT   0x4

Definition at line 179 of file smc9000.h.

◆ IM_ALLOC_INT

#define IM_ALLOC_INT   0x8

Definition at line 180 of file smc9000.h.

◆ IM_RX_OVRN_INT

#define IM_RX_OVRN_INT   0x10

Definition at line 181 of file smc9000.h.

◆ IM_EPH_INT

#define IM_EPH_INT   0x20

Definition at line 182 of file smc9000.h.

◆ IM_ERCV_INT

#define IM_ERCV_INT   0x40 /* not on SMC9192 */

Definition at line 183 of file smc9000.h.

◆ MULTICAST1

#define MULTICAST1   0

Definition at line 186 of file smc9000.h.

◆ MULTICAST2

#define MULTICAST2   2

Definition at line 187 of file smc9000.h.

◆ MULTICAST3

#define MULTICAST3   4

Definition at line 188 of file smc9000.h.

◆ MULTICAST4

#define MULTICAST4   6

Definition at line 189 of file smc9000.h.

◆ MGMT

#define MGMT   8

Definition at line 190 of file smc9000.h.

◆ REVISION

#define REVISION   10 /* ( hi: chip id low: rev # ) */

Definition at line 191 of file smc9000.h.

◆ MII_REG

#define MII_REG   0x0008

Definition at line 194 of file smc9000.h.

◆ MII_MSK_CRS100

#define MII_MSK_CRS100   0x4000

Definition at line 195 of file smc9000.h.

◆ MII_MDOE

#define MII_MDOE   0x0008

Definition at line 196 of file smc9000.h.

◆ MII_MCLK

#define MII_MCLK   0x0004

Definition at line 197 of file smc9000.h.

◆ MII_MDI

#define MII_MDI   0x0002

Definition at line 198 of file smc9000.h.

◆ MII_MDO

#define MII_MDO   0x0001

Definition at line 199 of file smc9000.h.

◆ ERCV

#define ERCV   12

Definition at line 202 of file smc9000.h.

◆ CHIP_9190

#define CHIP_9190   3

Definition at line 206 of file smc9000.h.

◆ CHIP_9194

#define CHIP_9194   4

Definition at line 207 of file smc9000.h.

◆ CHIP_9195

#define CHIP_9195   5

Definition at line 208 of file smc9000.h.

◆ CHIP_9196

#define CHIP_9196   4

Definition at line 209 of file smc9000.h.

◆ CHIP_91100

#define CHIP_91100   7

Definition at line 210 of file smc9000.h.

◆ CHIP_91100FD

#define CHIP_91100FD   8

Definition at line 211 of file smc9000.h.

◆ REV_9196

#define REV_9196   6

Definition at line 213 of file smc9000.h.

◆ TS_SUCCESS

#define TS_SUCCESS   0x0001

Definition at line 218 of file smc9000.h.

◆ TS_LOSTCAR

#define TS_LOSTCAR   0x0400

Definition at line 219 of file smc9000.h.

◆ TS_LATCOL

#define TS_LATCOL   0x0200

Definition at line 220 of file smc9000.h.

◆ TS_16COL

#define TS_16COL   0x0010

Definition at line 221 of file smc9000.h.

◆ RS_ALGNERR

#define RS_ALGNERR   0x8000

Definition at line 226 of file smc9000.h.

◆ RS_BADCRC

#define RS_BADCRC   0x2000

Definition at line 227 of file smc9000.h.

◆ RS_ODDFRAME

#define RS_ODDFRAME   0x1000

Definition at line 228 of file smc9000.h.

◆ RS_TOOLONG

#define RS_TOOLONG   0x0800

Definition at line 229 of file smc9000.h.

◆ RS_TOOSHORT

#define RS_TOOSHORT   0x0400

Definition at line 230 of file smc9000.h.

◆ RS_MULTICAST

#define RS_MULTICAST   0x0001

Definition at line 231 of file smc9000.h.

◆ RS_ERRORS

#define RS_ERRORS   (RS_ALGNERR | RS_BADCRC | RS_TOOLONG | RS_TOOSHORT)

Definition at line 232 of file smc9000.h.

◆ PHY_CNTL_REG [1/2]

#define PHY_CNTL_REG   0x00

Definition at line 326 of file smc9000.h.

◆ PHY_CNTL_RST [1/2]

#define PHY_CNTL_RST   0x8000

Definition at line 327 of file smc9000.h.

◆ PHY_CNTL_LPBK [1/2]

#define PHY_CNTL_LPBK   0x4000

Definition at line 328 of file smc9000.h.

◆ PHY_CNTL_SPEED [1/2]

#define PHY_CNTL_SPEED   0x2000

Definition at line 329 of file smc9000.h.

◆ PHY_CNTL_ANEG_EN [1/2]

#define PHY_CNTL_ANEG_EN   0x1000

Definition at line 330 of file smc9000.h.

◆ PHY_CNTL_PDN [1/2]

#define PHY_CNTL_PDN   0x0800

Definition at line 331 of file smc9000.h.

◆ PHY_CNTL_MII_DIS [1/2]

#define PHY_CNTL_MII_DIS   0x0400

Definition at line 332 of file smc9000.h.

◆ PHY_CNTL_ANEG_RST [1/2]

#define PHY_CNTL_ANEG_RST   0x0200

Definition at line 333 of file smc9000.h.

◆ PHY_CNTL_DPLX [1/2]

#define PHY_CNTL_DPLX   0x0100

Definition at line 334 of file smc9000.h.

◆ PHY_CNTL_COLTST [1/2]

#define PHY_CNTL_COLTST   0x0080

Definition at line 335 of file smc9000.h.

◆ PHY_STAT_REG [1/2]

#define PHY_STAT_REG   0x01

Definition at line 338 of file smc9000.h.

◆ PHY_STAT_CAP_T4 [1/2]

#define PHY_STAT_CAP_T4   0x8000

Definition at line 339 of file smc9000.h.

◆ PHY_STAT_CAP_TXF [1/2]

#define PHY_STAT_CAP_TXF   0x4000

Definition at line 340 of file smc9000.h.

◆ PHY_STAT_CAP_TXH [1/2]

#define PHY_STAT_CAP_TXH   0x2000

Definition at line 341 of file smc9000.h.

◆ PHY_STAT_CAP_TF [1/2]

#define PHY_STAT_CAP_TF   0x1000

Definition at line 342 of file smc9000.h.

◆ PHY_STAT_CAP_TH [1/2]

#define PHY_STAT_CAP_TH   0x0800

Definition at line 343 of file smc9000.h.

◆ PHY_STAT_CAP_SUPR [1/2]

#define PHY_STAT_CAP_SUPR   0x0040

Definition at line 344 of file smc9000.h.

◆ PHY_STAT_ANEG_ACK [1/2]

#define PHY_STAT_ANEG_ACK   0x0020

Definition at line 345 of file smc9000.h.

◆ PHY_STAT_REM_FLT [1/2]

#define PHY_STAT_REM_FLT   0x0010

Definition at line 346 of file smc9000.h.

◆ PHY_STAT_CAP_ANEG [1/2]

#define PHY_STAT_CAP_ANEG   0x0008

Definition at line 347 of file smc9000.h.

◆ PHY_STAT_LINK [1/2]

#define PHY_STAT_LINK   0x0004

Definition at line 348 of file smc9000.h.

◆ PHY_STAT_JAB [1/2]

#define PHY_STAT_JAB   0x0002

Definition at line 349 of file smc9000.h.

◆ PHY_STAT_EXREG [1/2]

#define PHY_STAT_EXREG   0x0001

Definition at line 350 of file smc9000.h.

◆ PHY_ID1_REG [1/2]

#define PHY_ID1_REG   0x02

Definition at line 353 of file smc9000.h.

◆ PHY_ID2_REG [1/2]

#define PHY_ID2_REG   0x03

Definition at line 354 of file smc9000.h.

◆ PHY_AD_REG [1/2]

#define PHY_AD_REG   0x04

Definition at line 357 of file smc9000.h.

◆ PHY_AD_NP [1/2]

#define PHY_AD_NP   0x8000

Definition at line 358 of file smc9000.h.

◆ PHY_AD_ACK [1/2]

#define PHY_AD_ACK   0x4000

Definition at line 359 of file smc9000.h.

◆ PHY_AD_RF [1/2]

#define PHY_AD_RF   0x2000

Definition at line 360 of file smc9000.h.

◆ PHY_AD_T4 [1/2]

#define PHY_AD_T4   0x0200

Definition at line 361 of file smc9000.h.

◆ PHY_AD_TX_FDX [1/2]

#define PHY_AD_TX_FDX   0x0100

Definition at line 362 of file smc9000.h.

◆ PHY_AD_TX_HDX [1/2]

#define PHY_AD_TX_HDX   0x0080

Definition at line 363 of file smc9000.h.

◆ PHY_AD_10_FDX [1/2]

#define PHY_AD_10_FDX   0x0040

Definition at line 364 of file smc9000.h.

◆ PHY_AD_10_HDX [1/2]

#define PHY_AD_10_HDX   0x0020

Definition at line 365 of file smc9000.h.

◆ PHY_AD_CSMA [1/2]

#define PHY_AD_CSMA   0x0001

Definition at line 366 of file smc9000.h.

◆ PHY_RMT_REG [1/2]

#define PHY_RMT_REG   0x05

Definition at line 369 of file smc9000.h.

◆ PHY_CFG1_REG [1/2]

#define PHY_CFG1_REG   0x10

Definition at line 373 of file smc9000.h.

◆ PHY_CFG1_LNKDIS [1/2]

#define PHY_CFG1_LNKDIS   0x8000

Definition at line 374 of file smc9000.h.

◆ PHY_CFG1_XMTDIS [1/2]

#define PHY_CFG1_XMTDIS   0x4000

Definition at line 375 of file smc9000.h.

◆ PHY_CFG1_XMTPDN [1/2]

#define PHY_CFG1_XMTPDN   0x2000

Definition at line 376 of file smc9000.h.

◆ PHY_CFG1_BYPSCR [1/2]

#define PHY_CFG1_BYPSCR   0x0400

Definition at line 377 of file smc9000.h.

◆ PHY_CFG1_UNSCDS [1/2]

#define PHY_CFG1_UNSCDS   0x0200

Definition at line 378 of file smc9000.h.

◆ PHY_CFG1_EQLZR [1/2]

#define PHY_CFG1_EQLZR   0x0100

Definition at line 379 of file smc9000.h.

◆ PHY_CFG1_CABLE [1/2]

#define PHY_CFG1_CABLE   0x0080

Definition at line 380 of file smc9000.h.

◆ PHY_CFG1_RLVL0 [1/2]

#define PHY_CFG1_RLVL0   0x0040

Definition at line 381 of file smc9000.h.

◆ PHY_CFG1_TLVL_SHIFT [1/2]

#define PHY_CFG1_TLVL_SHIFT   2

Definition at line 382 of file smc9000.h.

◆ PHY_CFG1_TLVL_MASK [1/2]

#define PHY_CFG1_TLVL_MASK   0x003C

Definition at line 383 of file smc9000.h.

◆ PHY_CFG1_TRF_MASK [1/2]

#define PHY_CFG1_TRF_MASK   0x0003

Definition at line 384 of file smc9000.h.

◆ PHY_CFG2_REG [1/2]

#define PHY_CFG2_REG   0x11

Definition at line 388 of file smc9000.h.

◆ PHY_CFG2_APOLDIS [1/2]

#define PHY_CFG2_APOLDIS   0x0020

Definition at line 389 of file smc9000.h.

◆ PHY_CFG2_JABDIS [1/2]

#define PHY_CFG2_JABDIS   0x0010

Definition at line 390 of file smc9000.h.

◆ PHY_CFG2_MREG [1/2]

#define PHY_CFG2_MREG   0x0008

Definition at line 391 of file smc9000.h.

◆ PHY_CFG2_INTMDIO [1/2]

#define PHY_CFG2_INTMDIO   0x0004

Definition at line 392 of file smc9000.h.

◆ PHY_INT_REG [1/2]

#define PHY_INT_REG   0x12

Definition at line 395 of file smc9000.h.

◆ PHY_INT_INT [1/2]

#define PHY_INT_INT   0x8000

Definition at line 396 of file smc9000.h.

◆ PHY_INT_LNKFAIL [1/2]

#define PHY_INT_LNKFAIL   0x4000

Definition at line 397 of file smc9000.h.

◆ PHY_INT_LOSSSYNC [1/2]

#define PHY_INT_LOSSSYNC   0x2000

Definition at line 398 of file smc9000.h.

◆ PHY_INT_CWRD [1/2]

#define PHY_INT_CWRD   0x1000

Definition at line 399 of file smc9000.h.

◆ PHY_INT_SSD [1/2]

#define PHY_INT_SSD   0x0800

Definition at line 400 of file smc9000.h.

◆ PHY_INT_ESD [1/2]

#define PHY_INT_ESD   0x0400

Definition at line 401 of file smc9000.h.

◆ PHY_INT_RPOL [1/2]

#define PHY_INT_RPOL   0x0200

Definition at line 402 of file smc9000.h.

◆ PHY_INT_JAB [1/2]

#define PHY_INT_JAB   0x0100

Definition at line 403 of file smc9000.h.

◆ PHY_INT_SPDDET [1/2]

#define PHY_INT_SPDDET   0x0080

Definition at line 404 of file smc9000.h.

◆ PHY_INT_DPLXDET [1/2]

#define PHY_INT_DPLXDET   0x0040

Definition at line 405 of file smc9000.h.

◆ PHY_MASK_REG [1/2]

#define PHY_MASK_REG   0x13

Definition at line 408 of file smc9000.h.

◆ PHY_CNTL_REG [2/2]

#define PHY_CNTL_REG   0x00

Definition at line 326 of file smc9000.h.

◆ PHY_CNTL_RST [2/2]

#define PHY_CNTL_RST   0x8000

Definition at line 327 of file smc9000.h.

◆ PHY_CNTL_LPBK [2/2]

#define PHY_CNTL_LPBK   0x4000

Definition at line 328 of file smc9000.h.

◆ PHY_CNTL_SPEED [2/2]

#define PHY_CNTL_SPEED   0x2000

Definition at line 329 of file smc9000.h.

◆ PHY_CNTL_ANEG_EN [2/2]

#define PHY_CNTL_ANEG_EN   0x1000

Definition at line 330 of file smc9000.h.

◆ PHY_CNTL_PDN [2/2]

#define PHY_CNTL_PDN   0x0800

Definition at line 331 of file smc9000.h.

◆ PHY_CNTL_MII_DIS [2/2]

#define PHY_CNTL_MII_DIS   0x0400

Definition at line 332 of file smc9000.h.

◆ PHY_CNTL_ANEG_RST [2/2]

#define PHY_CNTL_ANEG_RST   0x0200

Definition at line 333 of file smc9000.h.

◆ PHY_CNTL_DPLX [2/2]

#define PHY_CNTL_DPLX   0x0100

Definition at line 334 of file smc9000.h.

◆ PHY_CNTL_COLTST [2/2]

#define PHY_CNTL_COLTST   0x0080

Definition at line 335 of file smc9000.h.

◆ PHY_STAT_REG [2/2]

#define PHY_STAT_REG   0x01

Definition at line 338 of file smc9000.h.

◆ PHY_STAT_CAP_T4 [2/2]

#define PHY_STAT_CAP_T4   0x8000

Definition at line 339 of file smc9000.h.

◆ PHY_STAT_CAP_TXF [2/2]

#define PHY_STAT_CAP_TXF   0x4000

Definition at line 340 of file smc9000.h.

◆ PHY_STAT_CAP_TXH [2/2]

#define PHY_STAT_CAP_TXH   0x2000

Definition at line 341 of file smc9000.h.

◆ PHY_STAT_CAP_TF [2/2]

#define PHY_STAT_CAP_TF   0x1000

Definition at line 342 of file smc9000.h.

◆ PHY_STAT_CAP_TH [2/2]

#define PHY_STAT_CAP_TH   0x0800

Definition at line 343 of file smc9000.h.

◆ PHY_STAT_CAP_SUPR [2/2]

#define PHY_STAT_CAP_SUPR   0x0040

Definition at line 344 of file smc9000.h.

◆ PHY_STAT_ANEG_ACK [2/2]

#define PHY_STAT_ANEG_ACK   0x0020

Definition at line 345 of file smc9000.h.

◆ PHY_STAT_REM_FLT [2/2]

#define PHY_STAT_REM_FLT   0x0010

Definition at line 346 of file smc9000.h.

◆ PHY_STAT_CAP_ANEG [2/2]

#define PHY_STAT_CAP_ANEG   0x0008

Definition at line 347 of file smc9000.h.

◆ PHY_STAT_LINK [2/2]

#define PHY_STAT_LINK   0x0004

Definition at line 348 of file smc9000.h.

◆ PHY_STAT_JAB [2/2]

#define PHY_STAT_JAB   0x0002

Definition at line 349 of file smc9000.h.

◆ PHY_STAT_EXREG [2/2]

#define PHY_STAT_EXREG   0x0001

Definition at line 350 of file smc9000.h.

◆ PHY_ID1_REG [2/2]

#define PHY_ID1_REG   0x02

Definition at line 353 of file smc9000.h.

◆ PHY_ID2_REG [2/2]

#define PHY_ID2_REG   0x03

Definition at line 354 of file smc9000.h.

◆ PHY_AD_REG [2/2]

#define PHY_AD_REG   0x04

Definition at line 357 of file smc9000.h.

◆ PHY_AD_NP [2/2]

#define PHY_AD_NP   0x8000

Definition at line 358 of file smc9000.h.

◆ PHY_AD_ACK [2/2]

#define PHY_AD_ACK   0x4000

Definition at line 359 of file smc9000.h.

◆ PHY_AD_RF [2/2]

#define PHY_AD_RF   0x2000

Definition at line 360 of file smc9000.h.

◆ PHY_AD_T4 [2/2]

#define PHY_AD_T4   0x0200

Definition at line 361 of file smc9000.h.

◆ PHY_AD_TX_FDX [2/2]

#define PHY_AD_TX_FDX   0x0100

Definition at line 362 of file smc9000.h.

◆ PHY_AD_TX_HDX [2/2]

#define PHY_AD_TX_HDX   0x0080

Definition at line 363 of file smc9000.h.

◆ PHY_AD_10_FDX [2/2]

#define PHY_AD_10_FDX   0x0040

Definition at line 364 of file smc9000.h.

◆ PHY_AD_10_HDX [2/2]

#define PHY_AD_10_HDX   0x0020

Definition at line 365 of file smc9000.h.

◆ PHY_AD_CSMA [2/2]

#define PHY_AD_CSMA   0x0001

Definition at line 366 of file smc9000.h.

◆ PHY_RMT_REG [2/2]

#define PHY_RMT_REG   0x05

Definition at line 369 of file smc9000.h.

◆ PHY_CFG1_REG [2/2]

#define PHY_CFG1_REG   0x10

Definition at line 373 of file smc9000.h.

◆ PHY_CFG1_LNKDIS [2/2]

#define PHY_CFG1_LNKDIS   0x8000

Definition at line 374 of file smc9000.h.

◆ PHY_CFG1_XMTDIS [2/2]

#define PHY_CFG1_XMTDIS   0x4000

Definition at line 375 of file smc9000.h.

◆ PHY_CFG1_XMTPDN [2/2]

#define PHY_CFG1_XMTPDN   0x2000

Definition at line 376 of file smc9000.h.

◆ PHY_CFG1_BYPSCR [2/2]

#define PHY_CFG1_BYPSCR   0x0400

Definition at line 377 of file smc9000.h.

◆ PHY_CFG1_UNSCDS [2/2]

#define PHY_CFG1_UNSCDS   0x0200

Definition at line 378 of file smc9000.h.

◆ PHY_CFG1_EQLZR [2/2]

#define PHY_CFG1_EQLZR   0x0100

Definition at line 379 of file smc9000.h.

◆ PHY_CFG1_CABLE [2/2]

#define PHY_CFG1_CABLE   0x0080

Definition at line 380 of file smc9000.h.

◆ PHY_CFG1_RLVL0 [2/2]

#define PHY_CFG1_RLVL0   0x0040

Definition at line 381 of file smc9000.h.

◆ PHY_CFG1_TLVL_SHIFT [2/2]

#define PHY_CFG1_TLVL_SHIFT   2

Definition at line 382 of file smc9000.h.

◆ PHY_CFG1_TLVL_MASK [2/2]

#define PHY_CFG1_TLVL_MASK   0x003C

Definition at line 383 of file smc9000.h.

◆ PHY_CFG1_TRF_MASK [2/2]

#define PHY_CFG1_TRF_MASK   0x0003

Definition at line 384 of file smc9000.h.

◆ PHY_CFG2_REG [2/2]

#define PHY_CFG2_REG   0x11

Definition at line 388 of file smc9000.h.

◆ PHY_CFG2_APOLDIS [2/2]

#define PHY_CFG2_APOLDIS   0x0020

Definition at line 389 of file smc9000.h.

◆ PHY_CFG2_JABDIS [2/2]

#define PHY_CFG2_JABDIS   0x0010

Definition at line 390 of file smc9000.h.

◆ PHY_CFG2_MREG [2/2]

#define PHY_CFG2_MREG   0x0008

Definition at line 391 of file smc9000.h.

◆ PHY_CFG2_INTMDIO [2/2]

#define PHY_CFG2_INTMDIO   0x0004

Definition at line 392 of file smc9000.h.

◆ PHY_INT_REG [2/2]

#define PHY_INT_REG   0x12

Definition at line 395 of file smc9000.h.

◆ PHY_INT_INT [2/2]

#define PHY_INT_INT   0x8000

Definition at line 396 of file smc9000.h.

◆ PHY_INT_LNKFAIL [2/2]

#define PHY_INT_LNKFAIL   0x4000

Definition at line 397 of file smc9000.h.

◆ PHY_INT_LOSSSYNC [2/2]

#define PHY_INT_LOSSSYNC   0x2000

Definition at line 398 of file smc9000.h.

◆ PHY_INT_CWRD [2/2]

#define PHY_INT_CWRD   0x1000

Definition at line 399 of file smc9000.h.

◆ PHY_INT_SSD [2/2]

#define PHY_INT_SSD   0x0800

Definition at line 400 of file smc9000.h.

◆ PHY_INT_ESD [2/2]

#define PHY_INT_ESD   0x0400

Definition at line 401 of file smc9000.h.

◆ PHY_INT_RPOL [2/2]

#define PHY_INT_RPOL   0x0200

Definition at line 402 of file smc9000.h.

◆ PHY_INT_JAB [2/2]

#define PHY_INT_JAB   0x0100

Definition at line 403 of file smc9000.h.

◆ PHY_INT_SPDDET [2/2]

#define PHY_INT_SPDDET   0x0080

Definition at line 404 of file smc9000.h.

◆ PHY_INT_DPLXDET [2/2]

#define PHY_INT_DPLXDET   0x0040

Definition at line 405 of file smc9000.h.

◆ PHY_MASK_REG [2/2]

#define PHY_MASK_REG   0x13

Definition at line 408 of file smc9000.h.

◆ SMC_SELECT_BANK

#define SMC_SELECT_BANK (   x,
 
)    { _outw( y, x + BANK_SELECT ); }

Definition at line 419 of file smc9000.h.

◆ SMC_DELAY

#define SMC_DELAY (   x)
Value:
{ inw( x + RCR );\
inw( x + RCR );\
inw( x + RCR ); }
uint16_t inw(volatile uint16_t *io_addr)
Read 16-bit word from I/O-mapped device.
#define RCR
Definition: smc9000.h:81

Definition at line 422 of file smc9000.h.

Typedef Documentation

◆ byte

typedef unsigned char byte

Definition at line 38 of file smc9000.h.

◆ word

typedef unsigned short word

Definition at line 39 of file smc9000.h.

◆ dword

Definition at line 40 of file smc9000.h.

Function Documentation

◆ FILE_LICENCE()

FILE_LICENCE ( GPL_ANY  )