Deleted Added
full compact
ixp425_a4x_space.c (164426) ixp425_a4x_space.c (177887)
1/* $NetBSD: ixp425_a4x_space.c,v 1.2 2005/12/11 12:16:51 christos Exp $ */
2
3/*
4 * Copyright 2003 Wasabi Systems, Inc.
5 * All rights reserved.
6 *
7 * Written by Steve C. Woodford for Wasabi Systems, Inc.
8 *

--- 29 unchanged lines hidden (view full) ---

38/*
39 * Bus space tag for 8/16-bit devices on 32-bit bus.
40 * all registers are located at the address of multiple of 4.
41 *
42 * Based on pxa2x0_a4x_space.c
43 */
44
45#include <sys/cdefs.h>
1/* $NetBSD: ixp425_a4x_space.c,v 1.2 2005/12/11 12:16:51 christos Exp $ */
2
3/*
4 * Copyright 2003 Wasabi Systems, Inc.
5 * All rights reserved.
6 *
7 * Written by Steve C. Woodford for Wasabi Systems, Inc.
8 *

--- 29 unchanged lines hidden (view full) ---

38/*
39 * Bus space tag for 8/16-bit devices on 32-bit bus.
40 * all registers are located at the address of multiple of 4.
41 *
42 * Based on pxa2x0_a4x_space.c
43 */
44
45#include <sys/cdefs.h>
46__FBSDID("$FreeBSD: head/sys/arm/xscale/ixp425/ixp425_a4x_space.c 164426 2006-11-19 23:55:23Z sam $");
46__FBSDID("$FreeBSD: head/sys/arm/xscale/ixp425/ixp425_a4x_space.c 177887 2008-04-03 18:22:08Z raj $");
47
48#include <sys/param.h>
49#include <sys/systm.h>
50#include <sys/bus.h>
51
52#include <machine/pcb.h>
53
54#include <vm/vm.h>
55#include <vm/vm_kern.h>
56#include <vm/pmap.h>
57#include <vm/vm_page.h>
58#include <vm/vm_extern.h>
59
60#include <machine/bus.h>
61
62/* Prototypes for all the bus_space structure functions */
47
48#include <sys/param.h>
49#include <sys/systm.h>
50#include <sys/bus.h>
51
52#include <machine/pcb.h>
53
54#include <vm/vm.h>
55#include <vm/vm_kern.h>
56#include <vm/pmap.h>
57#include <vm/vm_page.h>
58#include <vm/vm_extern.h>
59
60#include <machine/bus.h>
61
62/* Prototypes for all the bus_space structure functions */
63bs_protos(ixp425);
64bs_protos(a4x);
65bs_protos(generic);
66bs_protos(generic_armv4);
67
68struct bus_space ixp425_a4x_bs_tag = {
69 /* cookie */
70 .bs_cookie = (void *) 0,
71
72 /* mapping/unmapping */
63bs_protos(a4x);
64bs_protos(generic);
65bs_protos(generic_armv4);
66
67struct bus_space ixp425_a4x_bs_tag = {
68 /* cookie */
69 .bs_cookie = (void *) 0,
70
71 /* mapping/unmapping */
73 .bs_map = ixp425_bs_map,
74 .bs_unmap = ixp425_bs_unmap,
75 .bs_subregion = ixp425_bs_subregion,
72 .bs_map = generic_bs_map,
73 .bs_unmap = generic_bs_unmap,
74 .bs_subregion = generic_bs_subregion,
76
77 /* allocation/deallocation */
75
76 /* allocation/deallocation */
78 .bs_alloc = ixp425_bs_alloc, /* XXX not implemented */
79 .bs_free = ixp425_bs_free, /* XXX not implemented */
77 .bs_alloc = generic_bs_alloc, /* XXX not implemented */
78 .bs_free = generic_bs_free, /* XXX not implemented */
80
81 /* barrier */
79
80 /* barrier */
82 .bs_barrier = ixp425_bs_barrier,
81 .bs_barrier = generic_bs_barrier,
83
84 /* read (single) */
85 .bs_r_1 = a4x_bs_r_1,
86 .bs_r_2 = a4x_bs_r_2,
87 .bs_r_4 = a4x_bs_r_4,
88
89 /* read multiple */
90 .bs_rm_1 = a4x_bs_rm_1,

--- 26 unchanged lines hidden ---
82
83 /* read (single) */
84 .bs_r_1 = a4x_bs_r_1,
85 .bs_r_2 = a4x_bs_r_2,
86 .bs_r_4 = a4x_bs_r_4,
87
88 /* read multiple */
89 .bs_rm_1 = a4x_bs_rm_1,

--- 26 unchanged lines hidden ---