/* SPDX-License-Identifier: GPL-2.0 */12/***************************************************************************3* Registers and bits for amccs5933 pci chip4* copyright : (C) 2002 by Frank Mori Hess5***************************************************************************/67// register offsets8enum {9MBEF_REG = 0x34, // mailbux empty/full10INTCSR_REG = 0x38, // interrupt control and status11BMCSR_REG = 0x3c, // bus master control and status12};1314// incoming mailbox 0-3 register offsets15extern inline int INCOMING_MAILBOX_REG(unsigned int mailbox)16{17return (0x10 + 4 * mailbox);18};1920// bit definitions2122// INTCSR bits23enum {24OUTBOX_EMPTY_INTR_BIT = 0x10, // enable outbox empty interrupt25INBOX_FULL_INTR_BIT = 0x1000, // enable inbox full interrupt26INBOX_INTR_CS_BIT = 0x20000, // read, or write clear inbox full interrupt27INTR_ASSERTED_BIT = 0x800000, // read only, interrupt asserted28};2930// select byte 0 to 3 of incoming mailbox31extern inline int INBOX_BYTE_BITS(unsigned int byte)32{33return (byte & 0x3) << 8;34};3536// select incoming mailbox 0 to 337extern inline int INBOX_SELECT_BITS(unsigned int mailbox)38{39return (mailbox & 0x3) << 10;40};4142// select byte 0 to 3 of outgoing mailbox43extern inline int OUTBOX_BYTE_BITS(unsigned int byte)44{45return (byte & 0x3);46};4748// select outgoing mailbox 0 to 349extern inline int OUTBOX_SELECT_BITS(unsigned int mailbox)50{51return (mailbox & 0x3) << 2;52};5354// BMCSR bits55enum {56MBOX_FLAGS_RESET_BIT = 0x08000000, // resets mailbox empty/full flags57};58596061