[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20080323.223841.235095904.davem@davemloft.net>
Date: Sun, 23 Mar 2008 22:38:41 -0700 (PDT)
From: David Miller <davem@...emloft.net>
To: bhutchings@...arflare.com
Cc: netdev@...r.kernel.org, linux-net-drivers@...arflare.com,
jgarzik@...ox.com
Subject: Re: [PATCH 5/8] New driver "sfc" for Solarstorm SFC4000 controller
(try #8)
From: Ben Hutchings <bhutchings@...arflare.com>
Date: Wed, 12 Mar 2008 01:25:14 +0000
> +/* Writes to a normal 16-byte Falcon register, locking as appropriate. */
> +static inline void falcon_write(struct efx_nic *efx, efx_oword_t *value,
> + unsigned int reg)
> +{
> + unsigned long flags __attribute__ ((unused));
Delete.
> +/* Writes to an 8-byte Falcon SRAM register, locking as appropriate. */
> +static inline void falcon_write_sram(struct efx_nic *efx, efx_qword_t *value,
> + unsigned int index)
> +{
> + unsigned int reg = efx->type->buf_tbl_base + (index * sizeof(*value));
> + unsigned long flags __attribute__ ((unused));
Delete.
> +/* Read from a Falcon register
> + *
> + * This reads an entire 16-byte Falcon register in one go, locking as
> + * appropriate. It is essential to read the first dword first, as this
> + * prompts Falcon to load the current value into the shadow register.
> + */
> +static inline void falcon_read(struct efx_nic *efx, efx_oword_t *value,
> + unsigned int reg)
> +{
> + unsigned long flags __attribute__ ((unused));
Delete.
> +static inline void falcon_read_sram(struct efx_nic *efx, efx_qword_t *value,
> + unsigned int index)
> +{
> + unsigned int reg = efx->type->buf_tbl_base + (index * sizeof(*value));
> + unsigned long flags __attribute__ ((unused));
Delete.
> +/* Write dword to Falcon page-mapped register with an extra lock.
> + *
> + * As for falcon_writel_page(), but for a register that suffers from
> + * SFC bug 3181. Take out a lock so the BIU collector cannot be
> + * confused. */
> +static inline void falcon_writel_page_locked(struct efx_nic *efx,
> + efx_dword_t *value,
> + unsigned int reg,
> + unsigned int page)
> +{
> + unsigned long flags __attribute__ ((unused));
Remove the unused tag, it's wrong.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists