diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2009-11-25 19:44:28 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2009-11-25 19:44:28 +0000 |
commit | 0f13f511e1542f53c2ea9bf5610866528b7a6dac (patch) | |
tree | f931dd1f6f45655a74fd94cfb51900b724d8c4a9 | |
parent | cbb9f2abcbb2815ed0ed9fa549a7c97517d15a42 (diff) |
By popular demand and peer pressure, check-in work in progress work to support
the Yeelong Lemote mips-based netbook. Kernel bits only for now, needs
polishing; most of this work done during h2k9 last month, although the
porting effort started earlier this year.
-rw-r--r-- | sys/arch/loongson/include/isa_machdep.h | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/sys/arch/loongson/include/isa_machdep.h b/sys/arch/loongson/include/isa_machdep.h new file mode 100644 index 00000000000..0f2e25023ef --- /dev/null +++ b/sys/arch/loongson/include/isa_machdep.h @@ -0,0 +1,35 @@ +/* $OpenBSD: isa_machdep.h,v 1.1 2009/11/25 19:44:27 miod Exp $ */ + +/* + * Copyright (c) 2007 Miodrag Vallat. + * + * Permission to use, copy, modify, and distribute this software for any + * purpose with or without fee is hereby granted, provided that the above + * copyright notice, this permission notice, and the disclaimer below + * appear in all copies. + * + * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES + * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF + * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR + * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES + * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN + * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF + * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + */ + +#ifndef _MACHINE_ISA_MACHDEP_H_ +#define _MACHINE_ISA_MACHDEP_H_ + +#include <machine/bus.h> + +#define __NO_ISA_INTR_CHECK + +typedef void *isa_chipset_tag_t; + +void isa_attach_hook(struct device *, struct device *, + struct isabus_attach_args *); +void *isa_intr_establish(void *, int, int, int, int (*)(void *), void *, + char *); +void isa_intr_disestablish(void *, void *); + +#endif |