s5935qrc Applied Micro Circuits Corporation (AMCC), s5935qrc Datasheet - Page 129

no-image

s5935qrc

Manufacturer Part Number
s5935qrc
Description
Pci Product
Manufacturer
Applied Micro Circuits Corporation (AMCC)
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
S5935QRC
Manufacturer:
TECCOR
Quantity:
12 000
S5935 – PCI Product
writing the mailbox registers may access all mailbox
bytes by cycling through the Add-On byte enable
inputs. A similar solution applies to 16-bit Add-On
buses. This solution works for Add-Ons which always
use just 8-bit or just 16-bit accesses. If the MODE pin
is high, indicating a 16-bit Add-On interface, the previ-
ous solution may be modified for an 8-bit interface.
The difference is that ADR1 must be toggled after the
first two accesses to steer the S5935 internal data bus
to the upper 16-bits of the mailboxes.
CONFIGURATION
The PCI interface and the Add-On interface each have
four incoming mailboxes (IMBx or AIBMx) and four
outgoing mailboxes (OMBx or AOMBx) along with a
single mailbox status register (MBEF or AMBEF). Out-
going mailboxes are read/write, incoming mailboxes
and the mailbox status registers are read-only.
The following sections discuss the registers associ-
ated with the mailboxes and accesses required for
different modes of mailbox operation.
AMCC Confidential and Proprietary
Reading a PCI Incoming Mailbox:
Writing a PCI Outgoing Mailbox:
MBEF
OMBx
1. Check Mailbox Status. Read the mailbox status register to determine if any information has been passed from the Add-
2. Read Mailbox(es). Read the mailbox bytes which MBEF indicates are full. This automatically resets the status bits in
1. Check Mailbox Status. Read the mailbox status register to determine if information previously written to the mailbox has
2. Write Mailbox(es). Write to the outgoing mailbox byte(s).
On interface.
the MBEF and AMBEF registers.
been read by the Add-On interface. Writes to full mailbox bytes overwrite data currently in the mailbox (if not already
read by the Add-On interface). Repeat until the byte(s) to be written are empty.
Bits 15:0
Bits 31:0
MBEF
IMBx
If a bit is set, valid data is contained in the corresponding mailbox byte and has not been read by the
Add-On.
Mailbox data.
Bits 31:16
Bits
If a bit is set, valid data is contained in the corresponding mailbox
byte.
31:0 Mailbox data.
Mailbox Status
Every byte in each mailbox has a status bit in the Mail-
box Empty/Full Status Registers (MBEF and AMBEF).
Writing a particular byte into an outgoing mailbox sets
the corresponding status bit in both the MBEF and
AMBEF registers. A read of a ‘full’ byte in a mailbox
clears the status bit. The MBEF and AMBEF are read-
only. Status bits cannot cleared by writes to the status
registers.
The S5935 allows the mailbox status bits to be reset
through software. The Bus Master Control/Status
(MCSR) PCI Operation Register and the Add-On Gen-
eral Control/Status (AGCSTS) Add-On Operation
Register each have a bit to reset mailbox status. Writ-
ing a ‘1’ to Mailbox Flag Reset bit in the MCSR or the
AGCSTS register immediately clears all bits in the
both the MBEF and AMBEF registers. Writing a ‘0’ has
no effect. The Mailbox Flag Reset bit is write-only.
The flag bits should be monitored when transferring
data through the mailboxes. Checking the mailbox sta-
tus before performing an operation prevents data from
being lost or corrupted. The following sequences are
suggested for PCI mailbox operations using status
polling (interrupts disabled):
Revision 1.02 – June 27, 2006
Data Book
DS1527
129

Related parts for s5935qrc