/* dm9000.h: Davicom DM9000 adapter configuration1*2* Copyright (C) 2004 Red Hat, Inc. All Rights Reserved.3* Written by David Howells ([email protected])4*5* This program is free software; you can redistribute it and/or6* modify it under the terms of the GNU General Public License7* as published by the Free Software Foundation; either version8* 2 of the License, or (at your option) any later version.9*/1011#ifndef _ASM_DM9000_H12#define _ASM_DM9000_H1314#include <asm/mb-regs.h>1516#define DM9000_ARCH_IOBASE (__region_CS6 + 0x300)17#define DM9000_ARCH_IRQ IRQ_CPU_EXTERNAL3 /* XIRQ #3 (shared with FPGA) */18#undef DM9000_ARCH_IRQ_ACTLOW /* IRQ pin active high */19#define DM9000_ARCH_BUS_INFO "CS6#+0x300" /* bus info for ethtool */2021#undef __is_PCI_IO22#define __is_PCI_IO(addr) 0 /* not PCI */2324#undef inl25#define inl(addr) \26({ \27unsigned long __ioaddr = (unsigned long) addr; \28uint32_t x = readl(__ioaddr); \29((x & 0xff) << 24) | ((x & 0xff00) << 8) | ((x >> 8) & 0xff00) | ((x >> 24) & 0xff); \30})3132#undef insl33#define insl(a,b,l) __insl(a,b,l,0) /* don't byte-swap */343536#endif /* _ASM_DM9000_H */373839