android_kernel_motorola_sm6225/include/asm-mn10300/unit-asb2303/smc91111.h
David Howells b920de1b77 mn10300: add the MN10300/AM33 architecture to the kernel
Add architecture support for the MN10300/AM33 CPUs produced by MEI to the
kernel.

This patch also adds board support for the ASB2303 with the ASB2308 daughter
board, and the ASB2305.  The only processor supported is the MN103E010, which
is an AM33v2 core plus on-chip devices.

[akpm@linux-foundation.org: nuke cvs control strings]
Signed-off-by: Masakazu Urade <urade.masakazu@jp.panasonic.com>
Signed-off-by: Koichi Yasutake <yasutake.koichi@jp.panasonic.com>
Signed-off-by: David Howells <dhowells@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2008-02-08 09:22:30 -08:00

50 lines
1.6 KiB
C

/* Support for the SMC91C111 NIC on an ASB2303
*
* Copyright (C) 2007 Red Hat, Inc. All Rights Reserved.
* Written by David Howells (dhowells@redhat.com)
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public Licence
* as published by the Free Software Foundation; either version
* 2 of the Licence, or (at your option) any later version.
*/
#ifndef _ASM_UNIT_SMC91111_H
#define _ASM_UNIT_SMC91111_H
#include <asm/intctl-regs.h>
#define SMC91111_BASE 0xAA000300UL
#define SMC91111_BASE_END 0xAA000400UL
#define SMC91111_IRQ XIRQ3
#define SMC_CAN_USE_8BIT 0
#define SMC_CAN_USE_16BIT 1
#define SMC_CAN_USE_32BIT 0
#define SMC_NOWAIT 1
#define SMC_IRQ_FLAGS (0)
#if SMC_CAN_USE_8BIT
#define SMC_inb(a, r) inb((unsigned long) ((a) + (r)))
#define SMC_outb(v, a, r) outb(v, (unsigned long) ((a) + (r)))
#endif
#if SMC_CAN_USE_16BIT
#define SMC_inw(a, r) inw((unsigned long) ((a) + (r)))
#define SMC_outw(v, a, r) outw(v, (unsigned long) ((a) + (r)))
#define SMC_insw(a, r, p, l) insw((unsigned long) ((a) + (r)), (p), (l))
#define SMC_outsw(a, r, p, l) outsw((unsigned long) ((a) + (r)), (p), (l))
#endif
#if SMC_CAN_USE_32BIT
#define SMC_inl(a, r) inl((unsigned long) ((a) + (r)))
#define SMC_outl(v, a, r) outl(v, (unsigned long) ((a) + (r)))
#define SMC_insl(a, r, p, l) insl((unsigned long) ((a) + (r)), (p), (l))
#define SMC_outsl(a, r, p, l) outsl((unsigned long) ((a) + (r)), (p), (l))
#endif
#define RPC_LSA_DEFAULT RPC_LED_100_10
#define RPC_LSB_DEFAULT RPC_LED_TX_RX
#define set_irq_type(irq, type)
#endif /* _ASM_UNIT_SMC91111_H */