162306a36Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 */
262306a36Sopenharmony_ci/*
362306a36Sopenharmony_ci * apb.h: Advanced PCI Bridge Configuration Registers and Bits
462306a36Sopenharmony_ci *
562306a36Sopenharmony_ci * Copyright (C) 1998  Eddie C. Dost  (ecd@skynet.be)
662306a36Sopenharmony_ci */
762306a36Sopenharmony_ci
862306a36Sopenharmony_ci#ifndef _SPARC64_APB_H
962306a36Sopenharmony_ci#define _SPARC64_APB_H
1062306a36Sopenharmony_ci
1162306a36Sopenharmony_ci#define APB_TICK_REGISTER			0xb0
1262306a36Sopenharmony_ci#define APB_INT_ACK				0xb8
1362306a36Sopenharmony_ci#define APB_PRIMARY_MASTER_RETRY_LIMIT		0xc0
1462306a36Sopenharmony_ci#define APB_DMA_ASFR				0xc8
1562306a36Sopenharmony_ci#define APB_DMA_AFAR				0xd0
1662306a36Sopenharmony_ci#define APB_PIO_TARGET_RETRY_LIMIT		0xd8
1762306a36Sopenharmony_ci#define APB_PIO_TARGET_LATENCY_TIMER		0xd9
1862306a36Sopenharmony_ci#define APB_DMA_TARGET_RETRY_LIMIT		0xda
1962306a36Sopenharmony_ci#define APB_DMA_TARGET_LATENCY_TIMER		0xdb
2062306a36Sopenharmony_ci#define APB_SECONDARY_MASTER_RETRY_LIMIT	0xdc
2162306a36Sopenharmony_ci#define APB_SECONDARY_CONTROL			0xdd
2262306a36Sopenharmony_ci#define APB_IO_ADDRESS_MAP			0xde
2362306a36Sopenharmony_ci#define APB_MEM_ADDRESS_MAP			0xdf
2462306a36Sopenharmony_ci
2562306a36Sopenharmony_ci#define APB_PCI_CONTROL_LOW			0xe0
2662306a36Sopenharmony_ci#  define APB_PCI_CTL_LOW_ARB_PARK			(1 << 21)
2762306a36Sopenharmony_ci#  define APB_PCI_CTL_LOW_ERRINT_EN			(1 << 8)
2862306a36Sopenharmony_ci
2962306a36Sopenharmony_ci#define APB_PCI_CONTROL_HIGH			0xe4
3062306a36Sopenharmony_ci#  define APB_PCI_CTL_HIGH_SERR				(1 << 2)
3162306a36Sopenharmony_ci#  define APB_PCI_CTL_HIGH_ARBITER_EN			(1 << 0)
3262306a36Sopenharmony_ci
3362306a36Sopenharmony_ci#define APB_PIO_ASFR				0xe8
3462306a36Sopenharmony_ci#define APB_PIO_AFAR				0xf0
3562306a36Sopenharmony_ci#define APB_DIAG_REGISTER			0xf8
3662306a36Sopenharmony_ci
3762306a36Sopenharmony_ci#endif /* !(_SPARC64_APB_H) */
38