iq80321.c (265999) | iq80321.c (278613) |
---|---|
1/* $NetBSD: i80321_mainbus.c,v 1.13 2003/12/17 22:03:24 abs Exp $ */ 2 3/*- 4 * Copyright (c) 2001, 2002 Wasabi Systems, Inc. 5 * All rights reserved. 6 * 7 * Written by Jason R. Thorpe for Wasabi Systems, Inc. 8 * --- 28 unchanged lines hidden (view full) --- 37 38/* 39 * IQ80321 front-end for the i80321 I/O Processor. We take care 40 * of setting up the i80321 memory map, PCI interrupt routing, etc., 41 * which are all specific to the board the i80321 is wired up to. 42 */ 43 44#include <sys/cdefs.h> | 1/* $NetBSD: i80321_mainbus.c,v 1.13 2003/12/17 22:03:24 abs Exp $ */ 2 3/*- 4 * Copyright (c) 2001, 2002 Wasabi Systems, Inc. 5 * All rights reserved. 6 * 7 * Written by Jason R. Thorpe for Wasabi Systems, Inc. 8 * --- 28 unchanged lines hidden (view full) --- 37 38/* 39 * IQ80321 front-end for the i80321 I/O Processor. We take care 40 * of setting up the i80321 memory map, PCI interrupt routing, etc., 41 * which are all specific to the board the i80321 is wired up to. 42 */ 43 44#include <sys/cdefs.h> |
45__FBSDID("$FreeBSD: stable/10/sys/arm/xscale/i80321/iq80321.c 265999 2014-05-14 01:35:43Z ian $"); | 45__FBSDID("$FreeBSD: stable/10/sys/arm/xscale/i80321/iq80321.c 278613 2015-02-12 03:50:33Z ian $"); |
46 47#define _ARM32_BUS_DMA_PRIVATE 48#include <sys/param.h> 49#include <sys/systm.h> 50#include <sys/bus.h> 51#include <sys/kernel.h> 52#include <sys/module.h> 53#include <sys/malloc.h> 54#include <sys/rman.h> | 46 47#define _ARM32_BUS_DMA_PRIVATE 48#include <sys/param.h> 49#include <sys/systm.h> 50#include <sys/bus.h> 51#include <sys/kernel.h> 52#include <sys/module.h> 53#include <sys/malloc.h> 54#include <sys/rman.h> |
55#include <machine/armreg.h> |
|
55#include <machine/bus.h> 56#include <machine/intr.h> 57 58#include <arm/xscale/i80321/i80321reg.h> 59#include <arm/xscale/i80321/i80321var.h> 60#include <arm/xscale/i80321/iq80321reg.h> 61#include <arm/xscale/i80321/iq80321var.h> 62#include <arm/xscale/i80321/i80321_intr.h> --- 257 unchanged lines hidden (view full) --- 320 intr_enabled |= (1 << nb); 321 i80321_set_intrmask(); 322} 323 324 325void 326cpu_reset() 327{ | 56#include <machine/bus.h> 57#include <machine/intr.h> 58 59#include <arm/xscale/i80321/i80321reg.h> 60#include <arm/xscale/i80321/i80321var.h> 61#include <arm/xscale/i80321/iq80321reg.h> 62#include <arm/xscale/i80321/iq80321var.h> 63#include <arm/xscale/i80321/i80321_intr.h> --- 257 unchanged lines hidden (view full) --- 321 intr_enabled |= (1 << nb); 322 i80321_set_intrmask(); 323} 324 325 326void 327cpu_reset() 328{ |
328 (void) disable_interrupts(I32_bit|F32_bit); | 329 (void) disable_interrupts(PSR_I|PSR_F); |
329 *(__volatile uint32_t *)(IQ80321_80321_VBASE + VERDE_ATU_BASE + 330 ATU_PCSR) = PCSR_RIB | PCSR_RPB; 331 printf("Reset failed!\n"); 332 for(;;); 333} 334 335static struct resource * 336iq80321_alloc_resource(device_t dev, device_t child, int type, int *rid, --- 57 unchanged lines hidden --- | 330 *(__volatile uint32_t *)(IQ80321_80321_VBASE + VERDE_ATU_BASE + 331 ATU_PCSR) = PCSR_RIB | PCSR_RPB; 332 printf("Reset failed!\n"); 333 for(;;); 334} 335 336static struct resource * 337iq80321_alloc_resource(device_t dev, device_t child, int type, int *rid, --- 57 unchanged lines hidden --- |