# MI_GetWramReservation*

## Syntax

  `#include <twl/mi.h>`
  `MIWramProc MI_GetWramReservation( MIWramPos wram, int num )`
  `(define)`
  `#define MI_GetWramReservation_A( num )`
  `#define MI_GetWramReservation_B( num )`
  `#define MI_GetWramReservation_C( num )`

## Arguments

wram | WRAM to get information about.
num | Slot number of the WRAM to get information about.

## Return Values

Returns which processor the specified WRAM slot has been reserved for.
Returns one of the following: `MI_WRAM_ARM7`, `MI_WRAM_ARM9`, or `MI_WRAM_DSP`. However, if the specified slot is not reserved for any processor, `MI_WRAM_FREE` is returned.

## Description

Gets which processor the specified WRAM slot is reserved for.

The wram argument is of type `MIWramPos` and specifies which WRAM's information to get.

The num argument is the slot number of the target WRAM. For WRAM-A it should be 0-3, and for WRAM-B and WRAM-C, it should be 0-7.

`MI_GetWramReservation_A` is the `#define` directive of `MI_GetWramReservation( MI_WRAM_A, ... )`.
`MI_GetWramReservation_B` is the `#define` directive of `MI_GetWramReservation( MI_WRAM_B, ... )`.
`MI_GetWramReservation_C` is the `#define` directive of `MI_GetWramReservation( MI_WRAM_C, ... )`.

## Internal Operation

Accesses I/O registers MBK6 through MBK8.

## See Also

Overview: Work RAM
MI-Related Constants

## Revision History

2007/08/22 Initial version.

CONFIDENTIAL