14.06.2015 Views

Power ISA™ Version 2.03 - Power.org

Power ISA™ Version 2.03 - Power.org

Power ISA™ Version 2.03 - Power.org

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>Version</strong> <strong>2.03</strong><br />

Chapter 5. External Control [Category: External Control]<br />

The External Control category of facilities and instructions<br />

permits a program to communicate with a specialpurpose<br />

device. Two instructions are provided, both of<br />

which must be implemented if the facility is provided.<br />

<br />

<br />

External Control In Word Indexed (eciwx), which<br />

does the following:<br />

- Computes an effective address (EA) like most<br />

X-form instructions<br />

- Validates the EA as would be done for a load<br />

from that address<br />

- Translates the EA to a real address<br />

- Transmits the real address to the device<br />

- Accepts a word of data from the device and<br />

places it into a General Purpose Register<br />

External Control Out Word Indexed (ecowx),<br />

which does the following:<br />

- Computes an effective address (EA) like most<br />

X-form instructions<br />

- Validates the EA as would be done for a store<br />

to that address<br />

- Translates the EA to a real address<br />

- Transmits the real address and a word of data<br />

from a General Purpose Register to the<br />

device<br />

Permission to execute these instructions and identification<br />

of the target device are controlled by two fields,<br />

called the E bit and the RID field respectively. If attempt<br />

is made to execute either of these instructions when<br />

E=0 the system data storage error handler is invoked.<br />

The location of these fields is described in Book III.<br />

The storage access caused by eciwx and ecowx is<br />

performed as though the specified storage location is<br />

Caching Inhibited and Guarded, and is neither Write<br />

Through Required nor Memory Coherence Required.<br />

Interpretation of the real address transmitted by eciwx<br />

and ecowx and of the 32-bit value transmitted by<br />

ecowx is up to the target device, and is not specified by<br />

the <strong>Power</strong> ISA. See the System Architecture documentation<br />

for a given <strong>Power</strong> ISA system for details on how<br />

the External Control facility can be used with devices<br />

on that system.<br />

Example<br />

An example of a device designed to be used with the<br />

External Control facility might be a graphics adapter.<br />

The ecowx instruction might be used to send the<br />

device the translated real address of a buffer containing<br />

graphics data, and the word transmitted from the General<br />

Purpose Register might be control information that<br />

tells the adapter what operation to perform on the data<br />

in the buffer. The eciwx instruction might be used to<br />

load status information from the adapter.<br />

A device designed to be used with the External Control<br />

facility may also recognize events that indicate that the<br />

address translation being used by the processor has<br />

changed. In this case the operating system need not<br />

“pin” the area of storage identified by an eciwx or<br />

ecowx instruction (i.e., need not protect it from being<br />

paged out).<br />

Chapter 5. External Control [Category: External Control]<br />

373

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!