58
STP2002QFP
Sun Microelectronics
Fast Ethernet, Parallel Port, SCSI (FEPS) - STP2002QFP
PROGRAMMING MODEL 7

7.1 Introduction

Refer to the FEPS application note (STB0106) for programming notes and a
complete address map for the registers for all interfaces.

7.2 Parallel Port Channel Registers

7.2.1 Control/Status Register

Table 18: Control/Status Register Address
Register Physical Address Access Size
Control/Status register (P_CSR) 0xC80_0000 4 bytes
Table 19: Control/Status Register Definition
Field Bits Description Type
P_INT_PEND 0 Set when a PP DMA or PP control interrupt is pending or whenP_TC is set
and P_TCI_DIS is not set.
R
P_ERR_PEND 1 Set when an interrupt is pending due to an SBus error condition. R
P_DRAINING 3:2 Both bits set when the P_FIFO is draining to memory,otherwise both bits are
0.
R
P_INT_EN 4 When set, enablesSB_P_IRQ to become active when either P_INT_PEND or
P_ERR_PEND is set.
R/W
P_INVALIDATE 5 When set, invalidates the P_FIFO. Resets itself. Reads as 0. W
P_SLAVE_ERR 6 Set on slave access size error to a PP register. Reset by P_RESET,
P_INVALIDATE, or writing to 1.
R/W
P_RESET 7 When set, acts as a hardware reset to the parallel port only. R/W
P_WRITE 8 DMA direction. 1 = to memory; 0 = from memory R
P_EN_DMA 9 When set, enables DMA transfers to/from the PP. R/W
12:10
P_EN_CNT 13 When set, enables the PP byte counter to be decremented R/W
P_TC 14 Terminal count. Set when byte count expires. Reset on write of 1 if
P_EN_NEXT=1.
R/W
REV_MIN [2:0] 17:15 FEPS minor revision number
P_BURST_SIZE 19:18 Defines sizes of SBus read and write bursts for PP transfers. R/W
P_DIAG 20 When set, disables draining and resetting of P_FIFO on loadingof P_ADDR
register.
R/W
22:21