lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite for Android: free password hash cracker in your pocket
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <f17812d70808062052p7943441ax5a70aea0a9d3447f@mail.gmail.com>
Date:	Thu, 7 Aug 2008 11:52:13 +0800
From:	"Eric Miao" <eric.y.miao@...il.com>
To:	"Marc Zyngier" <maz@...terjones.org>
Cc:	linux-kernel@...r.kernel.org,
	"Amit Walambe" <amit.walambe@...otech-ltd.co.uk>,
	"Dominik Brodowski" <linux@...inikbrodowski.net>,
	"Marc Zyngier" <marc.zyngier@...ran.com>
Subject: Re: [PATCH 2/5] Add support for the Arcom/Eurotech Viper SBC onboard ethernet.

Consider merging this to the following code in the front of smc91x.h

#if defined(CONFIG_ARCH_LUBBOCK) ||\
    defined(CONFIG_MACH_MAINSTONE) ||\
    defined(CONFIG_MACH_ZYLONITE) ||\
    defined(CONFIG_MACH_LITTLETON)

#include <asm/mach-types.h>

/* Now the bus width is specified in the platform data
 * pretend here to support all I/O access types
 */
#define SMC_CAN_USE_8BIT        1
#define SMC_CAN_USE_16BIT       1
#define SMC_CAN_USE_32BIT       1
#define SMC_NOWAIT              1

#define SMC_IO_SHIFT            (lp->io_shift)

....
#else

On Wed, Aug 6, 2008 at 9:19 PM, Marc Zyngier <maz@...terjones.org> wrote:
> Signed-off-by: Marc Zyngier <marc.zyngier@...ran.com>
> ---
>  drivers/net/smc91x.h |   21 +++++++++++++++++++++
>  1 files changed, 21 insertions(+), 0 deletions(-)
>
> diff --git a/drivers/net/smc91x.h b/drivers/net/smc91x.h
> index 22209b6..9481412 100644
> --- a/drivers/net/smc91x.h
> +++ b/drivers/net/smc91x.h
> @@ -185,6 +185,27 @@ static inline void SMC_outw(u16 val, void __iomem *ioaddr, int reg)
>
>  #define SMC_IRQ_FLAGS          (-1)
>
> +#elif defined(CONFIG_ARCH_VIPER)
> +
> +/* We can only do 16-bit reads and writes in the static memory space. */
> +#define SMC_CAN_USE_8BIT       0
> +#define SMC_CAN_USE_16BIT      1
> +#define SMC_CAN_USE_32BIT      0
> +#define SMC_CAN_USE_DATACS     1
> +#define SMC_NOWAIT             1
> +
> +#define SMC_IO_SHIFT           0
> +
> +#define SMC_inw(a, r)          readw((a) + (r))
> +#define SMC_outw(v, a, r)      writew(v, (a) + (r))
> +#define SMC_insw(a, r, p, l)   insw((a) + (r), p, l)
> +#define SMC_outsw(a, r, p, l)  outsw((a) + (r), p, l)
> +
> +#define RPC_LSA_DEFAULT                RPC_LED_100_10
> +#define RPC_LSB_DEFAULT                RPC_LED_TX_RX
> +
> +#define SMC_IRQ_FLAGS          (-1)    /* from resource */
> +
>  #elif defined(CONFIG_SA1100_ASSABET)
>
>  #include <asm/arch/neponset.h>
> --
> 1.5.4.3
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@...r.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at  http://www.tux.org/lkml/
>



-- 
Cheers
- eric
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ