access.h revision 2665
12623SN/A/* 210596Sgabeblack@google.com * Copyright (c) 2002-2005 The Regents of The University of Michigan 310030SAli.Saidi@ARM.com * All rights reserved. 47725SAli.Saidi@ARM.com * 57725SAli.Saidi@ARM.com * Redistribution and use in source and binary forms, with or without 67725SAli.Saidi@ARM.com * modification, are permitted provided that the following conditions are 77725SAli.Saidi@ARM.com * met: redistributions of source code must retain the above copyright 87725SAli.Saidi@ARM.com * notice, this list of conditions and the following disclaimer; 97725SAli.Saidi@ARM.com * redistributions in binary form must reproduce the above copyright 107725SAli.Saidi@ARM.com * notice, this list of conditions and the following disclaimer in the 117725SAli.Saidi@ARM.com * documentation and/or other materials provided with the distribution; 127725SAli.Saidi@ARM.com * neither the name of the copyright holders nor the names of its 137725SAli.Saidi@ARM.com * contributors may be used to endorse or promote products derived from 147725SAli.Saidi@ARM.com * this software without specific prior written permission. 152623SN/A * 162623SN/A * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 172623SN/A * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 182623SN/A * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 192623SN/A * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 202623SN/A * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 212623SN/A * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 222623SN/A * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 232623SN/A * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 242623SN/A * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 252623SN/A * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 262623SN/A * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 272623SN/A * 282623SN/A * Authors: Nathan Binkert 292623SN/A */ 302623SN/A 312623SN/A#ifndef __ALPHA_ACCESS_H__ 322623SN/A#define __ALPHA_ACCESS_H__ 332623SN/A 342623SN/A/** @file 352623SN/A * System Console Memory Mapped Register Definition 362623SN/A */ 372623SN/A 382623SN/A#define ALPHA_ACCESS_VERSION (1305) 392623SN/A 402665Ssaidi@eecs.umich.edu#ifdef CONSOLE 412665Ssaidi@eecs.umich.edutypedef unsigned uint32_t; 422623SN/Atypedef unsigned long uint64_t; 432623SN/A#endif 443170Sstever@eecs.umich.edu 458105Sgblack@eecs.umich.edu// This structure hacked up from simos 462623SN/Astruct AlphaAccess 474040Ssaidi@eecs.umich.edu{ 486658Snate@binkert.org uint32_t last_offset; // 00: must be first field 498229Snate@binkert.org uint32_t version; // 04: 502623SN/A uint32_t numCPUs; // 08: 518232Snate@binkert.org uint32_t intrClockFrequency; // 0C: Hz 529152Satgutier@umich.edu uint64_t cpuClock; // 10: MHz 538232Snate@binkert.org uint64_t mem_size; // 18: 548232Snate@binkert.org 553348Sbinkertn@umich.edu // Loaded kernel 563348Sbinkertn@umich.edu uint64_t kernStart; // 20: 574762Snate@binkert.org uint64_t kernEnd; // 28: 587678Sgblack@eecs.umich.edu uint64_t entryPoint; // 30: 598779Sgblack@eecs.umich.edu 602901Ssaidi@eecs.umich.edu // console disk stuff 612623SN/A uint64_t diskUnit; // 38: 6210529Smorr@cs.wisc.edu uint64_t diskCount; // 40: 6310529Smorr@cs.wisc.edu uint64_t diskPAddr; // 48: 642623SN/A uint64_t diskBlock; // 50: 652623SN/A uint64_t diskOperation; // 58: 662623SN/A 672623SN/A // console simple output stuff 682623SN/A uint64_t outputChar; // 60: Placeholder for output 692623SN/A uint64_t inputChar; // 68: Placeholder for input 702623SN/A 718921Sandreas.hansson@arm.com // MP boot 728921Sandreas.hansson@arm.com uint64_t cpuStack[64]; // 70: 738921Sandreas.hansson@arm.com}; 748921Sandreas.hansson@arm.com 759433SAndreas.Sandberg@ARM.com#endif // __ALPHA_ACCESS_H__ 768779Sgblack@eecs.umich.edu