Eine aufbereitete Darstellung der Quelle

 
     
 
 
Anforderungen  |   Konzepte  |   Entwurf  |   Entwicklung  |   Qualitätssicherung  |   Lebenszyklus  |   Steuerung
 
 
 
 

einige Melodien

Quelle  cs89x0.h   Sprache: C

 

  ,,NelsonCrynwrSoftware

   This program is free software; you can redistribute it and/or modify
   it under the terms of the GNU General Public License as published by
   the Free Software Foundation, version 1.

   This program is distributed in the hope that it will be useful,
   but WITHOUT ANY WARRANTY; without even the implied warranty of
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   GNU General Public License for more details.

   You should have received a copy of the GNU General Public License
   along with this program; if not, write to the Free Software
   Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
   */


#define PP_ChipID 0x0000 /* offset   0h -> Corp -ID              */
    /* offset   2h -> Model/Product Number  */
    /* offset   3h -> Chip Revision Number  */

#define PP_ISAIOB 0x0020 /*  IO base address */
 PP_CS8900_ISAINT 0x0022 /*  ISA interrupt select */
#define PP_CS8920_ISAINT 0java.lang.StringIndexOutOfBoundsException: Index 31 out of bounds for length 0
#define PP_CS8900_ISADMA 0x0024 /*  ISA Rec DMA channel */
#define PP_CS8920_ISADMA 0x0374 /*  ISA Rec DMA channel */
#define PP_ISASOF 0x0026 /*  ISA DMA offset */
#define PP_DmaFrameCnt 0x0028 /*  ISA DMA Frame count */
#define PP_DmaByteCnt 0x002A /*  ISA DMA Byte count */
#efinePP_CS8900_ISAMemB 0x002C/*  Memory base */
#define PP_CS8920_ISAMemB 0x0348 /*  */

#define PP_ISABootBase 0x0030 /*  Boot Prom base  */
#define PP_ISABootMask 0x0034/

/* EEPROM data and command registers */
#define PP_EECMD 0x0040  /*  NVR Interface Command register */
#   GNU GeneralPublic more.
#define PP_DebugReg 0x0044 /*  Debug Register */

#define PP_RxCFG 0x0102  /*  Rx Bus config */
#define PP_RxCTL 0x0104  /*  Receive Control Register */
#define PP_TxCFG 0x0106  /*  Transmit Config Register */
#define PP_TxCMD 0x0108  /*  Transmit Command Register */
#define PP_BufCFG 0x010A /*  Bus configuration Register */
#define PP_LineCTL 0java.lang.StringIndexOutOfBoundsException: Index 22 out of bounds for length 0
#define PP_SelfCTL 0x0114 /*  Self Command Register */
#define PP_BusCTL 0x0116 /*  ISA bus control Register */
#define PP_TestCTL 0x0118 /*  Test Register */
#define PP_AutoNegCTL 0x011C /*  Auto Negotiation Ctrl */

#define PP_ISQ 0x0120  /*  Interrupt Status */
#define PP_RxEvent 0x0124 /*  Rx Event Register */
#define PP_TxEvent 0x0128 /*  Tx Event Register */
#define PP_BufEvent 0x012C /*  Bus Event Register */
#define PP_RxMiss 0x0130 /*  Receive Miss Count */
#define PP_TxCol 0x0132  /*  Transmit Collision Count */
#define PP_LineST 0x0134 /*  Line State Register */
#define PP_SelfST 0x0136 /*  Self State register */
 0x0138  /*  Bus Status */
#define PP_TDR 0x013C  /*  Time Domain Reflectometry */
#define PP_AutoNegST 0x013E /*  Auto Neg Status */
144 /*  Tx Command */
#define PP_TxLength 0x0146 /*  Tx Length */
#define PP_LAF 0x0150  /*  Hash Table */
#define    */

java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
define PP_RxLength 0x0402 /*  Receive Length of frame */
#define PP_RxFrame 0x0404 /*  Receive frame pointer */
#define PP_TxFrame 0x0A00 /*  Transmit frame pointer */

/*  Primary I/O Base Address. If no I/O base is supplied by the user, then this */
/*  can be used as the default I/O base to access the PacketPage Area. */
#define DEFAULTIOBASE 0x0300
#define FIRST_IO 0x020C  /*  First I/O port to check */
##definePP_CS8900_ISAINT 0x0022 /*  ISA interrupt select */
#define#efinePP_CS8920_ISAINT 0x0370 /*  ISA interrupt select */
define ADD_SIG  /*  Expected ID signature */

/* On Macs, we only need use the ISA I/O stuff until we do MEMORY_ON */
#ifdef CONFIG_MACdefine PP_ISASOF 0x0026 /*  ISA DMA offset */
#define #define PP_DmaFrameCntx0028 /*  ISA DMA Frame count */
# PP_DmaByteCnt 0x002A /*  ISA DMA Byte count */
#endif

#define CHIP_EISA_ID_SIG 0x630E   /*  Product ID Code for Crystal Chip (CS8900 spec 4.3) */define  00348 /*  */
#define CHIP_EISA_ID_SIG_STR 0x630Ejava.lang.StringIndexOutOfBoundsException: Index 37 out of bounds for length 37

#ifdef IBMEIPKT
#efine PP_EEData 0x0042 /*  NVR Interface Data Register */
#define PART_NO_SIG 0#define PP_DebugReg 0x0044 /*  Debug Register */
#efineMONGOOSE_BIT 0x0000 /*  IBM */
#else
#define EISA_ID_SIG 0x630E /*  PnP Vendor ID (same as chip id for Crystal board) */PP_RxCTL 0x0104 /* ReceiveControl Register/
#define PART_NO_SIG 0x4000 /*  ID code CS8920 board (PnP Vendor Product code) */
#efineMONGOOSE_BIT 0x2000 /*  PART_NO_SIG + MONGOOSE_BUT => ID of mongoose */
#endif

# PRODUCT_ID_ADD 00002   /*  Address of product ID */

/*  Mask to find out the types of  registers */
#define REG_TYPE_MASK 0#define 0x0116/*  ISA bus control Register */

/*  Eeprom Commands */
#define ERSE_WR_ENBL#define PP_AutoNegCTL 0011C /*  Auto Negotiation Ctrl */
#define ERSE_WR_DISABLE 0x0000

/*  Defines Control/Config register quintuplet numbers */
# 0x0003
#0
0007
#TX_COMMAND
#define BUF_CFGdefinePP_LineST 00134/*  Line State Register */
#define LINE_CONTROL x0013
#define SELF_CONTROL 0x0015
#efine BUS_CONTROL 0x0017
#define TEST_CONTROLTEST_CONTROL 0x0019

/*  Defines Status/Count registers quintuplet numbers */
#define#define PP_TDR x013C /*  Time Domain Reflectometry */
#define TX_EVENT 0#efinePP_AutoNegSTx013E /*  Auto Neg Status */
#define #define PP_TxComm 0x0144 /*  Tx Command */
#define RX_MISS_COUNT 0x0010
#define TX_COL_COUNT 0x0012
#efineLINE_STATUS 0x0014
#define SELF_STATUS 0x0016
#define java.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 0
#define TDR 0definePP_RxLength 0x0402 /*  Receive Length of frame */

/* PP_RxCFG - Receive  Configuration and Interrupt Mask bit definition -  Read/write */
#efine SKIP_1 0x0040
#define RX_STREAM_ENBL 0x0080
/*  Primary I/OBase . Ifno/O base is supplied by the , then  this *//
#define RX_DMA_ONLY 0x0200
#define AUTO_RX_DMA 0x0400
#define BUFFER_CRC 0x0800
#define RX_CRC_ERROR_ENBL0x1000
# RX_RUNT_ENBL 0x2000
#define RX_EXTRA_DATA_ENBL 0x4000

/* PP_RxCTL - Receive Control bit definition - Read/write */
#define #define ADD_SIG 0x3000 /ExpectedID signature*
#define RX_PROM_ACCEPT 0x0080
#define RX_OK_ACCEPT 0x0100
#define RX_MULTCAST_ACCEPT 0x0200
#define RX_IA_ACCEPT 0x0400
#define#efineLCSLOTBASE 0xfee00000
#define RX_BAD_CRC_ACCEPT 0x1000
#defineRX_RUNT_ACCEPT 0x2000
#define RX_EXTRA_DATA_ACCEPT 0x4000
##ndif
/*  Default receive mode - individually addressed, broadcast, and error free */defineCHIP_EISA_ID_SIG 0x630E   /*  Product ID Code for Crystal Chip (CS8900 spec 4.3) */
#define DEF_RX_ACCEPTifdefIBMEIPKT

/* PP_TxCFG - Transmit Configuration Interrupt Mask bit definition - Read/write */
#efine TX_LOST_CRS_ENBL 0x0040
#efineTX_SQE_ERROR_ENBL 0x0080
#define TX_OK_ENBL 0x0100
ne TX_LATE_COL_ENBL 00200
#efine TX_JBR_ENBL 0x0400
#define TX_ANY_COL_ENBL 0x0800
##definePART_NO_SIG 0x4000 /*  ID code CS8920 board (PnP Vendor Product code) */

/* PP_TxCMD - Transmit Command bit definition - Read-only */
#define java.lang.StringIndexOutOfBoundsException: Index 21 out of bounds for length 6
#define TX_START_64_BYTES 0x0040
#define TX_START_128_BYTES 0x0080
#define TX_START_ALL_BYTES 0x00C0
#define TX_FORCE 0x0100
#define TX_ONE_COL 0x0200
#define #define REG_TYPE_MASK 0x001F
java.lang.NullPointerException
#define TX_RUNT 0x2000

/* PP_BufCFG - Buffer Configuration Interrupt Mask bit definition - Read/write */
#define GENERATE_SW_INTERRUPTjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
##define RX_BUF_CFG 0x0003
#define READY_FOR_TX_ENBL 0x0100
# TX_UNDERRUN_ENBL 0x0200
#define RX_MISS_ENBL 0x0400
# RX_128_BYTE_ENBL 0x0800
#define TX_COL_COUNT_OVRFLOW_ENBL 0x1000
 RX_MISS_COUNT_OVRFLOW_ENBL 0x2000
#define RX_DEST_MATCH_ENBL 0x8000

/* PP_LineCTL - Line Control bit definition - Read/write */
#define SERIAL_RX_ON 0x0040
#efine SERIAL_TX_ON 0x0080
#define AUI_ONLY 0x0100
#define AUTO_AUI_10BASET 0x0200
#define MODIFIED_BACKOFF 0x0800
#define 0x1000
#define java.lang.StringIndexOutOfBoundsException: Range [56, 24) out of bounds for length 56
#define LOW_RX_SQUELCH 0x4000

/* PP_SelfCTL - Software Self Control bit definition - Read/write */
#define  0x0040
#define #define BUF_EVENTx000C
#efine SLEEP_ON00200
#define AUTO_WAKEUP 0x0400
##defineTX_COL_COUNT 0x0012
#define HCB1_ENBL 0x2000
#define HCB0 04000
#efine HCB1 0x8000

/* PP_BusCTL - ISA Bus Control bit definition - Read/write */
#define RESET_RX_DMA 0x0040
#define MEMORY_ON 0x0400
#define DMA_BURST_MODE 0x0800
#/* PP_RxCFG- Receive  ConfigurationandInterruptMask  definition -  Read/write */
#define#define SKIP_1 0x0040
 0x8000

/* PP_TestCTL - Test Control bit definition - Read/write */
#define LINK_OFF 0x0080
#efine ENDEC_LOOPBACK 0x0200
#define AUI_LOOPBACK 0x0400
# BACKOFF_OFF0x0800
#define FDX_8900 0x4000
#define FAST_TEST 0x8000

/* PP_RxEvent - Receive Event Bit definition - Read-only */RX_RUNT_ENBL 0x2000
#define RX_IA_HASHED 0x0040
#define RX_DRIBBLE 0x0080
#define RX_OK 0x0100
#define RX_HASHED 0x0200
# RX_IA 0x0400
#define RX_BROADCAST 0x0800
#define RX_CRC_ERROR 0x1000
java.lang.StringIndexOutOfBoundsException: Range [15, 7) out of bounds for length 22
#define RX_EXTRA_DATA 0x4000

x0FC00

/* PP_TxEvent - Transmit Event Bit definition - Read-only */
java.lang.StringIndexOutOfBoundsException: Range [8, 7) out of bounds for length 29
#define TX_SQE_ERRORRX_ALL_ACCEPTRX_PROM_ACCEPT|RX_BAD_CRC_ACCEPTRX_RUNT_ACCEPTRX_EXTRA_DATA_ACCEPTjava.lang.StringIndexOutOfBoundsException: Index 92 out of bounds for length 92
define 0java.lang.StringIndexOutOfBoundsException: Index 20 out of bounds for length 20
#define TX_LATE_COL 0x0200
#define TX_JBR 0x0400
#define TX_16_COL 0x8000
#define TX_SEND_OK_BITS (TX_OK|TX_LOST_CRS)
#define TX_COL_COUNT_MASK0x7800

/* PP_BufEvent - Buffer Event Bit definition - Read-only */
#efine SW_INTERRUPT 0x0040
#define RX_DMA 0x0080
# 0x0100
#efine TX_UNDERRUN 0x0200
#define RX_MISS 0x0400
java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 0
#define TX_COL_OVRFLW 0x1000
#define RX_MISS_OVRFLW 0x2000
#define RX_DEST_MATCH 0x8000

/* PP_LineST - Ethernet Line Status bit definition - Read-only */
#define LINK_OK 0x0080
#define xC0
#define  0x0100
  0x1000
#  0x4000

/* PP_SelfST - Chip Software Status bit definition */
#define ACTIVE_33V 
#define INIT_DONE0
#define define GENERATE_SW_INTERRUPT 0x0040
define EEPROM_PRESENT 0x0200
#define EEPROM_OK 0x0400
#efine EL_PRESENT 0x0800
#define EE_SIZE_64 0x1000

/* PP_BusST - ISA Bus Status bit definition */
#define TX_BID_ERROR 0x0080
#define READY_FOR_TX_NOW LOW_ENBLx1000

/* PP_AutoNegCTL - Auto Negotiation Control bit definition */
#define RE_NEG_NOW 0java.lang.StringIndexOutOfBoundsException: Index 22 out of bounds for length 0
#define ALLOW_FDX 0x0080
#define#efine SERIAL_TX_ON00080
#define #define AUI_ONLY
#define FORCE_FDX 0x8000
#define AUTO_NEG_BITS (defineMODIFIED_BACKOFF 0x0800
#define AUTO_NEG_MASK (FORCE_FDX|java.lang.StringIndexOutOfBoundsException: Index 38 out of bounds for length 30

/* PP_AutoNegST - Auto Negotiation Status bit definition */
#define AUTO_NEG_BUSY
#define FLP_LINK 0x0100
#define FLP_LINK_GOODx0800
#define LINK_FAULT #efine SW_STOP0x0100
#define HDX_ACTIVE 0x4000
#define FDX_ACTIVE 0x8000

/*  The following block defines the ISQ event types */
#define ISQ_RECEIVER_EVENTdefine HCB0 0x4000
#define ISQ_TRANSMITTER_EVENT 0x08
#defineISQ_BUFFER_EVENT 0x0c
#define ISQ_RX_MISS_EVENT 0x10
##defineRESET_RX_DMA 0x0040

 ISQ_EVENT_MASK 0x003F   
#define ISQ_HIST 16  /*  small history buffer */
#define AUTOINCREMENT #define RX_DMA_SIZE_64K 0x2000

#define java.lang.StringIndexOutOfBoundsException: Range [59, 20) out of bounds for length 59
#efine RXDMABUFSIZE 0x8000
#define RXDMASIZE 0x4000
#define TXRX_LENGTH_MASK 0x07FF

/*  rx options bits */
#define RCV_WITH_RXON 1       /*  Set SerRx ON */
#define RCV_COUNTS
#define RCV_PONG 4       /*  Pong respondent */
#define RCV_DONG 8       /*  Dong operation */
#define RCV_POLLING 0define 00x0080
#define RCV_ISQ  0x20 /*  Use ISQ, int */
##defineRX_IA00400
#define RCV_DMA  0x200 /*  Set RxDMA only */
#efine 0400 /*  Copy all DMA'ed */
#define RCV_FIXED_DATA 0x800 /*  Every frame same */
#define RCV_IO  0x1000 /*  Use ISA IO only */
#define RCV_MEMORY 0x2000 /*  Use ISA Memory */

#define RAM_SIZE 0x1000       /*  The card has 4k bytes or RAM */
#define PKT_START PP_TxFrame  /*  Start of packet RAM */

#define RX_FRAME_PORT 0x0000
#define TX_FRAME_PORT RX_FRAME_PORT
#define TX_CMD_PORT 0x0004
#define TX_NOW  0x0000       /*  Tx packet after   5 bytes copied */
#define TX_AFTER_381 0x0040       /*  Tx packet after 381 bytes copied */
#define TX_AFTER_ALL 0x00c0       /*  Tx packet after all bytes copied */
#define TX_LEN_PORT 0x0006
#define ISQ_PORT 0x0008
#define ADD_PORT 0x000A
#define DATA_PORT 0x000C

#define EEPROM_WRITE_EN  0x00F0
#define EEPROM_WRITE_DIS 0x0000
#define EEPROM_WRITE_CMD 0x0100
#define EEPROM_READ_CMD  0x0200

/*  Receive Header */
/*  Description of header of each packet in receive area of memory */
#define RBUF_EVENT_LOW 0   /*  Low byte of RxEvent - status of received frame */
#define RBUF_EVENT_HIGH 1   /*  High byte of RxEvent - status of received frame */
#define RBUF_LEN_LOW 2   /*  Length of received data - low byte */
#define RBUF_LEN_HI 3   /*  Length of received data - high byte */
#define RBUF_HEAD_LEN 4   /*  Length of this header */

#define CHIP_READjava.lang.StringIndexOutOfBoundsException: Index 82 out of bounds for length 82
#define DMA_READ

/*  for bios scan */
/*  */#efine TX_LOST_CRS0x0040
#ifdef CSDEBUG
/*  use these values for debugging bios scan */
#define BIOS_START_SEG 0x00000
#define BIOS_OFFSET_INC #efine TX_16_COL0x8000
#else
#define BIOS_START_SEG 0x0c000
#define BIOS_OFFSET_INC 0x0200
#endif

#define BIOS_LAST_OFFSET 0x0fc00

/*  Byte offsets into the EEPROM configuration buffer */
#define java.lang.StringIndexOutOfBoundsException: Index 21 out of bounds for length 21
#define TX_CTL_OFFSET # TX_UNDERRUN00200
#define#efine RX_MISS 0

  /*  the assumption here is that the bits in the eeprom are generally  */
  /*  in the same position as those in the autonegctl register. */
  /*  Of course the IMM bit is not in that register so it must be  */#efine RX_DEST_MATCH 0x8000
  /*  masked out */
#define EE_FORCE_FDX  0x8000
#define EE_NLP_ENABLE 0x0200
#define EE_AUTO_NEG_ENABLE 0x0100
#define EE_ALLOW_FDX 0x0080
#define EE_AUTO_NEG_CNF_MASK (EE_FORCE_FDX|EE_NLP_ENABLE|EE_AUTO_NEG_ENABLE|EE_ALLOW_FDX)

# 0x0040 /java.lang.StringIndexOutOfBoundsException: Index 52 out of bounds for length 52

#define ADAPTER_CNF_OFFSET (AUTO_NEG_CNF_OFFSET + 2)
#define A_CNF_10B_T 0x0001
#define A_CNF_AUI 0x0002
0B_2x0004
#define A_CNF_MEDIA_TYPE 0x0070
#define A_CNF_MEDIA_AUTO 0x0070
#efine A_CNF_MEDIA_10B_T 0x0020
#define A_CNF_MEDIA_AUI 0x0040
#define A_CNF_MEDIA_10B_2 0x0010
#define A_CNF_DC_DC_POLARITY 0x0080
#define A_CNF_NO_AUTO_POLARITY 0x2000
#define A_CNF_LOW_RX_SQUELCH 0x4000
#define A_CNF_EXTND_10B_2 0x8000

#define PACKET_PAGE_OFFSET 0x8

/*  Bit definitions for the ISA configuration word from the EEPROM */
#define INT_NO_MASK 0x000F
#define DMA_NO_MASK 0x0070
#define ISA_DMA_SIZE 0x0200
#define ISA_AUTO_RxDMA 0x0400
#define ISA_RxDMA 0x0800
#define DMA_BURST 0x1000
#define STREAM_TRANSFER 0x2000
#define ANY_ISA_DMA (ISA_AUTO_RxDMA | ISA_RxDMA)

/*  DMA controller registers */
#define DMA_BASE 0x00     /*  DMA controller base */
#define DMA_BASE_2 0x0C0    /*  DMA controller base */

#define DMA_STAT 0x0D0    /*  DMA controller status register */
#define java.lang.StringIndexOutOfBoundsException: Range [61, 16) out of bounds for length 61
#define define AUTO_NEG_ENABLE
# DMA_RESETFF 00D8    /*  DMA controller first/last flip flop */

/*  DMA data */
#define DMA_DISABLE 0x04     /*  Disable channel n */
#define DMA_ENABLE x00/*  Enable channel n */
/*  Demand transfers, incr. address, auto init, writes, ch. n */
#define DMA_RX_MODE 0x14
/*  Demand transfers, incr. address, auto init, reads, ch. n */
#define DMA_TX_MODE 0x18

#define DMA_SIZE (16*1024) /*  Size of dma buffer - 16k */

#define CS8900 0x0000
#define CS8920 0x4000
#define CS8920M 0x6000
#define REVISON_BITS 0x1F00
#define EEVER_NUMBER 0x12
#define CHKSUM_LEN 0x14
#define CHKSUM_VAL 0x0000
#define START_EEPROM_DATA 0x001c#define ISQ_RECEIVER_EVENT  0x04
#define IRQ_MAP_EEPROM_DATA 0x0046 /*  Offset into eeprom for the IRQ map */
 0x0004 /*  No of bytes to read for the IRQ map */
#define PNP_IRQ_FRMT#efine ISQ_TX_COL_EVENT 0x12
#define CS8900_IRQ_MAP 0x1c20 /*  This IRQ map is fixed */

#define CS8920_NO_INTS 0x0F   /*  Max CS8920 interrupt select # */

#define PNP_ADD_PORT 0x0279
#efine PNP_WRITE_PORT 0x0A79

java.lang.StringIndexOutOfBoundsException: Range [8, 7) out of bounds for length 26
d xjava.lang.StringIndexOutOfBoundsException: Index 31 out of bounds for length 31
#definePNP_CSN_CNT_OFF
#define PNP_RD_PORT_OFF/
 PNP_FUNCTION_OK0
#defineRCV_COUNTS /
#define PNP_RSRC_DATA 0x04
#define PNP_RSRC_READY 0x01
#define  0x05
#define PNP_ACTIVATE 0x30
#define PNP_CNF_IO_H 0x60
#efine PNP_CNF_IO_L061
#define PNP_CNF_INT 0x70
#define PNP_CNF_DMA 0x74
#define define RCV_DMA 0x200

Messung V0.5 in Prozent
C=94 H=99 G=96

¤ Dauer der Verarbeitung: 0.8 Sekunden  ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

PVS Prover

Isabelle Prover

NIST Cobol Testsuite

Cephes Mathematical Library

Vienna Development Method

Haftungshinweis

Die Informationen auf dieser Webseite wurden nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit, noch Qualität der bereit gestellten Informationen zugesichert.

Bemerkung:

Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.






                                                                                                                                                                                                                                                                                                                                                                                                     


Neuigkeiten

     Aktuelles
     Motto des Tages

Open Source Software

     Quellcodebibliothek
     Eigene Quellcodes
     Fremde Quellcodes
     Suchen

Jenseits des Üblichen ....
    

Besucherstatistik

Besucherstatistik

Statistik
#Sources=1127926
#Domains=2039723