mirror of
https://github.com/zeldaret/mm.git
synced 2026-05-23 15:01:32 -04:00
4fa13e4132
* Delete unused headers * Move PR and io to ultra64 * move headers to ultra64 * more cleanups * more reorganizing * i think that should be all * format * ifdef guards cleanup * Add IO_READ and IO_WRITE macros for future use * warnings * review Co-authored-by: Tharo <17233964+Thar0@users.noreply.github.com> * warnings again * warn * ifdef guards * fix merge * fix merge * fix merge * bss * padutils.h * bss * bss * bss * fix merge * bss * bss * bss * fix merge * fixes * fixes * bss * bss * fix merge * fix * fix * fix includepaths * fix paths * bss * fix * ultra64/ -> PR/ * header guards * fix ehader guards * fix * fix++ * format * bss is borken * prevent 2 * :despair: * bss * rename assert to dbg_hungup * fix * a * fix * bss * fix * bss * bss --------- Co-authored-by: Tharo <17233964+Thar0@users.noreply.github.com>
99 lines
2.9 KiB
C
99 lines
2.9 KiB
C
#ifndef PR_MBI_H
|
|
#define PR_MBI_H
|
|
|
|
/**************************************************************************
|
|
* *
|
|
* Copyright (C) 1994, Silicon Graphics, Inc. *
|
|
* *
|
|
* These coded instructions, statements, and computer programs contain *
|
|
* unpublished proprietary information of Silicon Graphics, Inc., and *
|
|
* are protected by Federal copyright law. They may not be disclosed *
|
|
* to third parties or copied or duplicated in any form, in whole or *
|
|
* in part, without the prior written consent of Silicon Graphics, Inc. *
|
|
* *
|
|
**************************************************************************/
|
|
|
|
/**************************************************************************
|
|
*
|
|
* $Revision: 1.136 $
|
|
* $Date: 1999/01/05 13:04:00 $
|
|
* $Source: /hosts/gate3/exdisk2/cvs/N64OS/Master/cvsmdev2/PR/include/mbi.h,v $
|
|
*
|
|
**************************************************************************/
|
|
|
|
/*
|
|
* Header file for the Media Binary Interface
|
|
*
|
|
* NOTE: This file is included by the RSP microcode, so any C-specific
|
|
* constructs must be bracketed by #ifdef _LANGUAGE_C
|
|
*
|
|
*/
|
|
|
|
|
|
/*
|
|
* the SHIFT macros are used to build display list commands, inserting
|
|
* bit-fields into a 32-bit word. They take a value, a shift amount,
|
|
* and a width.
|
|
*
|
|
* For the left shift, the lower bits of the value are masked,
|
|
* then shifted left.
|
|
*
|
|
* For the right shift, the value is shifted right, then the lower bits
|
|
* are masked.
|
|
*
|
|
* (NOTE: _SHIFTL(v, 0, 32) won't work, just use an assignment)
|
|
*
|
|
*/
|
|
#define _SHIFTL(v, s, w) \
|
|
((unsigned int) (((unsigned int)(v) & ((0x01 << (w)) - 1)) << (s)))
|
|
#define _SHIFTR(v, s, w) \
|
|
((unsigned int)(((unsigned int)(v) >> (s)) & ((0x01 << (w)) - 1)))
|
|
|
|
#define G_ON (1)
|
|
#define G_OFF (0)
|
|
|
|
/**************************************************************************
|
|
*
|
|
* Graphics Binary Interface
|
|
*
|
|
**************************************************************************/
|
|
|
|
#include "PR/gbi.h"
|
|
|
|
/**************************************************************************
|
|
*
|
|
* Audio Binary Interface
|
|
*
|
|
**************************************************************************/
|
|
|
|
#include "PR/abi.h"
|
|
|
|
/**************************************************************************
|
|
*
|
|
* Task list
|
|
*
|
|
**************************************************************************/
|
|
|
|
#define M_GFXTASK 1
|
|
#define M_AUDTASK 2
|
|
#define M_VIDTASK 3
|
|
#define M_HVQTASK 6
|
|
#define M_HVQMTASK 7
|
|
|
|
/**************************************************************************
|
|
*
|
|
* Segment macros and definitions
|
|
*
|
|
**************************************************************************/
|
|
|
|
#define NUM_SEGMENTS (16)
|
|
#define SEGMENT_OFFSET(a) ((unsigned int)(a) & 0x00FFFFFF)
|
|
#define SEGMENT_NUMBER(a) (((unsigned int)(a) << 4) >> 28)
|
|
#define SEGMENT_ADDR(num, off) (((num) << 24) + (off))
|
|
|
|
#ifndef NULL
|
|
#define NULL ((void*)0)
|
|
#endif
|
|
|
|
#endif /* !_MBI_H_ */
|