lkml.org 
[lkml]   [2008]   [Apr]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    From
    Subject[patch 02/55] ISAPNP: move config register addresses out of isapnp.h
    These are used only in drivers/pnp/isapnp/core.c, so no need to
    expose them to the world.

    Signed-off-by: Bjorn Helgaas <bjorn.helgaas@hp.com>
    Acked-By: Rene Herman <rene.herman@gmail.com>

    Index: work10/drivers/pnp/isapnp/core.c
    ===================================================================
    --- work10.orig/drivers/pnp/isapnp/core.c 2008-04-28 15:57:04.000000000 -0600
    +++ work10/drivers/pnp/isapnp/core.c 2008-04-28 16:09:07.000000000 -0600
    @@ -88,6 +88,14 @@
    #define _LTAG_MEM32RANGE 0x85
    #define _LTAG_FIXEDMEM32RANGE 0x86

    +/* Logical device control and configuration registers */
    +
    +#define ISAPNP_CFG_ACTIVATE 0x30 /* byte */
    +#define ISAPNP_CFG_MEM 0x40 /* 4 * dword */
    +#define ISAPNP_CFG_PORT 0x60 /* 8 * word */
    +#define ISAPNP_CFG_IRQ 0x70 /* 2 * word */
    +#define ISAPNP_CFG_DMA 0x74 /* 2 * byte */
    +
    /*
    * Sizes of ISAPNP logical device configuration register sets.
    * See PNP-ISA-v1.0a.pdf, Appendix A.
    Index: work10/include/linux/isapnp.h
    ===================================================================
    --- work10.orig/include/linux/isapnp.h 2008-04-28 15:57:04.000000000 -0600
    +++ work10/include/linux/isapnp.h 2008-04-28 16:09:07.000000000 -0600
    @@ -26,16 +26,6 @@
    #include <linux/pnp.h>

    /*
    - * Configuration registers (TODO: change by specification)
    - */
    -
    -#define ISAPNP_CFG_ACTIVATE 0x30 /* byte */
    -#define ISAPNP_CFG_MEM 0x40 /* 4 * dword */
    -#define ISAPNP_CFG_PORT 0x60 /* 8 * word */
    -#define ISAPNP_CFG_IRQ 0x70 /* 2 * word */
    -#define ISAPNP_CFG_DMA 0x74 /* 2 * byte */
    -
    -/*
    *
    */

    --


    \
     
     \ /
      Last update: 2008-04-29 00:43    [W:3.092 / U:0.620 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site