/*
* Copyright (c) 2005, by Michael Shalayeff
* Copyright (c) 2003, by Matthew Gream
* Copyright (c) 1999, by UCHIYAMA Yasushi
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* 2. The name of the developer may NOT be used to endorse or promote products
* derived from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
* ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
* OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*/
/*
* Register definitions for the VIA8231 PCI to ISA Bridge
*/
/*
* Edge Triggered Interrupt Select register. (0x54)
* bits 7-4: reserved
* bit 3: Edge Triggered Interrupt Select for PCI Interrupt A
* bit 2: Edge Triggered Interrupt Select for PCI Interrupt B
* bit 1: Edge Triggered Interrupt Select for PCI Interrupt C
* bit 0: Edge Triggered Interrupt Select for PCI Interrupt D
* 0 = Non-invert (level)
* 1 = Invert (edge)
*
* PIRQ Select register. (0x55 - 0x57)
* (0x55)
* bits 7-4: PINTA# Routing
* bits 3-0: reserved
* (0x56)
* bits 7-4: PINTC# Routing
* bits 3-0: PINTB# Routing
* (0x57)
* bits 7-4: PINTD# Routing
* bits 3-0: reserved
* PIRQ Select register. (0x44 - 0x47)
* (0x44)
* bits 7-4: PINTF# Routing
* bits 3-0: PINTE# Routing
* (0x45)
* bits 7-4: PINTH# Routing
* bits 3-0: PINTG# Routing
* (0x46)
* bit 4: EFGH/ABCD share (1 -- use above mappings)
* bit 3: Edge Triggered Interrupt Select for PCI Interrupt H
* bit 2: Edge Triggered Interrupt Select for PCI Interrupt G
* bit 1: Edge Triggered Interrupt Select for PCI Interrupt F
* bit 0: Edge Triggered Interrupt Select for PCI Interrupt E
*
* 0000: Disabled 0100: IRQ4 1000: Reserved 1100: IRQ12
* 0001: IRQ1 0101: IRQ5 1001: IRQ9 1101: Reserved
* 0010: Reserved 0110: IRQ6 1010: IRQ10 1110: IRQ14
* 0011: IRQ3 0111: IRQ7 1011: IRQ11 1111: IRQ15
*/
#define VIA8231_CFG_PIR 0x54
#define VIA8237_CFG_PIR 0x44