Path: blob/master/arch/mn10300/unit-asb2303/include/unit/smc91111.h
10820 views
/* Support for the SMC91C111 NIC on an ASB23031*2* Copyright (C) 2007 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 Licence7* as published by the Free Software Foundation; either version8* 2 of the Licence, or (at your option) any later version.9*/10#ifndef _ASM_UNIT_SMC91111_H11#define _ASM_UNIT_SMC91111_H1213#include <asm/intctl-regs.h>1415#define SMC91111_BASE 0xAA000300UL16#define SMC91111_BASE_END 0xAA000400UL17#define SMC91111_IRQ XIRQ31819#define SMC_CAN_USE_8BIT 020#define SMC_CAN_USE_16BIT 121#define SMC_CAN_USE_32BIT 022#define SMC_NOWAIT 123#define SMC_IRQ_FLAGS (0)2425#if SMC_CAN_USE_8BIT26#define SMC_inb(a, r) inb((unsigned long) ((a) + (r)))27#define SMC_outb(v, a, r) outb(v, (unsigned long) ((a) + (r)))28#endif2930#if SMC_CAN_USE_16BIT31#define SMC_inw(a, r) inw((unsigned long) ((a) + (r)))32#define SMC_outw(v, a, r) outw(v, (unsigned long) ((a) + (r)))33#define SMC_insw(a, r, p, l) insw((unsigned long) ((a) + (r)), (p), (l))34#define SMC_outsw(a, r, p, l) outsw((unsigned long) ((a) + (r)), (p), (l))35#endif3637#if SMC_CAN_USE_32BIT38#define SMC_inl(a, r) inl((unsigned long) ((a) + (r)))39#define SMC_outl(v, a, r) outl(v, (unsigned long) ((a) + (r)))40#define SMC_insl(a, r, p, l) insl((unsigned long) ((a) + (r)), (p), (l))41#define SMC_outsl(a, r, p, l) outsl((unsigned long) ((a) + (r)), (p), (l))42#endif4344#define RPC_LSA_DEFAULT RPC_LED_100_1045#define RPC_LSB_DEFAULT RPC_LED_TX_RX4647#define set_irq_type(irq, type)4849#endif /* _ASM_UNIT_SMC91111_H */505152