Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/nathanw_sa]: src/sys/arch/arc/jazz remove "cputype", introduce "struct j...



details:   https://anonhg.NetBSD.org/src/rev/2e1544c4e6d8
branches:  nathanw_sa
changeset: 504754:2e1544c4e6d8
user:      soda <soda%NetBSD.org@localhost>
date:      Wed Jun 13 15:11:39 2001 +0000

description:
remove "cputype", introduce "struct jazzio_config *jazzio_conf;" to
describe platform-dependent variants. clean up jazz i/o interreupt
handling had device configuration information.

diffstat:

 sys/arch/arc/jazz/jazziovar.h |  65 +++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 65 insertions(+), 0 deletions(-)

diffs (69 lines):

diff -r f98c4a499bcf -r 2e1544c4e6d8 sys/arch/arc/jazz/jazziovar.h
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sys/arch/arc/jazz/jazziovar.h     Wed Jun 13 15:11:39 2001 +0000
@@ -0,0 +1,65 @@
+/*     $NetBSD: jazziovar.h,v 1.2.8.2 2001/06/13 15:11:39 soda Exp $   */
+
+/*-
+ * Copyright (C) 2000 Shuichiro URATA.  All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ *    notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ *    notice, this list of conditions and the following disclaimer in the
+ *    documentation and/or other materials provided with the distribution.
+ * 3. The name of the author may not be used to endorse or promote products
+ *    derived from this software without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
+ * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
+ * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
+ * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
+ * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
+ * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+ * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+ * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+#ifndef __JAZZIOVAR_H
+#define __JAZZIOVAR_H
+
+#include <machine/bus.h>
+
+struct jazzio_attach_args {
+       char    *ja_name;
+       struct abus *ja_bus;
+       bus_space_tag_t ja_bust;
+       bus_dma_tag_t   ja_dmat;
+       bus_addr_t      ja_addr;
+       int             ja_intr;
+       int             ja_dma;
+};
+
+struct pica_dev {
+       struct confargs ps_ca;
+       caddr_t         ps_base;
+};
+
+struct jazzio_config {
+       int jc_iointr_status_reg;
+       void (*jc_set_iointr_mask)(int);
+       bus_addr_t jc_dmatlbreg;
+       bus_addr_t jc_fdcdmareg;        /* XXX should be obtained from bios */
+};
+
+void   jazzio_intr_establish(int, int (*)(void *), void *);
+void   jazzio_intr_disestablish(int);
+void   jazzio_reset __P((void));
+
+extern struct jazzio_config *jazzio_conf;
+extern struct pica_dev *jazzio_devconfig;
+
+extern struct arc_bus_space jazzio_bus;
+
+#endif



Home | Main Index | Thread Index | Old Index