<!doctype html public
"-//w3c//dtd html 4.0 transitional//en">
<meta http-equiv=
"Content-Type" content=
"text/html; charset=iso-8859-1">
<meta http-equiv=
"CONTENT-TYPE" content=
"text/html; charset=iso-8859-1">
<meta name=
"GENERATOR" content=
"Mozilla/4.79C-CCK-MCD [en] (X11; U; SunOS 5.8 sun4u) [Netscape]">
<meta name=
"CREATED" content=
"20031207;17503500">
<meta name=
"CHANGED" content=
"20031207;18493300">
<title>SPARC Architectural Model: Device and Utility API
</title>
<body bgcolor=
"#FFFFFF" LANG=
"en-US">
mmi_interrupt_packet, mmi_interrupt_vector
<ul>mmi_interrupt_packet - Send a interrupt packet to a cpu
<br>mmi_interrupt_vector - Send a interrupt vector to a cpu
<ul><font color=
"#0000FF">#include
"mmi.h"</font>
<p>int mmi_interrupt_packet (cpu_t *dst_cpu, void *src, int src_iscpu, uint64_t *idata);
<br>int mmi_interrupt_vector (cpu_t *dst_cpu, void *src, int src_iscpu, uint32_t vnum, int traptype);
<i>mmi_interrupt_packet
</i> sends a sun4u type interrupt packet to the cpu pointed to by
<i>dst_cpu
</i>.
<i>src
</i> is a pointer to the module instance generating the interrupt,
<i>src_iscpu
</i>
says if the source is a cpu instance, and
<i>idata
</i> is the interrupt packet and needs to be
a pointer to an array of
8 64-bit unsigned integers.
<p><i>mmi_interrupt_vector
</i> sends a Niagara type interrupt to the cpu pointed to by
<i>dst_cpu
</i>.
<i>src
</i> is a pointer to the module instance generating the interrupt,
<i>src_iscpu
</i>
says if the source is a cpu instance,
<i>vnum
</i> is the interrupt vector and
<i>traptype
</i> is a hint
on the type of trap the cpu needs to take on receiving the interrupt (typically
0x60 or
0x70).
<ul>Return
0 when successful and -
1 when there is an error.
</ul>
<ul>EINVALID:
<i>dst_cpu
</i> pointer is invalid.
</ul>
<ul><a href=
"intro.html">intro.html
</a></ul>