Prepare for AmigaPPC.

This commit is contained in:
is 2000-05-25 19:10:04 +00:00
parent f4a3f5ea48
commit f0d88bea57
3 changed files with 14 additions and 3 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: grfabs_cc.c,v 1.19 1999/03/25 21:55:17 is Exp $ */
/* $NetBSD: grfabs_cc.c,v 1.20 2000/05/25 19:18:07 is Exp $ */
/*
* Copyright (c) 1994 Christian E. Hopps
@ -312,6 +312,9 @@ alloc_bitmap(width, height, depth, flags)
* n pages by less than another page, the user gets to write all over
* the entire page. Since you did not allocate up to a page boundry
* (or more) the user writes into someone elses memory. -ch */
#ifdef __powerpc__
#define m68k_round_page(x) ((((unsigned)(x)) + PGOFSET) & ~PGOFSET)
#endif
total_size = m68k_round_page(plane_size * depth) + /* for length */
(temp_size) + (array_size) + sizeof(bmap_t) +
NBPG; /* for alignment */
@ -360,6 +363,10 @@ cc_load_mode(d)
{
if (d) {
m_this_data->current_mode = d;
#ifdef __powerpc__ /* XXX ???? */
custom.cop1lc = PREP_DMA_MEM(DMDATA(d)->frames[F_LONG]);
custom.copjmp1 = 0;
#endif
return;
}
/* turn off display */

View File

@ -1,4 +1,4 @@
/* $NetBSD: idesc.c,v 1.45 2000/01/18 19:33:31 thorpej Exp $ */
/* $NetBSD: idesc.c,v 1.46 2000/05/25 19:11:45 is Exp $ */
/*
* Copyright (c) 1994 Michael L. Hitch
@ -95,7 +95,9 @@
#include <amiga/amiga/device.h>
#include <amiga/amiga/cia.h>
#include <amiga/amiga/custom.h>
#ifndef __powerpc__
#include <amiga/amiga/isr.h>
#endif
#include <amiga/dev/zbusvar.h>
#include <machine/cpu.h>

View File

@ -1,4 +1,4 @@
/* $NetBSD: ite.c,v 1.52 2000/03/23 06:33:11 thorpej Exp $ */
/* $NetBSD: ite.c,v 1.53 2000/05/25 19:10:04 is Exp $ */
/*
* Copyright (c) 1988 University of Utah.
@ -65,7 +65,9 @@
#include <amiga/amiga/color.h> /* DEBUG */
#include <amiga/amiga/custom.h> /* DEBUG */
#include <amiga/amiga/device.h>
#if defined(__m68k__)
#include <amiga/amiga/isr.h>
#endif
#include <amiga/dev/iteioctl.h>
#include <amiga/dev/itevar.h>
#include <amiga/dev/kbdmap.h>