/*-1* SPDX-License-Identifier: BSD-2-Clause2*3* Copyright (C) 2008 Nathan Whitehorn4* All rights reserved.5*6* Redistribution and use in source and binary forms, with or without7* modification, are permitted provided that the following conditions8* are met:9* 1. Redistributions of source code must retain the above copyright10* notice, this list of conditions and the following disclaimer.11* 2. Redistributions in binary form must reproduce the above copyright12* notice, this list of conditions and the following disclaimer in the13* documentation and/or other materials provided with the distribution.14*15* THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR16* IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES17* OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.18* IN NO EVENT SHALL TOOLS GMBH BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,19* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,20* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;21* OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,22* WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR23* OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF24* ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.25*/2627#ifndef _POWERPC_VIAREG_H_28#define _POWERPC_VIAREG_H_2930/* VIA interface registers */31#define vBufB 0x0000 /* register B */32#define vDirB 0x0400 /* data direction register */33#define vDirA 0x0600 /* data direction register */34#define vT1C 0x0800 /* Timer 1 counter Lo */35#define vT1CH 0x0a00 /* Timer 1 counter Hi */36#define vSR 0x1400 /* shift register */37#define vACR 0x1600 /* aux control register */38#define vPCR 0x1800 /* peripheral control register */39#define vIFR 0x1a00 /* interrupt flag register */40#define vIER 0x1c00 /* interrupt enable register */41#define vBufA 0x1e00 /* register A */4243#define vPB 0x000044#define vPB3 0x0845#define vPB4 0x1046#define vPB5 0x2047#define vSR_INT 0x0448#define vSR_OUT 0x104950#endif /* _POWERPC_VIAREG_H_ */515253