Re: arm: remove pio.h and isa_machdep.h

2016-12-31 Thread Mark Kettenis
> From: Jeremie Courreges-Anglas 
> Date: Fri, 30 Dec 2016 20:23:21 +0100
> 
> As discussed, these files aren't used and aren't useful.  make build +
> make release are ok with this.
> 
> (Well, make release is ok until
>   COPY/usr/local/share/u-boot/am335x_boneblack/MLO/usr/mdec/am335x/MLO
>   cp: /usr/local/share/u-boot/am335x_boneblack/MLO: No such file or directory
> because I don't have u-boot installed.)
> 
> ok to remove them?

ok kettenis@

> Index: arch/arm/include/isa_machdep.h
> ===
> RCS file: arch/arm/include/isa_machdep.h
> diff -N arch/arm/include/isa_machdep.h
> --- arch/arm/include/isa_machdep.h23 Mar 2011 16:54:34 -  1.7
> +++ /dev/null 1 Jan 1970 00:00:00 -
> @@ -1,176 +0,0 @@
> -/*   $OpenBSD: isa_machdep.h,v 1.7 2011/03/23 16:54:34 pirofti Exp $ */
> -/*   $NetBSD: isa_machdep.h,v 1.3 2002/01/07 22:58:07 chris Exp $*/
> -
> -/*-
> - * Copyright (c) 1996, 1997, 1998 The NetBSD Foundation, Inc.
> - * All rights reserved.
> - *
> - * This code is derived from software contributed to The NetBSD Foundation
> - * by Jason R. Thorpe of the Numerical Aerospace Simulation Facility,
> - * NASA Ames Research Center.
> - *
> - * 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.
> - *
> - * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
> - * ``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 FOUNDATION OR CONTRIBUTORS
> - * 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 _ARM_ISA_MACHDEP_H_
> -#define _ARM_ISA_MACHDEP_H_
> -
> -#include 
> -#include 
> -
> -#define __NO_ISA_INTR_CHECK
> -/*
> - * Types provided to machine-independent ISA code.
> - */
> -struct arm32_isa_chipset {
> - /*
> - struct isa_dma_state ic_dmastate;
> - */
> -};
> -
> -typedef struct arm32_isa_chipset *isa_chipset_tag_t;
> -
> -struct device;   /* XXX */
> -struct isabus_attach_args;   /* XXX */
> -
> -/*
> - * Functions provided to machine-independent ISA code.
> - */
> -void isa_attach_hook(struct device *, struct device *,
> - struct isabus_attach_args *);
> -void *isa_intr_establish(isa_chipset_tag_t ic, int irq, int type,
> - int level, int (*ih_fun)(void *), void *ih_arg, char *name);
> -void isa_intr_disestablish(isa_chipset_tag_t ic, void *handler);
> -
> -#if 0
> -#define  isa_dmainit(ic, bst, dmat, d)   
> \
> - _isa_dmainit(&(ic)->ic_dmastate, (bst), (dmat), (d))
> -#define  isa_dmacascade(ic, c)   
> \
> - _isa_dmacascade(&(ic)->ic_dmastate, (c))
> -#define  isa_dmamaxsize(ic, c)   
> \
> - _isa_dmamaxsize(&(ic)->ic_dmastate, (c))
> -#define  isa_dmamap_create(ic, c, s, f)  
> \
> - _isa_dmamap_create(&(ic)->ic_dmastate, (c), (s), (f))
> -#define  isa_dmamap_destroy(ic, c)   
> \
> - _isa_dmamap_destroy(&(ic)->ic_dmastate, (c))
> -#define  isa_dmastart(ic, c, a, n, p, f, bf) 
> \
> - _isa_dmastart(&(ic)->ic_dmastate, (c), (a), (n), (p), (f), (bf))
> -#define  isa_dmaabort(ic, c) 
> \
> - _isa_dmaabort(&(ic)->ic_dmastate, (c))
> -#define  isa_dmacount(ic, c) 
> \
> - _isa_dmacount(&(ic)->ic_dmastate, (c))
> -#define  isa_dmafinished(ic, c)  
> \
> - _isa_dmafinished(&(ic)->ic_dmastate, (c))
> -#define  isa_dmadone(ic, c)  
> \
> - _isa_dmadone(&(ic)->ic_dmastate, (c))
> -#define  isa_dmafreeze(ic)   
> \
> - 

arm: remove pio.h and isa_machdep.h

2016-12-30 Thread Jeremie Courreges-Anglas

As discussed, these files aren't used and aren't useful.  make build +
make release are ok with this.

(Well, make release is ok until
  COPY/usr/local/share/u-boot/am335x_boneblack/MLO/usr/mdec/am335x/MLO
  cp: /usr/local/share/u-boot/am335x_boneblack/MLO: No such file or directory
because I don't have u-boot installed.)

ok to remove them?


Index: arch/arm/include/isa_machdep.h
===
RCS file: arch/arm/include/isa_machdep.h
diff -N arch/arm/include/isa_machdep.h
--- arch/arm/include/isa_machdep.h  23 Mar 2011 16:54:34 -  1.7
+++ /dev/null   1 Jan 1970 00:00:00 -
@@ -1,176 +0,0 @@
-/* $OpenBSD: isa_machdep.h,v 1.7 2011/03/23 16:54:34 pirofti Exp $ */
-/* $NetBSD: isa_machdep.h,v 1.3 2002/01/07 22:58:07 chris Exp $*/
-
-/*-
- * Copyright (c) 1996, 1997, 1998 The NetBSD Foundation, Inc.
- * All rights reserved.
- *
- * This code is derived from software contributed to The NetBSD Foundation
- * by Jason R. Thorpe of the Numerical Aerospace Simulation Facility,
- * NASA Ames Research Center.
- *
- * 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.
- *
- * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
- * ``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 FOUNDATION OR CONTRIBUTORS
- * 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 _ARM_ISA_MACHDEP_H_
-#define _ARM_ISA_MACHDEP_H_
-
-#include 
-#include 
-
-#define __NO_ISA_INTR_CHECK
-/*
- * Types provided to machine-independent ISA code.
- */
-struct arm32_isa_chipset {
-   /*
-   struct isa_dma_state ic_dmastate;
-   */
-};
-
-typedef struct arm32_isa_chipset *isa_chipset_tag_t;
-
-struct device; /* XXX */
-struct isabus_attach_args; /* XXX */
-
-/*
- * Functions provided to machine-independent ISA code.
- */
-void   isa_attach_hook(struct device *, struct device *,
-   struct isabus_attach_args *);
-void   *isa_intr_establish(isa_chipset_tag_t ic, int irq, int type,
-   int level, int (*ih_fun)(void *), void *ih_arg, char *name);
-void   isa_intr_disestablish(isa_chipset_tag_t ic, void *handler);
-
-#if 0
-#defineisa_dmainit(ic, bst, dmat, d)   
\
-   _isa_dmainit(&(ic)->ic_dmastate, (bst), (dmat), (d))
-#defineisa_dmacascade(ic, c)   
\
-   _isa_dmacascade(&(ic)->ic_dmastate, (c))
-#defineisa_dmamaxsize(ic, c)   
\
-   _isa_dmamaxsize(&(ic)->ic_dmastate, (c))
-#defineisa_dmamap_create(ic, c, s, f)  
\
-   _isa_dmamap_create(&(ic)->ic_dmastate, (c), (s), (f))
-#defineisa_dmamap_destroy(ic, c)   
\
-   _isa_dmamap_destroy(&(ic)->ic_dmastate, (c))
-#defineisa_dmastart(ic, c, a, n, p, f, bf) 
\
-   _isa_dmastart(&(ic)->ic_dmastate, (c), (a), (n), (p), (f), (bf))
-#defineisa_dmaabort(ic, c) 
\
-   _isa_dmaabort(&(ic)->ic_dmastate, (c))
-#defineisa_dmacount(ic, c) 
\
-   _isa_dmacount(&(ic)->ic_dmastate, (c))
-#defineisa_dmafinished(ic, c)  
\
-   _isa_dmafinished(&(ic)->ic_dmastate, (c))
-#defineisa_dmadone(ic, c)  
\
-   _isa_dmadone(&(ic)->ic_dmastate, (c))
-#defineisa_dmafreeze(ic)   
\
-   _isa_dmafreeze(&(ic)->ic_dmastate)
-#defineisa_dmathaw(ic) 
\
-   _isa_dmathaw(&(ic)->ic_dmastate)
-#defineisa_dmamem_alloc(ic, c, s, ap, f)   
\
-   _isa_dmamem_alloc(&(ic)->ic_dmastate, (c), (s),