
S5335 – PCI Bus Controller, 3.3V
Revision 5.01 – November 30, 2005
Data Sheet
AMCC Confidential and Proprietary
DS1657 137
The Add-On General Control/Status (AGCSTS) Add-
On Operation Register allows an Add-On CPU to mon-
itor FIFO activity and control FIFO operation. Reset
controls allow the PCI to Add-On FIFO and Add-On to
PCI FIFO flags to be reset (individually). Status bits
indicate if the PCI to Add-On FIFO is empty, has four
or more open spaces, or is full. Status bits also indi-
cate if the Add-On to PCI is empty, has four or more
full spaces or is full. FIFO bus mastering status may
be monitored through this register, but all bus master
configuration is through the MCSR PCI Operation
Register.
PCI Initiated FIFO Bus Mastering Setup
For PCI initiated bus mastering, the PCI host sets up
the S5335 to perform bus master transfers. The follow-
ing tasks must be completed to setup FIFO bus
mastering:
1. Define interrupt capabilities. The PCI to Add-On
and/or Add-On to PCI FIFO can generate a PCI
interrupt to the host when the transfer count
reaches zero.
2. Reset FIFO flags. This may not be necessary, but
if the state of the FIFO flags is not known, they
should be initialized.
3. Define FIFO management scheme. These bits
define what FIFO condition must exist for the PCI
bus request (REQ#) to be asserted by the S5335.
4. Define PCI to Add-On and Add-On to PCI FIFO
priority. These bits determine which FIFO has pri-
ority if both meet the defined condition to request
the PCI bus. If these bits are the same, priority
alternates, with read accesses occurring first.
5. Define
These registers are written with the first address
that is to be accessed by the S5335. These
address registers are updated after each access
to indicate the next address to be accessed.
Transfers must start on DWORD boundaries.
transfer
source/destination
address.
6. Define transfer byte counts. These registers are
written with the number of bytes to be transferred.
The transfer count does not have to be a multiple
of four bytes. These registers are updated after
each transfer to reflect the number of bytes
remaining to be transferred.
INTCSR
Bit 15
Enable Interrupt on read transfer
count equal zero
INTCSR
Bit 14
Enable Interrupt on write transfer
count equal zero
MCSR
Bit 26
Reset Add-On to PCI FIFO flags
MCSR
Bit 25
Reset PCI to Add-On FIFO flags
MCSR
Bit 13
PCI to Add-On FIFO management
scheme
MCSR
Bit 9
Add-On to PCI FIFO management
scheme
MCSR
Bit 12
Read vs. write priority
MCSR
Bit 8
Write vs. read priority
MWAR
All
Bus master write address
MRAR
All
Bus master read address
MWTC
All
Write transfer byte count
MRTC
All
Read transfer byte count