access.h revision 2665
16145Snate@binkert.org/*
26145Snate@binkert.org * Copyright (c) 2002-2005 The Regents of The University of Michigan
36145Snate@binkert.org * All rights reserved.
46145Snate@binkert.org *
56145Snate@binkert.org * Redistribution and use in source and binary forms, with or without
66145Snate@binkert.org * modification, are permitted provided that the following conditions are
76145Snate@binkert.org * met: redistributions of source code must retain the above copyright
86145Snate@binkert.org * notice, this list of conditions and the following disclaimer;
96145Snate@binkert.org * redistributions in binary form must reproduce the above copyright
106145Snate@binkert.org * notice, this list of conditions and the following disclaimer in the
116145Snate@binkert.org * documentation and/or other materials provided with the distribution;
126145Snate@binkert.org * neither the name of the copyright holders nor the names of its
136145Snate@binkert.org * contributors may be used to endorse or promote products derived from
146145Snate@binkert.org * this software without specific prior written permission.
156145Snate@binkert.org *
166145Snate@binkert.org * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
176145Snate@binkert.org * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
186145Snate@binkert.org * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
196145Snate@binkert.org * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
206145Snate@binkert.org * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
216145Snate@binkert.org * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
226145Snate@binkert.org * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
236145Snate@binkert.org * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
246145Snate@binkert.org * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
256145Snate@binkert.org * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
266145Snate@binkert.org * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
276145Snate@binkert.org *
286145Snate@binkert.org * Authors: Nathan Binkert
296145Snate@binkert.org */
307054Snate@binkert.org
317054Snate@binkert.org#ifndef __ALPHA_ACCESS_H__
327054Snate@binkert.org#define __ALPHA_ACCESS_H__
337054Snate@binkert.org
347054Snate@binkert.org/** @file
357054Snate@binkert.org * System Console Memory Mapped Register Definition
367054Snate@binkert.org */
377054Snate@binkert.org
387054Snate@binkert.org#define ALPHA_ACCESS_VERSION (1305)
396145Snate@binkert.org
407054Snate@binkert.org#ifdef CONSOLE
417054Snate@binkert.orgtypedef unsigned uint32_t;
426145Snate@binkert.orgtypedef unsigned long uint64_t;
437055Snate@binkert.org#endif
447055Snate@binkert.org
457454Snate@binkert.org// This structure hacked up from simos
467055Snate@binkert.orgstruct AlphaAccess
478257SBrad.Beckmann@amd.com{
487054Snate@binkert.org    uint32_t	last_offset;		// 00: must be first field
498645Snilay@cs.wisc.edu    uint32_t	version;		// 04:
509594Snilay@cs.wisc.edu    uint32_t	numCPUs;		// 08:
519594Snilay@cs.wisc.edu    uint32_t	intrClockFrequency;	// 0C: Hz
527054Snate@binkert.org    uint64_t	cpuClock;		// 10: MHz
539465Snilay@cs.wisc.edu    uint64_t	mem_size;		// 18:
546145Snate@binkert.org
556145Snate@binkert.org    // Loaded kernel
566145Snate@binkert.org    uint64_t	kernStart;		// 20:
576145Snate@binkert.org    uint64_t	kernEnd;		// 28:
589465Snilay@cs.wisc.edu    uint64_t	entryPoint;		// 30:
597054Snate@binkert.org
607054Snate@binkert.org    // console disk stuff
616876Ssteve.reinhardt@amd.com    uint64_t	diskUnit;		// 38:
626876Ssteve.reinhardt@amd.com    uint64_t	diskCount;		// 40:
639594Snilay@cs.wisc.edu    uint64_t	diskPAddr;		// 48:
649594Snilay@cs.wisc.edu    uint64_t	diskBlock;		// 50:
656145Snate@binkert.org    uint64_t	diskOperation;		// 58:
6610303Snilay@cs.wisc.edu
677054Snate@binkert.org    // console simple output stuff
686145Snate@binkert.org    uint64_t	outputChar;		// 60: Placeholder for output
699497Snilay@cs.wisc.edu    uint64_t	inputChar;		// 68: Placeholder for input
7010303Snilay@cs.wisc.edu
7110303Snilay@cs.wisc.edu    // MP boot
729275Snilay@cs.wisc.edu    uint64_t	cpuStack[64];	        // 70:
736493STushar.Krishna@amd.com};
747054Snate@binkert.org
7510311Snilay@cs.wisc.edu#endif // __ALPHA_ACCESS_H__
7610311Snilay@cs.wisc.edu