|
@@ -185,3 +185,172 @@ struct uart_pram {
|
|
|
|
|
|
|
|
|
/*****************************************************************
|
|
|
+ BISYNC parameter RAM
|
|
|
+*****************************************************************/
|
|
|
+
|
|
|
+struct bisync_pram {
|
|
|
+ /*
|
|
|
+ * SCC parameter RAM
|
|
|
+ */
|
|
|
+ unsigned short rbase; /* RX BD base address */
|
|
|
+ unsigned short tbase; /* TX BD base address */
|
|
|
+ unsigned char rfcr; /* Rx function code */
|
|
|
+ unsigned char tfcr; /* Tx function code */
|
|
|
+ unsigned short mrblr; /* Rx buffer length */
|
|
|
+ unsigned long rstate; /* Rx internal state */
|
|
|
+ unsigned long rptr; /* Rx internal data pointer */
|
|
|
+ unsigned short rbptr; /* rb BD Pointer */
|
|
|
+ unsigned short rcount; /* Rx internal byte count */
|
|
|
+ unsigned long rtemp; /* Rx temp */
|
|
|
+ unsigned long tstate; /* Tx internal state */
|
|
|
+ unsigned long tptr; /* Tx internal data pointer */
|
|
|
+ unsigned short tbptr; /* Tx BD pointer */
|
|
|
+ unsigned short tcount; /* Tx byte count */
|
|
|
+ unsigned long ttemp; /* Tx temp */
|
|
|
+ unsigned long rcrc; /* temp receive CRC */
|
|
|
+ unsigned long tcrc; /* temp transmit CRC */
|
|
|
+
|
|
|
+ /*
|
|
|
+ * BISYNC specific parameter RAM
|
|
|
+ */
|
|
|
+ unsigned char RESERVED1[4]; /* Reserved area */
|
|
|
+ unsigned long crcc; /* CRC Constant Temp Value */
|
|
|
+ unsigned short prcrc; /* Preset Receiver CRC-16/LRC */
|
|
|
+ unsigned short ptcrc; /* Preset Transmitter CRC-16/LRC */
|
|
|
+ unsigned short parec; /* Receive Parity Error Counter */
|
|
|
+ unsigned short bsync; /* BISYNC SYNC Character */
|
|
|
+ unsigned short bdle; /* BISYNC DLE Character */
|
|
|
+ unsigned short cc[8]; /* Rx control characters */
|
|
|
+ unsigned short rccm; /* Receive Control Character Mask */
|
|
|
+};
|
|
|
+
|
|
|
+/*****************************************************************
|
|
|
+ IOM2 parameter RAM
|
|
|
+ (overlaid on tx bd[5] of SCC channel[2])
|
|
|
+*****************************************************************/
|
|
|
+struct iom2_pram {
|
|
|
+ unsigned short ci_data; /* ci data */
|
|
|
+ unsigned short monitor_data; /* monitor data */
|
|
|
+ unsigned short tstate; /* transmitter state */
|
|
|
+ unsigned short rstate; /* receiver state */
|
|
|
+};
|
|
|
+
|
|
|
+/*****************************************************************
|
|
|
+ SPI/SMC parameter RAM
|
|
|
+ (overlaid on tx bd[6,7] of SCC channel[2])
|
|
|
+*****************************************************************/
|
|
|
+
|
|
|
+#define SPI_R 0x8000 /* Ready bit in BD */
|
|
|
+
|
|
|
+struct spi_pram {
|
|
|
+ unsigned short rbase; /* Rx BD Base Address */
|
|
|
+ unsigned short tbase; /* Tx BD Base Address */
|
|
|
+ unsigned char rfcr; /* Rx function code */
|
|
|
+ unsigned char tfcr; /* Tx function code */
|
|
|
+ unsigned short mrblr; /* Rx buffer length */
|
|
|
+ unsigned long rstate; /* Rx internal state */
|
|
|
+ unsigned long rptr; /* Rx internal data pointer */
|
|
|
+ unsigned short rbptr; /* rb BD Pointer */
|
|
|
+ unsigned short rcount; /* Rx internal byte count */
|
|
|
+ unsigned long rtemp; /* Rx temp */
|
|
|
+ unsigned long tstate; /* Tx internal state */
|
|
|
+ unsigned long tptr; /* Tx internal data pointer */
|
|
|
+ unsigned short tbptr; /* Tx BD pointer */
|
|
|
+ unsigned short tcount; /* Tx byte count */
|
|
|
+ unsigned long ttemp; /* Tx temp */
|
|
|
+};
|
|
|
+
|
|
|
+struct smc_uart_pram {
|
|
|
+ unsigned short rbase; /* Rx BD Base Address */
|
|
|
+ unsigned short tbase; /* Tx BD Base Address */
|
|
|
+ unsigned char rfcr; /* Rx function code */
|
|
|
+ unsigned char tfcr; /* Tx function code */
|
|
|
+ unsigned short mrblr; /* Rx buffer length */
|
|
|
+ unsigned long rstate; /* Rx internal state */
|
|
|
+ unsigned long rptr; /* Rx internal data pointer */
|
|
|
+ unsigned short rbptr; /* rb BD Pointer */
|
|
|
+ unsigned short rcount; /* Rx internal byte count */
|
|
|
+ unsigned long rtemp; /* Rx temp */
|
|
|
+ unsigned long tstate; /* Tx internal state */
|
|
|
+ unsigned long tptr; /* Tx internal data pointer */
|
|
|
+ unsigned short tbptr; /* Tx BD pointer */
|
|
|
+ unsigned short tcount; /* Tx byte count */
|
|
|
+ unsigned long ttemp; /* Tx temp */
|
|
|
+ unsigned short max_idl; /* Maximum IDLE Characters */
|
|
|
+ unsigned short idlc; /* Temporary IDLE Counter */
|
|
|
+ unsigned short brkln; /* Last Rx Break Length */
|
|
|
+ unsigned short brkec; /* Rx Break Condition Counter */
|
|
|
+ unsigned short brkcr; /* Break Count Register (Tx) */
|
|
|
+ unsigned short r_mask; /* Temporary bit mask */
|
|
|
+};
|
|
|
+
|
|
|
+struct smc_trnsp_pram {
|
|
|
+ unsigned short rbase; /* rx BD Base Address */
|
|
|
+ unsigned short tbase; /* Tx BD Base Address */
|
|
|
+ unsigned char rfcr; /* Rx function code */
|
|
|
+ unsigned char tfcr; /* Tx function code */
|
|
|
+ unsigned short mrblr; /* Rx buffer length */
|
|
|
+ unsigned long rstate; /* Rx internal state */
|
|
|
+ unsigned long rptr; /* Rx internal data pointer */
|
|
|
+ unsigned short rbptr; /* rb BD Pointer */
|
|
|
+ unsigned short rcount; /* Rx internal byte count */
|
|
|
+ unsigned long rtemp; /* Rx temp */
|
|
|
+ unsigned long tstate; /* Tx internal state */
|
|
|
+ unsigned long tptr; /* Tx internal data pointer */
|
|
|
+ unsigned short tbptr; /* Tx BD pointer */
|
|
|
+ unsigned short tcount; /* Tx byte count */
|
|
|
+ unsigned long ttemp; /* Tx temp */
|
|
|
+ unsigned short reserved[5]; /* Reserved */
|
|
|
+};
|
|
|
+
|
|
|
+struct idma_pram {
|
|
|
+ unsigned short ibase; /* IDMA BD Base Address */
|
|
|
+ unsigned short ibptr; /* IDMA buffer descriptor pointer */
|
|
|
+ unsigned long istate; /* IDMA internal state */
|
|
|
+ unsigned long itemp; /* IDMA temp */
|
|
|
+};
|
|
|
+
|
|
|
+struct ethernet_pram {
|
|
|
+ /*
|
|
|
+ * SCC parameter RAM
|
|
|
+ */
|
|
|
+ unsigned short rbase; /* RX BD base address */
|
|
|
+ unsigned short tbase; /* TX BD base address */
|
|
|
+ unsigned char rfcr; /* Rx function code */
|
|
|
+ unsigned char tfcr; /* Tx function code */
|
|
|
+ unsigned short mrblr; /* Rx buffer length */
|
|
|
+ unsigned long rstate; /* Rx internal state */
|
|
|
+ unsigned long rptr; /* Rx internal data pointer */
|
|
|
+ unsigned short rbptr; /* rb BD Pointer */
|
|
|
+ unsigned short rcount; /* Rx internal byte count */
|
|
|
+ unsigned long rtemp; /* Rx temp */
|
|
|
+ unsigned long tstate; /* Tx internal state */
|
|
|
+ unsigned long tptr; /* Tx internal data pointer */
|
|
|
+ unsigned short tbptr; /* Tx BD pointer */
|
|
|
+ unsigned short tcount; /* Tx byte count */
|
|
|
+ unsigned long ttemp; /* Tx temp */
|
|
|
+ unsigned long rcrc; /* temp receive CRC */
|
|
|
+ unsigned long tcrc; /* temp transmit CRC */
|
|
|
+
|
|
|
+ /*
|
|
|
+ * ETHERNET specific parameter RAM
|
|
|
+ */
|
|
|
+ unsigned long c_pres; /* preset CRC */
|
|
|
+ unsigned long c_mask; /* constant mask for CRC */
|
|
|
+ unsigned long crcec; /* CRC error counter */
|
|
|
+ unsigned long alec; /* alighnment error counter */
|
|
|
+ unsigned long disfc; /* discard frame counter */
|
|
|
+ unsigned short pads; /* short frame PAD characters */
|
|
|
+ unsigned short ret_lim; /* retry limit threshold */
|
|
|
+ unsigned short ret_cnt; /* retry limit counter */
|
|
|
+ unsigned short mflr; /* maximum frame length reg */
|
|
|
+ unsigned short minflr; /* minimum frame length reg */
|
|
|
+ unsigned short maxd1; /* maximum DMA1 length reg */
|
|
|
+ unsigned short maxd2; /* maximum DMA2 length reg */
|
|
|
+ unsigned short maxd; /* rx max DMA */
|
|
|
+ unsigned short dma_cnt; /* rx dma counter */
|
|
|
+ unsigned short max_b; /* max bd byte count */
|
|
|
+ unsigned short gaddr1; /* group address filter 1 */
|
|
|
+ unsigned short gaddr2; /* group address filter 2 */
|
|
|
+ unsigned short gaddr3; /* group address filter 3 */
|
|
|
+ unsigned short gaddr4; /* group address filter 4 */
|